Synced
SceneEdits.AddComponent
Section titled “SceneEdits.AddComponent”
- Adds one component and records its identity, stable type, index, and persistent properties.
Required contracts
Section titled “Required contracts”API: scripting
Project: Inno.Editor.Scene
Scope: Editor
Declaration
Section titled “Declaration”public InnoEngine.Scene.GameComponent InnoEditor.Scene.SceneEdits.AddComponent(InnoEngine.Scene.GameObject owner, System.Type componentType, string? historyName = null)Parameters
Section titled “Parameters”Parameter owner: The live GameObject receiving the component.
Parameter componentType: The concrete component type to create.
Parameter historyName: An optional user-facing history entry name.
Returns
Section titled “Returns”The newly attached component.