Object Lifecycle Events
So as far as I can tell there aren't any general object lifecycle events we can bind to. Maybe I'm wrong--but is there Unity style "Start", "Awake", "OnDisable", "OnBecameVisible", "OnEnable", etc. event equivalents?
If not--I'd REALLY appreciate at least a "Start" event we could bind to per object. And also an onenable/ondisable as well.
For each SceneObject we do have the property enabled, so if you do sceneobject.enabled = false, you disable the object and you cant see it in the Lens. Is that similar to what you are looking for? Let me know if you have more questions!
What I want is an event to be fired on the object that's enabled/disabled so I can execute code when it happens. So when you set the property to enabled when it's previously disabled, an "Enabled" event gets fired off on the event that if you have a function bound to it, it will be called. Same for start, and disable.
Unfortunately Lens Studio does not support this kind of events. I have added this to our feature requests!
Hi,
I would also love to get that feature.
Thanks.
I still reeeeeeeeeeeeally want this feature.