Method | Description | |
---|---|---|
FloatVariable ( Bar bar, System.Single initialValue, String def = null ) : System |
Creates a new single-precision floating-point variable in a given bar.
|
|
OnChanged ( |
Raises the Changed event.
|
|
ToString ( ) : String |
Method | Description | |
---|---|---|
GetCallback ( |
Called by AntTweakBar when AntTweakBar needs the variable's value.
|
|
InitFloatVariable ( |
Initialization delegate, which creates the floating-point variable.
|
|
IsValid ( float value ) : bool |
Checks if this variable can hold this value.
|
|
SetCallback ( |
Called by AntTweakBar when the user changes the variable's value.
|
|
ValidateAndSet ( float value ) : void |
Tries to set this variable's value, validating it.
|
public FloatVariable ( Bar bar, System.Single initialValue, String def = null ) : System | ||
bar | Bar | The bar to create the floating-point variable in. |
initialValue | System.Single | The initial value of the variable. |
def | String | An optional definition string for the new variable. |
return | System |