Unity提示UnloadAsset may only be used on individual assets and can not be used on GameObjects Components AssetBundles or GameManagers
提示信息意味着在Unity中,UnloadAsset方法只能用于单个资源,不能用于GameObject、Component、AssetBundle或GameManager。
如果你想卸载一个GameObject或Component,应该使用Destroy方法而不是UnloadAsset。对于AssetBundle或GameManager,可以使用其他相关的方法来进行卸载操作。
原文地址: https://www.cveoy.top/t/topic/hAEG 著作权归作者所有。请勿转载和采集!