• Unitys Vector classes support an index

    #UnityTips Did you know that Unitys Vector classes support an index? You can call myVector3[0] instead of myVector3.x.Very useful if you have to iterate over th

  • Make a foldout in the Inspector

    #UnityTips Make a foldout in the Inspector without writing additional Editor Scripts.Create a System.Serializable class and add an instance to your script. Publ

  • create your objects in the origin

    #UnityTips Checking this box will always create your objects in the origin. No more right clicking the Transform for resetting.Available since the 2020 cycle of

  • You can simulate a touchscreen

    #UnityTips You can simulate a touchscreen /w your mouse or pen using the new input system.Windows -> Analysis -> Input DebuggerThen in dialog click on Opt

  • more precision then InvokeRepeating

    #UnityTips If you need more precision then InvokeRepeating provides you can do a simple second thread to execute some easy work.InvokeRepewating can be up to 5m

  • edit the numbering scheme of your GameObjects

    #UnityTips Since the 2020 cycle of #unity you can edit the numbering scheme of your GameObjects in the project settings -> Editor 🤯#gamedev #indiede

  • ambiguous classes in c#

    #UnityTips if you have ambiguous classes in #csharp you can introduce a using directive to tell the compiler which one you mean to access.In our example we solv

  • nice and fast way to check if a polygon in 3D space is convex or concave

    #UnityTips Here is a nice and fast way to check if a polygon in 3D space is convex or concave.Basically get a normal for each edge and calculate the dot product

  • Animators on UI elements will set those to „dirty“ every frame

    #UnityTips Animators on UI elements will set those to "dirty" every frame, even if no animation is playing. Animators don't have null operation ch

  • A Vector3 is normally not flagged as serializable

    #UnityTips A Vector3 is normally not flagged as serializable, therefore we need to create our own version.This one will automatically convert between Vector3 an

  • Correct the handedness of a mesh

    #UnityTips Correct the handedness of a mesh (right hand to left hand) by swapping the sign on an odd number of axis. Unity is left hand!Do this by scaling all v

  • When using InvokeRepeating use the nameof operator to avoid bugs

    #Unitytips When using InvokeRepeating use the nameof operator to avoid bugs later on when renaming the called method. The same applies to Invoke #gamedev #indi

  • Get your debug.log messages in your own in game console

    #UnityTips Get your debug.log messages in your own in game console with Application.logMessageReceived += Yourmethod Do not forget to unsubstribe with -= in th

  • Keep your serialization values when refactoring variable names

    #UnityTips Keep your serialization values when refactoring variable names by using the attribute [FormerlySerializedAs] from the UnityEngine.Serialization names

  • right click the name in the inspector preview window to undock it

    #UnityTips Mindblowing! You can right click the name in the inspector preview window to undock it! 🤯 #gamedev #indiedev pic.twitter.com/QJgvvMXHEz — Bi