
Unity Tips & Tricks
@tips4unity
Maintained by @schattenkindnet | Feel free to contact me ([email protected]) with tips/suggestions/.. | Don't forget the #unitytips on Tuesdays
내가 좋아할 만한 콘텐츠
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 트렌드
- 1. #KonamiWorldSeriesSweepstakes 1,625 posts
- 2. Mitch McConnell 26.1K posts
- 3. #2025MAMAVOTE 1.62M posts
- 4. Term 196K posts
- 5. Andrade 10.1K posts
- 6. Tyla 30.2K posts
- 7. Carter Hart 3,222 posts
- 8. Budapest 20.2K posts
- 9. No Kings 157K posts
- 10. Big L 11.5K posts
- 11. AJ Green N/A
- 12. Chanel 30.6K posts
- 13. Somalia 33K posts
- 14. #TrumpShutdownBadForUS 5,715 posts
- 15. Yung Miami 3,323 posts
- 16. Deport Harry Sisson 35K posts
- 17. Anya 16.4K posts
- 18. Caresha 2,114 posts
- 19. Nick Khan N/A
- 20. Dodgers vs Mariners N/A
내가 좋아할 만한 콘텐츠
-
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.