Forum Discussion

_rossbower's avatar
_rossbower
Visitor
10 years ago

Scene lifecycle events?

I am looking for an event that fires when a scene has finished loading and has displayed its content. I am trying to trigger animations on page load, but if I start them in init, they begin before the elements have appeared on screen. The only lifecycle event I have been able to find so far is init(). Am I missing something?

1 Reply

  • The method I use is to have a Boolean field and a observeField that monitors for changes.

    For example, I have a field for In app purchases. When the store cycle completes it pushes a "True" value to the field, then the observe Field runs a callback function to send that data to Google Analytics.

    Admitedly, I'm not a "Pro" B/S developer, so there may be a better way, but it works for me.