So despite using Unity for some time I still discover little tricks or features in the editor that can make a developers life easier. Just today I stumbled across creating a GuiTexture whilst a 2D texture is selected not only applies the selected texture automatically but also sets up the pixel inset values!
So I figured there must be plenty of other little tips or tricks for the editor and thought i’d starta thread for others to add to it. Only 2 rules, firstly it must related to the editor, so no coding tricks or how to use a feature, secondly as a tip it should be quick and simple to do, nothing that requires many complex steps.
May I also request discussion is kept to a minimum, i.e no arguments over what is a tip and what might be common sense, e.g. camera’s can have individual skyboxes. I’d like, assuming there are more tips for this to be a useful resource. I may, time permitting compile all the suggestions into this first post.
Tips, Tricks Cool features.
001: Creating a GuiTexture whilst having a 2D texture selected in the ‘project pane’ will automatically use that texture (instead of the default Unity Logo) and correctly set up the pixel inset values.
002: Camera’s can have their own skybox via adding the skybox component to any camera.
003: Cubemaps are never compressed in vram (ARGB32) (standalone/web player), for skyboxes you are better off using 6 compressed textures if memory is an issue.
004: Use [ ] around important gameObject names or append an underscore to the beginning to place them at the top of the hierarchy.
005: Project Wide Defines - See here.
006: Holding down “Ctrl” you can drag a object one block at a time.
007: Have the scene camera in an awesome position and want to move the game camera to match?
-Select the camera in the hierarchy then GameObject → Align With View
008: Want to move the scene camera to the position of the main camera?
-Select the main camera then GameObject → Align view to selected
009: Create a material with the shader you want to use highlighted in the project browser it will use the selected shader by default.
010: FBX Scale Fix Automatically add colliders - See Silence post.
011: Delete inspector array items (like the input manager) by clicking on the item and pressing cmd-delete (or the Windows equivalent - think that is just delete).
012: You can insert into inspector array items by selecting an item and hitting cmd-d to duplicate.
013: FBX - select embed media when exporting your fbx files. The textures will then be placed into a seperate folder, which will be linked to your model automatically when imported into Unity.