This is the first part of a series of posts dedicated to the most useful, short and sweet tips to make the most out of Unity. Today we will focus on interesting features of the editor which can really speed up your workflow.
You can use the hashtag #UnityTips to find many more tips posted by developers all around the world.
In-editor Arithmetic Expressions
All the numerical fields in the inspector support basic arithmetic expressions.
Numerical values are automatically assumed as either
float and the trailing
f is not required.
Unity supports several snapping options.
- Press Ctrl while moving an object to snap its position:
This works even when scaling and rotating an object.
- You can configure the amount of snap in Edit > Snap Settings….
- Holding V allows to snap to the vertex of a mesh:
Move along Local Axes
When an object is selected, the move handlers are aligned with the global axes. By switching to Local Mode instead, you can move an object along its rotated axes.
The Local / Global toggle is found under the menu.
Copy / Paste Colours
You can copy and paste colours.
Save Changes made in Play Mode
One of the most frustrating bits of Unity is that all the changes made to an object in Play Mode are deleted once you stop the game. There’s a way to go around this.
- Enter in Play Mode
- Made all the changes you need to your object
- From the Inspector, right click on the name of your component and then select Copy Component
- Exit from Play Mode
- Right click again on the component name and select Paste Component Values
You can duplicate an asset by selecting in the Project window Ctrl+D.
Resizeable Preview and Maximised Game
- The Preview window is often too small and cannot be easily expanded in the Inspector window. Right click on it will move it into a floatable, resizeable and expandable version.
- Similarly, the Game window can be resize without restarting the game. Just right click on its tab and select Maximize:
Stay Focused on Objects
You have several options to control the camera of the inspector:
- Press F when an object is selected to focus on it; this will also zoom on it.
- Double click on an object to centre it on the camera.
- Press Shift+F to lock the editor camera onto the selected object. The camera will follow your object, even if it moves.
Asset Store Search
Searching something on the Asset Store often breaks the flow of your work. Luckily, Unity supports a fast method to search assets on the Store. To do this, you can simply type something in the search bar of the Project window; then, select Asset Store instead of Asset. The assets are grouped in two categories: free and paid.
- Console Debugging Made Easy
- How to Integrate Arduino with Unity
- A Practical Tutorial to Hack (and Protect) Unity Games
💖 Support this blog
This websites exists thanks to the contribution of patrons on Patreon. If you think these posts have either helped or inspired you, please consider supporting this blog.
📧 Stay updated
You will be notified when a new tutorial is relesed!
You are free to use, adapt and build upon this tutorial for your own projects (even commercially) as long as you credit me.
You are not allowed to redistribute the content of this tutorial on other platforms. Especially the parts that are only available on Patreon.
If the knowledge you have gained had a significant impact on your project, a mention in the credit would be very appreciated. ❤️🧔🏻