这个报错表示"Assets/_HotPatchRoot/ResourceX/Atc/Unit/template_battle.controller" (AnimatorStateTransition)是一个仅限于编辑器使用的对象,不能被包含在AssetBundles中。

解决方案是将该对象从AssetBundles中排除。可以通过以下两种方式解决:

  1. 将该对象移除或替换为可在运行时使用的对象。编辑器只对象通常是不需要在运行时使用的,所以可以考虑将其替换为其他运行时可用的对象。

  2. 在构建AssetBundles时,使用BuildAssetBundleOptions参数中的选项来排除Editor Only对象。可以在BuildAssetBundleOptions中设置ExcludeEditorOnly选项为true来排除这些对象。

解决方案的具体实现取决于你的项目需求和代码结构。

理解以下报错并给出解决方案Editor only objects cannot be included in AssetBundles Assets_HotPatchRootResourceXAtcUnittemplate_battlecontroller AnimatorStateTransitionUnityEditorBuildPipelineBuildAssetBundles string

原文地址: https://www.cveoy.top/t/topic/hJCf 著作权归作者所有。请勿转载和采集!

免费AI点我,无需注册和登录