unity 实例化gameobject后可以销毁prefab吗
可以。在实例化 GameObject 后,可以将其销毁,而不会影响其原始 Prefab。可以使用 Destroy() 方法来销毁实例化的 GameObject。例如:
GameObject instance = Instantiate(prefab);
// do something with the instance
Destroy(instance);
原文地址: https://www.cveoy.top/t/topic/c4sS 著作权归作者所有。请勿转载和采集!