remap function to map a value from one range to another
#UnityTips Unfortunately there is no remap function to map a value from one range to another in Unity Mathf.So we made one for you! 👇 #gamedec #indiedev
an alternative way to define a horizontal GUI section
#UnityTips Today we show you an alternative way to define a horizontal GUI section.With this method you will never forget to call EndHorizontal because you do n
Be aware of unnecessary overdraw in your scene
#UnityTips Be aware of unnecessary overdraw in your scene.Visualize overdraw by selecting it from the scene view and fix it with occlusion culling. Brighter col
give your animations a nicer look
#unitytips You can give your animations a nicer look without the need for additional tools. One option is to use Mathf.smoothstep to get a nice ease-in/out beha
simple shader to fade out objects at a specific distance
#UnityTips Here is a simple #shader to fade out objects at a specific distance from the camera.Check the image for details 👇#indiedev #gamedev pic.twitt
need to know when your touch input is over a UI element
#UnityTips If you need to know when your touch input is over a UI element to stopyour camera from moving in your mobile application, check out IsPointerOverGame
more control over a mobile vibration call
#UnityTips Do you need more control over a mobile vibration call than Handheld.Vibrate() gives you?This little snippet works wonders on Android. If someone has
simple math to convert a compass heading in degree to a Vector2
#UnityTips Here is some simple math to convert a compass heading in degree to a Vector2 and back 👇 #gamedev #indiedev pic.twitter.com/BW0T3i91C4—
an easy way to have simple occlusion in AR
#UnityTips Here is an easy way to have simple occlusion in #AR 😎This very simple #Shader will draw transparent geometry and write it to the depth buffer
hide a folder from the editor
#unitytips Add ~ to a folder name to hide it from the editor and exclude it from builds.Keep your Apps clean 😎#gamedev #indiedev— Binary Impact (@
change how unity handles script recompilation
#UnityTips You can change how unity handles script recompilation!Go to: Edit -> Preferences -> General -> Script Changes While PlayingWe are mostly usi
TextMeshPro fields support RichText
#UnityTips TextMeshPro fields support RichText tags like sprite. To use it right click your sprite and create a TMP sprite asset. Drag the asset in the drawer
Cinemachine Input Provider
#UnityTips If you want to use Cinemachine and the new input system you can add the "Cinemachine Input Provider" component to your virtual camera.
[ReadOnly] attribute
#Unitytips You need to see a value in the inspector but want to prohibit changing it?Introduce a [ReadOnly] attribute!Put the ReadOnlyDrawer in an Editor folder
ternary operator
#UnityTips A lot of Mathf.min and Mathf.max in performance relevant code?🤔Use the ternary operator, it is a lot faster!🚀BTW use the Unity Testfr