Your game scene may consist of objects that are visible on your scene view (like mesh) and objects that are not visible there (like script holders). You may find yourself in a situation when these invisible objects should have certain position, rotation, or scale, but the only way to select these would be clicking on the object name in the hierarchy. There’s another way!
You can assign a gizmo to any of your scene objects. The easiest way would be to select an icon. It can be a nameless icon like this:
Or an icon that will be labeled with the object’s name:
If you want variety, you can even choose a texture that will be used as your object’s gizmo:
Next time we will tell you how to create a custom gizmo using scripts and how these can be useful to developer.
Did you know that there’s an easier way to share your Unity project files than zipping it all into a single archive? Check the unitypackage file format!
Unitypackage is a basic distribution format of the Unity Asset Store and you might not have even known about it because it is completely transparent for the end user! Yet you can use it for your own purposes and share only a part or whole project. Just select files that you want to share, right-click and choose Export Package option from the context menu.
You may exclude some files from the package by unchecking them. Decide if you want to include dependencies needed for the assets to work (1) and then export the package (2). Note that Include dependencies option will always include all source files.
Finally send the resulting unitypackage file to anyone that you want to share your work with and tell them to double-click on it. It’s just that simple!
The receiver may choose if they want to import all files into the project or only a few of them. Then by clicking on the import button (1) selected files will be added to the project.
Why you should care?
You may ask “Why just not zip part of my project?”. There are at least three reasons why not to do it:
- Unity caches its resources in the memory before saving it to the hard drive. Accidentally you may copy files that are yet to be updated.
- You will not know if you zip all necessary files. Unity Export Package window allows you to include all needed dependencies as well.
- If you have meta files disabled, zipping your files will break the references between them.
Did you know that when you hold the Ctrl key in the Scene view while moving the object its position will snap to the grid?
You can fine-tune your Snap settings by selecting Edit -> Snap Settings from the main menu.
As you can see, you can not only snap object position, but scale and rotate as well!
Your object will snap relatively to its start position! For example, if its X position is 0.5, then it snaps to 1.5, 2.5, etc. To snap your object to the world origin (0, 0, 0), use the Snap All Axes button, or X, Y or Z buttons to snap to only one axis at time.
For more information on how you can easily position your object see the official Unity documentation.