static public int UnloadUnusedResources(IntPtr l) { try { UI.Controller.ControllerBase self = (UI.Controller.ControllerBase)checkSelf(l); self.UnloadUnusedResources(); pushValue(l, true); return(1); } catch (Exception e) { return(error(l, e)); } }
public static void DestroyWin(string name, bool byAction = false, EventMultiArgs actionArgs = null) { ControllerBase contro = GetControler(name); UILevel eLevel = contro.ELevel; contro._destroyByActionArgs = actionArgs; if (contro._needSceneHide || contro._needSceneBlur) { AutoSceneHide(name); } if (contro.DestroyWin(byAction)) { UnRecordShowingWin(name, eLevel); contro.UnloadUnusedResources(); //AssetManager.getInstance().UnloadUnusedResourcesAssets(); } }