Esempio n. 1
0
        public void 测试bundle模式加载()
        {
            var set = AssetDatabase.LoadAssetAtPath <EnvSetting>("Assets/Setting/EnvSetting.asset");

            AppEnv.Init(set);
            BundleMgr.Instance.ResetDep(true);
            var path = @"Assets/SoUtil/Test/PlayModeRunTest/Res/EditorRes/Sphere.prefab";
            SingleAssetObj <GameObject> obj = new SingleAssetObj <GameObject>();

            obj.Load(path, () => Debug.Log(obj.asset));
        }