onAvatarBeforeUnload

Event

Event that triggers when the avatar is about to be unloaded. If the avatar is owned by an actor, this may be because the actor has changed their avatar, or because the actor is leaving or disconnecting. This can be used to "deconstruct" anything that was created in the onAvatarLoadComplete event. isBodyLoaded will be set to false after this event is triggered.

Returns Action