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

            if (guiPar != null)
            {
                guiPar.InitRenderers();
                guiPar.SetSortingOrder(0);
            }
        }
예제 #2
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));
     }
 }