Beispiel #1
0
    static int PerformClipping(IntPtr L)
    {
        LuaScriptMgr.CheckArgsCount(L, 1);
        RectMask2D obj = (RectMask2D)LuaScriptMgr.GetUnityObjectSelf(L, 1, "RectMask2D");

        obj.PerformClipping();
        return(0);
    }
Beispiel #2
0
    public static int PerformClipping(IntPtr l)
    {
        int result;

        try
        {
            RectMask2D rectMask2D = (RectMask2D)LuaObject.checkSelf(l);
            rectMask2D.PerformClipping();
            LuaObject.pushValue(l, true);
            result = 1;
        }
        catch (Exception e)
        {
            result = LuaObject.error(l, e);
        }
        return(result);
    }