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));
     }
 }