IsName() public method

Does name match the name of the active Transition.

public IsName ( string name ) : bool
name string
return bool
Beispiel #1
0
 static public int IsName(IntPtr l)
 {
     try{
         UnityEngine.AnimatorTransitionInfo self = (UnityEngine.AnimatorTransitionInfo)checkSelf(l);
         System.String a1;
         checkType(l, 2, out a1);
         System.Boolean ret = self.IsName(a1);
         pushValue(l, ret);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Beispiel #2
0
// methods

    static bool AnimatorTransitionInfo_IsName__String(JSVCall vc, int argc)
    {
        int len = argc;

        if (len == 1)
        {
            System.String arg0 = (System.String)JSApi.getStringS((int)JSApi.GetType.Arg);
            UnityEngine.AnimatorTransitionInfo argThis = (UnityEngine.AnimatorTransitionInfo)vc.csObj;                JSApi.setBooleanS((int)JSApi.SetType.Rval, (System.Boolean)(argThis.IsName(arg0)));
            JSMgr.changeJSObj(vc.jsObjID, argThis);
        }

        return(true);
    }