Computer Language/Unity

[Unity] Local Transform

정우섭 2019. 2. 27. 05:36

Local Position - Relative position of a Child Object for it's Parent Object

Local Rotation - Relative rotation of a Child Object for it's Parent Object

Local Scale - The scale of the transform relative to the parent.



 

 Local Position

 Local Rotation

 Local Scale

Command

 transform.localPosition

transform.localRotation

transform.localScale

how to use

Same as transform.position

Same as transform.rotation

 Same as transform.scale