Unity 提示信息 'UnloadAsset may only be used on individual assets and can not be used on GameObject's / Components / AssetBundles or GameManagers' 意味着在 Unity 中,UnloadAsset 方法只能用于单个资源,不能用于 GameObject、Component、AssetBundle 或 GameManager。

如果你想卸载一个 GameObject 或 Component,应该使用 Destroy 方法而不是 UnloadAsset。对于 AssetBundle 或 GameManager,可以使用其他相关的方法来进行卸载操作。


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

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