When you add a script which uses [RequireComponent] to a GameObject, the required component will automatically be added to the GameObject. This is useful to avoid setup errors. This also helps you dodge null references. #unitytips#unitycertifiedinstructor#madewithunity
Sup Friends! lets build an editor tool together, we haven't done that in AGES! I need to preview a Texture2D in the inspector, and theres no easy way to do it without making a custom editor. Lets fix that by making a PropertyDrawer! Its going to look like this #UnityTips
@GreyAlien Odin has a ton of cool stuff indeed. But if you need just a small attribute without to import a massive lib. This repo might a better way to go: https://t.co/9ZDb2aAZVc
C# interfaces can be tricky in @unity3d since an interface reference will NOT be null even if the Object is destroyed.
Use this base interface + extension method trick to make it easy! #unitytips#gamedev#indiedev#madewithunity
#UnityTips Extending our tip from last week here is a quick reminder:
Using TryGetComponent will not allocate memory in case it fails and is available since 2019.2.
#gamedev#indiedev
I'd like to propose an alternate purpose of april fools~
today we highlight and recognize the fools of this world, such as Donald Trump, Viktor Orbán and Jair Bolsonaro! 🎉
these people are bad, incredibly harmful human beings! 🌟
wow what absolute fools. fuck them!✨