WhiteCore.Region.Animation.Animator.RemoveAnimation C# (CSharp) Méthode

RemoveAnimation() public méthode

Remove the given animation from the list of current animations
public RemoveAnimation ( string name ) : bool
name string
Résultat bool
        public bool RemoveAnimation (string name)
        {
            if (m_scenePresence.IsChildAgent)
                return false;

            UUID animID = m_scenePresence.ControllingClient.GetDefaultAnimation (name);
            if (animID == UUID.Zero) {
                if (DefaultAnimations.AnimsUUID.ContainsKey (name.ToUpper ()))
                    animID = DefaultAnimations.AnimsUUID [name.ToUpper ()];
                else
                    return false;
            }

            RemoveAnimation (animID);
            return true;
        }

Same methods

Animator::RemoveAnimation ( UUID animID ) : void