AntTweakBar.VectorVariable.VectorVariable C# (CSharp) Method

VectorVariable() public method

Creates a new vector variable in a given bar.
public VectorVariable ( Bar bar, float x, float y, float z, String def = null ) : System
bar Bar The bar to create the vector variable in.
x float The initial X-component value of the variable.
y float The initial Y-component value of the variable.
z float The initial Z-component value of the variable.
def String An optional definition string for the new variable.
return System
        public VectorVariable(Bar bar, float x = 0, float y = 0, float z = 0, String def = null)
            : base(bar, InitVectorVariable, def)
        {
            Validating += (s, e) => { e.Valid = true; };

            ValidateAndSet(x, y, z);
        }