我们从官网可以知道首次为一个项目编辑 AssetBundle 资源,需要先编辑配置文件 Assets/GameFramework/Configs/AssetBundleEditor.xml
可是当我们回过头来看StarForce案例却发现,并没有这个目录
我们注意到,打开工程会有这个Log(自己新建工程就会出现警告,加载失败,应用默认路径)
追踪进去
继续顺着Load追踪
目标很明确了,m_ConfigurationPath
我们继续追踪会看到这样一句
m_ConfigurationPath = Type.GetConfigurationPath<AssetBundleEditorConfigPathAttribute>() ?? Utility.Path.GetCombinePath(Application.dataPath, "GameFramework/Configs/AssetBund