• use a solution that replace the exact same lines of codes

    #UnityTips If you find the exact same lines of code multiple times in your project you could and should always think about a solution that replaces those insta

  • implement default methods in interface

    #UnityTips Since Unity 2020.2 we have access to the features of #csharp 8.0 Among many things we can now also implement default methods in interfaces which was

  • some physics functions have a NonAlloc variant

    #UnityTips Did you know that some physics functions have a NonAlloc variant?If memory consumption / garbage collection is an issue in you project, try this! Be

  • JIT compiler determines which methods to inline

    #UnityTips The JIT compiler determines which methods to inline. But sometimes we know better than it does. With AggressiveInlining, we give the compiler a hint.

  • Android: debug messages directly in unity

    #UnityTips Do you develop for #Android?Try the Android Logcat Package to get debug messages directly in unity and much more presentable than the console ὠ

  • check if an object is in front of another object

    #UnityTips If you want to check if an object is in front of another object you can use the InverseTransformPoint method. As long as you follow the "z is fo

  • three ways of running through a list of derived classes

    #UnityTips Today we have three ways of running through a list of derived classes. See our code example for more details.#coding #indiedev #gamedev pic.twitter.c

  • unity VideoPlayer with an URL

    #UnityTips If you use an unity VideoPlayer with an URL you might want to resize your raw image.The clip won't be available for the calculations.Subscribe to

  • Did you ever need a const dictionary

    #UnityTips Did you ever need a const dictionary?According to the C# specification, switch-case tables are compiled to constant hash jump tables. 🤔ǹ

  • How to get started with unit tests

    #UnityTips How to get started with unit tests in your project:Select TestRunner from the Window->General menu and create an assembly.In Visual Studio Right C

  • access and edit those from the asset files in the ProjectSettings folder

    #UnityTips Ever needed to set some project settings and found out there is no API access to it? You can access and edit those from the asset files in the Projec

  • you can add multiple types to [RequireComponent]

    #UnityTips Of course it is common knowledge to add the attribute [RequireComponent] to your scripts to have unity put those Components onto your GameObject.But

  • prevent instantaneous execution of OnValidate

    #UnityTips Use the [Delayed] attribute in your editor code to prevent instantaneous execution of OnValidate. It will only execute when enter is pressed or the f

  • control the handling of your scripts color fields

    #UnityTips Use the [ColorUsage] attribute to control the handling of your scripts color fields.You can enable hdr in the dialog and/or disable alpha depending o

  • Improve handling your enums in the inspector

    #UnityTips Improve handling your enums in the inspector by giving them a better description for the values with the [InspectorName] attribute 😎#gamedev