static public int SetEnabledFading(IntPtr l)
 {
     try{
         if (matchType(l, 2, typeof(bool), typeof(float)))
         {
             UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
             System.Boolean           a1;
             checkType(l, 2, out a1);
             System.Single a2;
             checkType(l, 3, out a2);
             self.SetEnabledFading(a1, a2);
             return(0);
         }
         else if (matchType(l, 2, typeof(bool)))
         {
             UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
             System.Boolean           a1;
             checkType(l, 2, out a1);
             self.SetEnabledFading(a1);
             return(0);
         }
         LuaDLL.luaL_error(l, "No matched override function to call");
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
// fields

// properties
    static void SkinnedCloth_coefficients(JSVCall vc)
    {
        if (vc.bGet)
        {
            UnityEngine.SkinnedCloth _this = (UnityEngine.SkinnedCloth)vc.csObj;
            var result = _this.coefficients;
            var arrRet = result;
            for (int i = 0; arrRet != null && i < arrRet.Length; i++)
            {
                JSMgr.datax.setObject((int)JSApi.SetType.SaveAndTempTrace, arrRet[i]);
                JSApi.moveSaveID2Arr(i);
            }
            JSApi.setArrayS((int)JSApi.SetType.Rval, (arrRet != null ? arrRet.Length : 0), true);
        }
        else
        {
            UnityEngine.ClothSkinningCoefficient[] arg0 = JSDataExchangeMgr.GetJSArg <UnityEngine.ClothSkinningCoefficient[]>(() =>
            {
                int jsObjID = JSApi.getObject((int)JSApi.GetType.Arg);
                int length  = JSApi.getArrayLength(jsObjID);
                var ret     = new UnityEngine.ClothSkinningCoefficient[length];
                for (var i = 0; i < length; i++)
                {
                    JSApi.getElement(jsObjID, i);
                    ret[i] = (UnityEngine.ClothSkinningCoefficient)JSMgr.datax.getObject((int)JSApi.GetType.SaveAndRemove);
                }
                return(ret);
            });
            UnityEngine.SkinnedCloth _this = (UnityEngine.SkinnedCloth)vc.csObj;
            _this.coefficients = arg0;
        }
    }
Exemplo n.º 3
0
 static public int constructor(IntPtr l)
 {
     UnityEngine.SkinnedCloth o;
     o = new UnityEngine.SkinnedCloth();
     pushObject(l, o);
     return(1);
 }
 static public int set_coefficients(IntPtr l)
 {
     UnityEngine.SkinnedCloth o = (UnityEngine.SkinnedCloth)checkSelf(l);
     UnityEngine.ClothSkinningCoefficient[] v;
     checkType(l, 2, out v);
     o.coefficients = v;
     return(0);
 }
    static public int set_worldAccelerationScale(IntPtr l)
    {
        UnityEngine.SkinnedCloth o = (UnityEngine.SkinnedCloth)checkSelf(l);
        float v;

        checkType(l, 2, out v);
        o.worldAccelerationScale = v;
        return(0);
    }
Exemplo n.º 6
0
 static public int get_worldVelocityScale(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
         pushValue(l, self.worldVelocityScale);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemplo n.º 7
0
 static public int get_coefficients(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
         pushValue(l, self.coefficients);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static public int constructor(IntPtr l)
 {
     LuaDLL.lua_remove(l, 1);
     UnityEngine.SkinnedCloth o;
     if (matchType(l, 1))
     {
         o = new UnityEngine.SkinnedCloth();
         pushObject(l, o);
         return(1);
     }
     LuaDLL.luaL_error(l, "New object failed.");
     return(0);
 }
Exemplo n.º 9
0
 static public int constructor(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth o;
         o = new UnityEngine.SkinnedCloth();
         pushValue(l, o);
         return(1);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 public static int constructor(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth o;
         o=new UnityEngine.SkinnedCloth();
         pushValue(l,o);
         return 1;
     }
     catch(Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return 0;
     }
 }
Exemplo n.º 11
0
 static public int set_worldVelocityScale(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
         float v;
         checkType(l, 2, out v);
         self.worldVelocityScale = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
Exemplo n.º 12
0
 static public int set_coefficients(IntPtr l)
 {
     try {
         UnityEngine.SkinnedCloth self = (UnityEngine.SkinnedCloth)checkSelf(l);
         UnityEngine.ClothSkinningCoefficient[] v;
         checkType(l, 2, out v);
         self.coefficients = v;
         return(0);
     }
     catch (Exception e) {
         LuaDLL.luaL_error(l, e.ToString());
         return(0);
     }
 }
 static void SkinnedCloth_worldAccelerationScale(JSVCall vc)
 {
     if (vc.bGet)
     {
         UnityEngine.SkinnedCloth _this = (UnityEngine.SkinnedCloth)vc.csObj;
         var result = _this.worldAccelerationScale;
         JSApi.setSingle((int)JSApi.SetType.Rval, (System.Single)(result));
     }
     else
     {
         System.Single            arg0  = (System.Single)JSApi.getSingle((int)JSApi.GetType.Arg);
         UnityEngine.SkinnedCloth _this = (UnityEngine.SkinnedCloth)vc.csObj;
         _this.worldAccelerationScale = arg0;
     }
 }
 static public int get_worldAccelerationScale(IntPtr l)
 {
     UnityEngine.SkinnedCloth o = (UnityEngine.SkinnedCloth)checkSelf(l);
     pushValue(l, o.worldAccelerationScale);
     return(1);
 }
 static public int get_coefficients(IntPtr l)
 {
     UnityEngine.SkinnedCloth o = (UnityEngine.SkinnedCloth)checkSelf(l);
     pushValue(l, o.coefficients);
     return(1);
 }