UnityEngine.AnimatorTransitionInfo.IsUserName C# (CSharp) Method

IsUserName() public method

Does userName match the name of the active Transition.

public IsUserName ( string name ) : bool
name string
return bool
        public bool IsUserName(string name)
        {
            return (Animator.StringToHash(name) == this.m_UserName);
        }

Usage Example

コード例 #1
0
 static public int IsUserName(IntPtr l)
 {
     try{
         UnityEngine.AnimatorTransitionInfo self = (UnityEngine.AnimatorTransitionInfo)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Boolean ret = self.IsUserName(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
All Usage Examples Of UnityEngine.AnimatorTransitionInfo::IsUserName
AnimatorTransitionInfo