예제 #1
0
        public T Get <T>(string name, string path) where T : Object
        {
            T result = (mCustomAssets != default) ? mCustomAssets.GetCustomAsset <T>(name, path) : default;

            if ((result == default) && HasBundel(name))
            {
                IAssetBundleInfo assetBundleInfo = mCaches[name];
                result = assetBundleInfo.GetAsset <T>(path);
            }
예제 #2
0
        private void RemoveBundle(ref string name)
        {
            if (mCaches.ContainsKey(name))
            {
                mABManifests.Remove(name);

                IAssetBundleInfo info = mCaches[name];
                info.Dispose();
            }
        }
예제 #3
0
        public GameObject Get(string name, string path)
        {
            GameObject result = (mCustomAssets != default) ? mCustomAssets.GetCustomAsset <GameObject>(name, path) : default;

            if ((result == default) && HasBundel(name))
            {
                IAssetBundleInfo assetBundleInfo = mCaches[name];
                result = assetBundleInfo.GetAsset(path);
            }
            return(result);
        }