Custom properties have a setting called Raise OnReset when value changes
. If this setting has to be used depends on your situation. This setting can be enabled on multiple custom properties.
What happens is exactly what the title implies. When the value of the custom property changes, the logic added to the property OnReset
of the canvas component is executed.
It is also possible to manually trigger the logic added to the property OnReset
of the canvas component. The way to do this is from the canvas app by executing the following expression:
Reset(<component>)
, where <component> is the name of the canvas component instance in the canvas app.
I have created a video with an example about the topic of this content page.
Video
This video demonstrates the “Raise OnReset when value changes” setting of a custom property of a canvas component:
- https://www.youtube.com/watch?v=V5eIcqebFYo (🎥 2023-11-19)