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: engine
Project: Inno.Editor.Scene
Declaration
Section titled “Declaration”public Inno.Scene.GameObject Inno.Editor.Scene.SceneEdits.CreateGameObject(Inno.Scene.GameScene scene, Inno.Scene.Components.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.