Jump to content

Variable Class Methods.


photo

Recommended Posts

I'm trying to figure out how to use getVec4 with the Variable class. Documentation doesn't list C# definitions for this class and .getVec4 method is not correct. Anyone got the correct one?

Link to comment

Hello,

Instead of method getVec4(), you need to use property Vec4. For example:

vec4 color = new vec4(0.25f, 0.45f, 0.55f, 1.0f);
Variable variable = new Variable(color);
vec4 variable_color = variable.Vec4;

 

Link to comment
×
×
  • Create New...