MoveGameObjectToScene(GameObject, Scene, string)
Move a GameObject from its current Scene to a new Scene. It is required that the GameObject is at the root of its current Scene.
阅读时间1 分钟最后更新于 1 个月前
Definition
- Type: Method
- Namespace: UnityEditor
- Assembly: UnityEditor
public static void MoveGameObjectToScene(GameObject go, Scene scene, string name)
Parameters
GameObject to move.
Scene to move the GameObject into.
Name of the undo action.