List of children transforms.
OptionalgameReference to the GameObject this component is attached to.
OptionalparentReference to the parent transform.
Local rotation in radians relative to the parent.
Gets the world-space position. Note: This returns a clone to prevent accidental cache mutation. For performance, use getWorldPosition(out).
Calculates the world-space rotation.
Calculates the world-space scale. Note: This returns a clone to prevent accidental cache mutation. For performance, use getWorldScale(out).
Adds a child transform to this one.
The child transform to add.
OptionalonOptional lifecycle hook called when the component is added to a GameObject.
Removes a child transform from this one.
The child transform to remove.
Sets this transform and all its children as dirty, forcing a recalculation of world-space properties on the next access.
Component that holds the position, rotation, and scale of an entity. Supports hierarchical transformations (parent-child relationships).