Posts

Showing posts from September, 2020

Grid snapping in unity editor

Image
 There are virtual grid in the editor's Scene view that help you to align GameObjects snapping(moving) to the nearest grid You can change this grid to any axis x,y,or z.  Aligning (Moving) to the grid GameObject can be move to the single axis or along all axis to the closest grid. To move a gameObject to closest grid open Grid and snap window by either method From Main unity menu, Choose Edit>Grid and Snapping Setting From the grid visible in scene view menu open the overflow menu and choose Edit Grid and Snap Setting and you can reset all grid settings by just clicking reset as shown in below image. in grid and snap setting  you will find Align selection sector click on x, y, or z button or to all axis or you can did the same work by selecting the gameobject and pressing Ctrl + \ key together for windows and command+\ key for macOS. You can use increment Snap Section to modify how much you want to move and along which axis. Showing and Hiding Grid lines By toggling the grid vis

Positioning GameObjects in unity editor

Image
 You can change transform component of any gameobjects by manipulating mouse on any Gizmo axis or you can change values of transform component in inspector window. transform has the following tools. let's take a look  Move tool You can select move tool in toolbar or can select by pressing hotkey W.  At the center of Move Gizmo there are three small squares by dragging these square you can move gameObject along a plane and third axis remains constant. if you press shift key while dragging Move Gizmo squares will change to flat square. This flat square indicates that you can move gameObject in the direction scene view camera is facing.  For moving  to particular axis just drag any one of the axis that you want to change. Rotation tool While you select rotate tool or press hotkey E you will see spheres around gameObject and you can change rotation by dragging this sphere Gizmo. As with the Move Gizmo, the last axis you changed will be colored yellow. Think of the red, green and blue c