Struct Parent
This component specifies the parent entity in a transform hierarchy.
Namespace: Unity.Transforms
Assembly: Unity.Transforms.dll
Syntax
[Serializable]
public struct Parent : IComponentData, IQueryTypeParameter
Remarks
If present, this entity's transform is implicitly specified relative to the parent's transform rather than in world-space.
Add or remove this attribute to your code in order to add, change, or remove a parent/child relationship. The corresponding Child component is automatically added by the ParentSystem.
When adding or modifying this component, add and update the corresponding LocalTransform component.
Fields
Name | Description |
---|---|
Value | The parent entity. |