Every Tuesday we collect the best #unitytips from twitter for you!
(Cover image is from our POLYBeach asset)
Unity Tip 5:
— Tim Coster (@timcoster) 2019. július 14.
If you create a serialisable class and put a string variable called name at the top, Unity will use that name value for the name of the Elements when you create an array of that class, instead of calling them Element 0, Element 1 etc.#unitytips #unity3d #indiedev pic.twitter.com/8wdHdsnfX2
Unity Tip:
— Filip Coulianos (@Coulianos) 2019. július 9.
You can rename public variables and keep their object references and values by using the "FormerlySerializedAs" attribute.https://t.co/iIt9C8aHQK#unitytips #unity3d pic.twitter.com/WkqcM9gsxQ
#unitytips You can use the UNITY_EDITOR macro to strip testing code when building your project. #gamedev #indiedev pic.twitter.com/rpmMrBWVJT
— Binary Impact (@BinaryImpactG) 2019. július 9.
You know you can use the ParticleSystems MinMaxCurve and MinMaxGradient in your own scripts. It serializes and includes editor support! #unitytips #unity3d pic.twitter.com/ooZl85WZWy
— Karl Jones (@KarlJamesJones) 2019. július 9.
Do you know how to change the order in which scripts of a given type are called relative to scripts of other types?
— Unity Berserkers 🇵🇱 (@UnityBerserkers) 2019. július 9.
Changing the order in which scripts are called is useful because sometimes the scripts depend on each other and must be called in the right order.#unitytips pic.twitter.com/Q7YzXUlzER