Learning Transform tools – Unity Tutorial

This article explains transform tools in details. We will see how to change transform of a GameObject using transform tools and using scripts.

Transform Tools
Transform tools are used to move, rotate, scale or Rect Transform selected GameObjects in the scene. Transform tools are located at left most side of toolbar section of the unity interface.

Learning Transform tools -Toolbar-Edited

Let’s see each transform tools one by one.

Hand Tool

Learning Transform tools - Hand

Hand tool is not used to change transform of the GameObject. It is used for scene navigation.

Learning Transform tools -HandTool

Move

By default, move transform toll will be selected in the unity editor.

Learning Transform tools -Position

Use this tool to change the position of the GameObject. The last axis that is changed will be displayed in yellow.

Learning Transform tools -Move

Rotate

Learning Transform tools -Rotation

Use rotate tool to change the rotation of the GameObject. The last axis that is changed will be displayed in yellow.

Learning Transform tools -Rotate

Scale

Learning Transform tools -Scale

Use Scale tool to change size of the GameObject. The last axis that is changed will be displayed in yellow.

Learning Transform tools -Scale

Rect Transform

Learning Transform tools -RectTransform

The rect transform is mostly used to position the UI elements or 2D elements, but you can also manipulate 3D object using this tool. You can change scale of a GameObject using this tool.

Learning Transform tools -RectTransform

Keyboard Shortcut to Switch between Transform Tools

Use below given hot key to switch between transform tools:

  • Q -> Hand Tool
  • W -> Move
  • E -> Rotate
  • R -> Scale
  • T -> Rect Transform

Change transform of a GameObject at Runtime

Get transform component of the GameObject and change its position, rotation and scale using script.

Result:

Learning Transform tools -Result

Hope you get an idea about how to change transform of a GameObject. Please post your comments for queries and feedback. Thanks for reading.

Share Button
The following two tabs change content below.
Gyanendu Shekhar is a technology enthusiast. He loves to learn new technologies. His area of interest includes Microsoft technologies, Augmented reality, Virtual reality, unity3d and android development.

Gyanendu Shekhar

Gyanendu Shekhar is a technology enthusiast. He loves to learn new technologies. His area of interest includes Microsoft technologies, Augmented reality, Virtual reality, unity3d and android development.

Leave a Reply

Your email address will not be published. Required fields are marked *