Testing

2025-08-28 19:52:43 +02:00
parent a783cfaf8c
commit 44b01df8af

@@ -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.
@@ -175,9 +175,23 @@ 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. |
| 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