Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我试图用光子位创建一个预制件我有这个问题
那是因为我试图实例化的预制件需要来自场景的一些依赖关系,比如相机
有什么想法我该怎么做?:/
非常感谢!
只需尝试在脚本中分配对象。如果您需要相机使用
followObject = GameObject.FindWithTag("MainCamera");
或者
followObject = Camera.main;
在 Start() 方法中。