public static FloatVariable Create(float initialValue, string attributeType = null) { FloatConstant floatConstant = FloatConstant.Create(initialValue); AttributeType type = attributeType == null ? null : AttributeType.Create(attributeType); return(Create(floatConstant, attributeType: type)); }
public static FloatVariable Create(FloatConstant initialValue, Float min = null, Float max = null, AttributeType attributeType = null) { FloatVariable floatVariable = CreateInstance <FloatVariable>(); floatVariable.initialValue = initialValue; floatVariable.min = min; floatVariable.max = max; floatVariable.attributeType = attributeType; return(floatVariable); }