CacheRenderers() public method

GoWrapper will cache all renderers of your gameobject on constructor. If your gameobject change laterly, call this function to update the cache. GoWrapper会在构造函数里查询你的gameobject所有的Renderer并保存。如果你的gameobject 后续发生了改变,调用这个函数通知GoWrapper重新查询和保存。
public CacheRenderers ( ) : void
return void
示例#1
0
 static public int CacheRenderers(IntPtr l)
 {
     try {
         FairyGUI.GoWrapper self = (FairyGUI.GoWrapper)checkSelf(l);
         self.CacheRenderers();
         pushValue(l, true);
         return(1);
     }
     catch (Exception e) {
         return(error(l, e));
     }
 }
示例#2
0
 static int CacheRenderers(IntPtr L)
 {
     try
     {
         ToLua.CheckArgsCount(L, 1);
         FairyGUI.GoWrapper obj = (FairyGUI.GoWrapper)ToLua.CheckObject(L, 1, typeof(FairyGUI.GoWrapper));
         obj.CacheRenderers();
         return(0);
     }
     catch (Exception e)
     {
         return(LuaDLL.toluaL_exception(L, e));
     }
 }