Synced
Transform.SetParent
Section titled “Transform.SetParent”
- Sets the parent while preserving this transform’s world-space values.
Required contracts
Section titled “Required contracts”API: engine
Project: Inno.Scene
Declaration
Section titled “Declaration”public void Inno.Scene.Components.Transform.SetParent(Inno.Scene.Components.Transform? parent)Parameters
Section titled “Parameters”Parameter parent: New parent, or null to move to scene level.
Exceptions
Section titled “Exceptions”Exception T:System.InvalidOperationException: Thrown for hierarchy cycles, cross-scene parents, or a non-invertible parent hierarchy.