Synced
SceneEdits.CreateGameObject
Section titled “SceneEdits.CreateGameObject”
- Creates a GameObject, optionally parents it, and records only the new subtree state.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Scene
Scope: Editor
Declaration
Section titled “Declaration”public InnoEngine.Scene.GameObject InnoEditor.Scene.SceneEdits.CreateGameObject(InnoEngine.Scene.GameScene scene, InnoEngine.Scene.Transform? parent = null, string historyName = "Create GameObject")Parameters
Section titled “Parameters”Parameter scene: The loaded scene that will own the object.
Parameter parent: The optional parent transform.
Parameter historyName: The user-facing history entry name.
Returns
Section titled “Returns”The newly created GameObject.