All of our Unity Tips
#unitytips Did you know that Camera.main calls Object.FindObjectWithTag("MainCamera") ? And will do every time you use Camera.main!
Better cache your Camera and avoid Camera.main. Or make a public variable ( Camera cam ) to use in your scripts!#optimization #gamedev #indiedev pic.twitter.com/gLhYTuo4u0
— Binary Impact (@BinaryImpactG) January 12, 2021
#UnityTips We will kickoff the new year of tips with this one:
Unity 2021.1 now has built-in pooling system!
A little bit of reading but useful in the future:https://t.co/gEFRHTULcL#indiedev #gamedev
— Binary Impact (@BinaryImpactG) January 5, 2021
#UnityTips We did it! 52 Tips in 2020 we did not skip a single Tuesday!
Something new today: Since #Unity 2020.2 Arrays and Lists are reorderable by default. You can disable this function by using the [NonReorderable] attribute.#gamedev #indiedev pic.twitter.com/ilHDFrTe8l
— Binary Impact (@BinaryImpactG) December 29, 2020
#UnityTips Save a few mouse-meters each day:
shift + alt + a activates or deactivates the currently selected gameobject 😎#shortcut #gamedev #indiedev pic.twitter.com/2EdGZ182vu
— Binary Impact (@BinaryImpactG) December 22, 2020
#UnityTips This week we have a script for you!😎
Use the PostProcessBuildAttribute to call scripts when a build was finished.
Look at the image, on how to append the version to the filename.
Useful for mobile apps to keep track of the deployed version!#gamedev #indiedev pic.twitter.com/tZnIXD5QGt
— Binary Impact (@BinaryImpactG) December 15, 2020
#UnityTip Did you know that you can use the profiler to profile the editor?!? 🤯#performance #gamedev #indiedev pic.twitter.com/dZVZj1rUhS
— Binary Impact (@BinaryImpactG) December 8, 2020