Пример #1
0
        internal static IEnumerator InitializePackage(KernelInitializeData initializeData)
        {
#if UNITY_EDITOR
            EditorAssetManager editorAssetManager = new EditorAssetManager();
            Kernel.AssetManager = editorAssetManager;
            yield return(editorAssetManager.InitializeAsync(initializeData));
#else
            yield return(null);
#endif
        }
Пример #2
0
        public override void OnRelease()
        {
            if (m_AssetCallBackDic != null)
            {
                m_AssetCallBackDic.Clear();
                m_AssetCallBackDic = null;
            }

            if (m_AssetToGameObjectInstantiateData != null)
            {
                m_AssetToGameObjectInstantiateData.Clear();
                m_AssetToGameObjectInstantiateData = null;
            }
            ms_EditorAssetManager = null;
            m_AssetInfos          = null;
        }
Пример #3
0
 public EditorAssetManager()
     : base("EditorAssetManager", (int)BehaviourPriority.AssetManager, BehaviourGroup.Default.ToString())
 {
     ms_EditorAssetManager = this;
     SetEnable(false);
 }