Skip to content

OnChange -> SpecialKey

function Fusion.OnChange(
    propertyName: string
): SpecialKey

Given an property name, returns a special key which can listen to changes for properties of that name.

When paired with a callback in a property table, the special key connects the callback to the property's change event.


Parameters

propertyName : string

The name of the property that the special key should target.


Returns -> SpecialKey

A special key for listening to changes for properties of that name.


Learn More

Back to top