static public int SetClipRect(IntPtr l)
 {
     try {
                     #if DEBUG
         var    method     = System.Reflection.MethodBase.GetCurrentMethod();
         string methodName = GetMethodName(method);
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.BeginSample(methodName);
                     #else
         Profiler.BeginSample(methodName);
                     #endif
                     #endif
         UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l);
         UnityEngine.Rect          a1;
         checkValueType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetClipRect(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
             #if DEBUG
     finally {
                     #if UNITY_5_5_OR_NEWER
         UnityEngine.Profiling.Profiler.EndSample();
                     #else
         Profiler.EndSample();
                     #endif
     }
             #endif
 }
 static public int SetClipRect(IntPtr l)
 {
     try {
         UnityEngine.UI.IClippable self = (UnityEngine.UI.IClippable)checkSelf(l);
         UnityEngine.Rect          a1;
         checkValueType(l, 2, out a1);
         System.Boolean a2;
         checkType(l, 3, out a2);
         self.SetClipRect(a1, a2);
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
Exemplo n.º 3
0
        static StackObject *SetClipRect_4(ILIntepreter __intp, StackObject *__esp, IList <object> __mStack, CLRMethod __method, bool isNewObj)
        {
            CSHotFix.Runtime.Enviorment.AppDomain __domain = __intp.AppDomain;
            StackObject *ptr_of_this_method;
            StackObject *__ret = ILIntepreter.Minus(__esp, 3);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 1);
            System.Boolean @validRect = ptr_of_this_method->Value == 1;

            ptr_of_this_method = ILIntepreter.Minus(__esp, 2);
            UnityEngine.Rect @value = (UnityEngine.Rect) typeof(UnityEngine.Rect).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            ptr_of_this_method = ILIntepreter.Minus(__esp, 3);
            UnityEngine.UI.IClippable instance_of_this_method = (UnityEngine.UI.IClippable) typeof(UnityEngine.UI.IClippable).CheckCLRTypes(StackObject.ToObject(ptr_of_this_method, __domain, __mStack));
            __intp.Free(ptr_of_this_method);

            instance_of_this_method.SetClipRect(@value, @validRect);

            return(__ret);
        }
Exemplo n.º 4
0
        static int _m_SetClipRect(RealStatePtr L)
        {
            ObjectTranslator translator = ObjectTranslatorPool.Instance.Find(L);


            UnityEngine.UI.IClippable __cl_gen_to_be_invoked = (UnityEngine.UI.IClippable)translator.FastGetCSObj(L, 1);


            try {
                {
                    UnityEngine.Rect value; translator.Get(L, 2, out value);
                    bool             validRect = LuaAPI.lua_toboolean(L, 3);

                    __cl_gen_to_be_invoked.SetClipRect(value, validRect);



                    return(0);
                }
            } catch (System.Exception __gen_e) {
                return(LuaAPI.luaL_error(L, "c# exception:" + __gen_e));
            }
        }