void UpdateManager() { if (_manager != null) { _manager.Release(); } if (_texture != null) { _manager = MaterialManager.GetInstance(_texture, _shader, _materialKeywords); } else { _manager = null; } }
void UpdateManager() { MaterialManager mm; if (_texture != null) { mm = _texture.GetMaterialManager(_shader, _materialKeywords); } else { mm = null; } if (_manager != null && _manager != mm) { _manager.Release(); } _manager = mm; }
static public int Release(IntPtr l) { try { FairyGUI.MaterialManager self = (FairyGUI.MaterialManager)checkSelf(l); self.Release(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }