
Unity Tips & Tricks
@tips4unity
Maintained by @schattenkindnet | Feel free to contact me ([email protected]) with tips/suggestions/.. | Don't forget the #unitytips on Tuesdays
You might like
Disable "Edit -> Preferences -> General -> Auto Refresh" to disable recompiling/reloading on change, "Asset -> Refresh" to manually trigger.
Pressing Ctrl while moving an object snaps the position to full world units.
|>| Frame Skip Button (next to || Pause) can be used to proceed 1 frame at a time | bit.ly/1pP7ynS
Start a Coroutine within another Coroutine: "IEnumerator MyCo() { yield return StartCoroutine(OtherCo()); }"
Run a Coroutine blocking: "IEnumerator it = MyCoroutine(); while (it.MoveNext());"
[MenuItem ("CONTEXT/Rigidbody/Lala")] adds a menu item called "Lala" to a Rigidbody's context menu | bit.ly/1kJHwLc
[MenuItem ("Window/Something %g")] with shortcut g (ctrl-g on Windows, cmd-g on OS X) | other modifiers: # shift, & alt , _ no mod
[MenuItem("Assets/My")] static void My() {} creates an My entry in the Asset context menu | thx to salomon | bit.ly/1kJHwLc
Check Editor.log "Used Assets, sorted by uncompressed size:" to check why the build is too big | bit.ly/1pVw1b2
"EditorApplication.OpenScene("Assets/Scenes/my.unity");" opens a scene (check SaveCurrentSceneIfUserWantsTo) | bit.ly/1hz8El2
Notification in editor window | ShowNotification(new GUIContent(EditorGUILayout.TextField("Hello"))); | bit.ly/SH3pnN
"Object.Destroy(Object obj, float t = 0.0F);" has a timeout to delay destruction by t seconds
"yield return new WaitForSeconds(1f);" will never stop if "Time.timeScale = 0f;"
[SelectionBase] attribute to mark its GameObject as a selection base object for Scene View picking | bit.ly/22TWOW3
Nice 4.5 details: SelectionBase, DecoratorDrawers, UNITY_PRO_LICENSE define, ability to serialize structs | bit.ly/Tc9eKw
In project search "t:scene" shows only scenes, "t:texture" only textures. You can use "t:NAME_A_TYPE_HERE".
Custom component icons | Click a script in the inspector and change the icon similar to this bit.ly/1oUy1xt
United States Trends
- 1. Deport Harry Sisson 9,859 posts
- 2. #PokemonZA 2,053 posts
- 3. DuPont 1,904 posts
- 4. #PokemonLegendZA 1,770 posts
- 5. Deloitte 7,437 posts
- 6. #EliraGotCake2025 8,636 posts
- 7. Gabe Vincent 4,177 posts
- 8. Angel Reese 54.2K posts
- 9. Mavs 5,730 posts
- 10. Lakers 18.4K posts
- 11. tzuyu 258K posts
- 12. #Blackhawks 2,192 posts
- 13. Mad Max 4,012 posts
- 14. Everest 3,505 posts
- 15. Domain For Sale 19.5K posts
- 16. #AEWDynamite 19K posts
- 17. Blues 20.3K posts
- 18. Britney 22.8K posts
- 19. Fast Times 1,614 posts
- 20. Birdman 5,566 posts
You might like
-
Keijiro Takahashi
@_kzr -
Brackeys
@BrackeysTweet -
Jasper Flick
@catlikecoding -
Code Monkey
@UnityCodeMonkey -
Baye
@waylybaye -
Sarika Singh
@BBCsarika -
Alan Zucconi
@AlanZucconi -
Mike Geig
@mikegeig -
Will Goldstone
@willgoldstone -
Febucci
@febucci -
Matt Mirrorfish
@MattMirrorFish -
Ciro Continisio
@CiroContns -
Don Williamson
@Donzanoid -
Lucas Meijer
@lucasmeijer -
Juha Kiili
@JuhaKiili
Something went wrong.
Something went wrong.