Connect your code to bound editor elements using View Models
onLoad
callback:Type | Value |
---|---|
Number | 0 |
String | Empty string |
Boolean | False |
Color | 0xFF000000 |
Trigger | Untriggered |
Enum | The first value |
Nested view model | Null |
Type | Supported |
---|---|
Floating point numbers | ✅ |
Booleans | ✅ |
Triggers | ✅ |
Strings | ✅ |
Enumerations | ✅ |
Colors | ✅ |
Nesting | ✅ |
Lists | ✅ |
Images | ✅ Early Access |
on
method on the property.off
method on the property and passing the callback function. Alternatively, you can call off()
without any arguments to remove all observers.