Transform

Transform

STD Library
Component
Combine:
entity

Rotation, scaling, and parent-child record

Properties

Name Type Description Script Name
Position Vector3 Coordinates in the world coordinate system Position
Rotation Vector3 The rotation angle in the world coordinates. x, y, z refers to the yaw, pitch, and roll, respectively. Rotation
Scale Vector3 The zoom scale of the coordinate series in the world Scale
Parent Transform The entity ID recorded during serialization Parent
Rotation Quaternion Quaternion The quaternion in the world coordinate system RotationQ
Local Position Vector3 Coordinates in the local coordinate system LocalPosition
Local Rotation Quaternion Quaternion The quaternion in the local coordinate system LocalRotationQ
Local Rotation Vector3 Rotation angles in the local coordinate system (X: yaw, Y: pitch, and Z: roll) LocalRotation
Local Scale Vector3 The scale size in the world coordinate system LocalScale
Up Vector3 The direction of the y-axis in the local coordinate system Up
Right Vector3 The direction of the x-axis in the local coordinate system Right
Forward Vector3 The direction of the z-axis in the local coordinate system Forward

API

Name Description
Set Parent Setting the parent node requires that both parent and child have the Transform component
Set Parent Set the parent node of the object entity, supporting entities with Transform, SkeletonPart, Player, and MountPoint components mounted on them