A Guild to Beautiful Games:
Tips and Tricks when Creating a 3D Scene
One of things I knew before working on the 3D FPS Shooting game is some very neat tips and tricks that would help speed up your work flow when using Unity.
When working with multiple prefabs or objects and you are trying to duplicate same objects, instead of using the Edit > Duplicate every single time, we can use the keyboard shortcut “Control + D”. (Command+ D on a Mac OS)
Moving Objects within Set Increments:
When you want to either rotate or just move objects within your scene and you want to make sure that everything is shifting with a set value, you can hold down the “Control” (Command key on Mac OS). You will noticed that the value of movement in the X,Y and Z is in whole int values instead of floats. While rotating, you know see that the rotation value is every 15 degrees.
Noticed when you import new objects or prefabs into the scene and they are always misaligned or just floating there in space? Well with vertex snapping, we are able to quickly grab a corner of the object and snap it to another corner we want this new object to align to. All you have to do is to select the object and hold the “V” key, you will noticed that the cursor is now locked into corners which you can select and drag to our destination.
As the heading suggest, you should be always trying your best when organizing the Hierarchy especially when working with groups. You wouldn’t want to open a group project with the hierarchy just filled too the brim without any sort of clue what goes where etc.
A neat tip to even further organize the hierarchy is to treat empty game objects as folders. With an parent empty game object treated as the master folder, then have other empty game objects act as individual folders for different terrains such as “walls, floors, and other items” this will definitely make the Hierarchy much more easier to read and work with.
Breaking A Prefab:
Finally, we all know how to work with prefabs and how to create one, but do you know you can break a prefab that is active on the scene?
If you right click on any prefab that is within the Hierarchy, you will see the option to Unpack within the Prefab tab. This only breaks apart the prefab within the active scene and not the actual prefab stored within the assets.
This is quite useful for swapping out similar components to create variations of prefabs that follow a similar design such as wall decals. When creating my walls, I created one prefab, dragged one to the hierarchy and unpacked it. Then I changed some components and added other details. When I was satisficed I recreated a brand new prefab of the same wall.
It was a lot faster than trying to create a new prefab from scratch and trying to match the size and height of the previous settings.
With these tips and tricks, we are able to speed up the process of working with 3D models in Unity.