diff --git a/ModuleClientAPI.md b/ModuleClientAPI.md index 2fd3014..b9e627f 100644 --- a/ModuleClientAPI.md +++ b/ModuleClientAPI.md @@ -166,7 +166,7 @@ api.isInEditor(); ## Properties -### onReferencePropertyUpdate + + +### 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.

**transitionDuration** The duration in milliseconds the transition should be. | +| kaas | k |
**value**anyThe changed value of the property.
| ### getReferenceProperties