The requirement is similar to as the OnEnable callback in UNITY3D.
No there isn’t an event like that. The only event an entity fires on its own is the
To get the functionality you are looking for you will have to add a script to your entity and add a custom entity event of yours.
You can listen for when the script is enabled/disabled though (which is fired when the Entity is disabled/enabled) https://developer.playcanvas.com/api/pc.ScriptType.html#event:state
it works well, thank you.