Unity3d Coding Tips and Tricks
Let's talk about @unity3d, and the execution order of its event functions—such as πππππ and ππππππ.
— Alan Zucconi (@AlanZucconi) March 8, 2021
Trust me when I say that ...IT'S WAY MORE COMPLICATED THAN YOU THINK. π¬#gamedev #unitytips #madewithunity
π§΅π pic.twitter.com/jTcX0lp15R
With the latest @unity 2020 LTS you can use some of the new features in C# 8.0! One of my favorites is a switch expression which greatly reduces the syntax required. It's not a full replacement for switch statements but works well for linking data together. #UnityTips pic.twitter.com/tAB3mxfxvN
— Dan Miller (@DanMillerDev) May 11, 2021
If you want to destroy an object in @unity3d, but want to wait a few seconds, you can insert a delay as a second optional parameter.#TipTuesday #TopTips #unitytips pic.twitter.com/mTY646t72F
— Gordon Arber (@GordonArber) June 15, 2021
Found a nice property attribute that labels array elements by enum names. This is going to be very useful, no more need to make get methods or dicts as I typically would when I want to map data to enum. Added it to my utils repo: https://t.co/7noj6Ly9l0 #unitytips #madewithunity pic.twitter.com/uN7GRnO7uy
— π· Ivan π²π️π¨π² (@Nothke) June 9, 2021
Did you know Debug.LogException() in try..catch will navigate right to the proper line which caused the exception (while other Debug.Log* methods will navigate to themselves)?#unitytips #unity3d pic.twitter.com/01Mys6nDXf
— Dmitriy Yukhanov (@dmitriy_focus) June 15, 2021
#UnityTips Of course it is very good to know how to get from degree to radians ( rad = deg * PI / 180 )
— Binary Impact (@BinaryImpactG) October 27, 2020
But you could also use one of the constants from the Mathf library ( Mathf.Deg2Rad )#gamedev #indiedev pic.twitter.com/27zdWocZVH
#UnityTips You can use extension methods to add functionality specific to a particular enum type.
In our example we use an enum to define neighbors on a square tiled board. And we add quality of life methods to the enumeration.#csharp #indiedev #gamedev pic.twitter.com/yUq6s6Vms7














