void _RefreshSortingOrder()
        {
            GuiParticleSystem guiPar = serializedObject.targetObject as GuiParticleSystem;

            if (guiPar != null)
            {
                guiPar.InitRenderers();
                guiPar.SetSortingOrder(0);
            }
        }
예제 #2
0
 static int InitRenderers(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         cs.GuiParticleSystem obj = (cs.GuiParticleSystem)ToLua.CheckObject <cs.GuiParticleSystem>(L, 1);
         obj.InitRenderers();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #3
0
 static int ToParticle(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         cs.GuiControl        obj = (cs.GuiControl)ToLua.CheckObject <cs.GuiControl>(L, 1);
         cs.GuiParticleSystem o   = obj.ToParticle();
         ToLua.Push(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #4
0
 static int SetSortingOrder(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 2);
         cs.GuiParticleSystem obj = (cs.GuiParticleSystem)ToLua.CheckObject <cs.GuiParticleSystem>(L, 1);
         int arg0 = (int)LuaDLL.luaL_checknumber(L, 2);
         obj.SetSortingOrder(arg0);
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }
예제 #5
0
 static int Initialize(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         cs.GuiParticleSystem obj = (cs.GuiParticleSystem)ToLua.CheckObject <cs.GuiParticleSystem>(L, 1);
         bool o = obj.Initialize();
         LuaDLL.lua_pushboolean(L, o);
         return(1);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }