"Transform" component in Unity Engine
Every object in a scene has a Transform. It's used to store and manipulate the "position", "rotation" and "scale" of the object.
Every Transform can have a parent, which allows you to apply position, rotation and scale hierarchically. This is the hierarchy seen in the Hierarchy pane.
transform.position - to get position vector
transform.rotation - to get rotation vector
transform.localScale - to get object scale
Full Video:
No comments