ClearUICache() 공개 정적인 메소드

清理UI缓存
public static ClearUICache ( ) : void
리턴 void
예제 #1
0
 /// <summary>
 /// 退出游戏
 /// </summary>
 void GameEnd()
 {
     LShapUtil.CallScriptFunction(scriptGameInstance, "GameInstance", "End");
     scriptGameInstance = null;
     Global.AssetLoadManager.UnloadAssetBundles();
     UIUtil.ClearUICache();
     Util.ClearMemory();
     //Caching.CleanCache();
 }
예제 #2
0
    void InitializeScene()
    {
        UIUtil.ClearUICache();
        Util.ClearMemory();

        if (OnInitializeScene != null)
        {
            OnInitializeScene.Invoke();
            OnInitializeScene = null;
        }

        StartCoroutine(OnInitializeComplete());
    }