Testing
@@ -166,7 +166,7 @@ api.isInEditor();
|
||||
|
||||
## Properties
|
||||
|
||||
### onReferencePropertyUpdate
|
||||
<!-- ### onReferencePropertyUpdate
|
||||
|
||||
Register a listener for when a reference property updates in a scene change. The listener will also be called on initial module creation and when the property is changed in the editor.
|
||||
|
||||
@@ -174,10 +174,24 @@ Register a listener for when a reference property updates in a scene change. The
|
||||
api.onReferencePropertyUpdate(propertyId, callback);
|
||||
```
|
||||
|
||||
| Argument | Type | Description |
|
||||
| ---------- | ------------------ | ----------------------------------------------- |
|
||||
| propertyId | string | The property ID that the listener will receive. |
|
||||
| callback | ( value:any ):void | Function that receives the new property value. |
|
||||
| Argument | Type | Description |
|
||||
| ---------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| propertyId | string | The property ID that the listener will receive. |
|
||||
| callback | ( value:any, transitionDuration:number ):void | Function that receives the new property value.<br>**value** The changed value of the property.<br>**transitionDuration** The duration in milliseconds the transition should be. | -->
|
||||
|
||||
### onReferencePropertyChange
|
||||
|
||||
Register a listener for when a reference property updates in a scene change. The listener will also be called on initial module creation and when the property is changed in the editor.
|
||||
|
||||
```javascript
|
||||
api.onReferencePropertyChange(propertyId, callback);
|
||||
```
|
||||
|
||||
| Argument | Type | Description |
|
||||
| ---------- | --------------------------------------------- | ------------------------------------------------------------------------------------------------------------------------------------ |
|
||||
| propertyId | string | The property ID that the listener will receive. |
|
||||
| callback | ( value:any, transitionDuration:number ):void | Function that receives the new property value.<br> <br>**transitionDuration** The duration in milliseconds the transition should be. |
|
||||
| kaas | k | <table><tr><td>**value**</td><td>any</td><td>The changed value of the property.</td></tr></table> |
|
||||
|
||||
### getReferenceProperties
|
||||
|
||||
|
||||
Reference in New Issue
Block a user