Tips & Tricks for your Programming

Find all our articles about unity
  1. Playmode Grid using Gizmos in Unity

    Visualizing a grid for development in editor play mode for Unity using Gizmos

  2. Easily Remove Missing Components from GameObjects

    Providing a function and an editor script to clean GameObjects containing missing components in Unity.

  3. How to Perform Polymorphism on Object from Different Classes in C#

    A simple trick to allow correct function dispatch on objects inheriting from and referenced by the same base class

  4. Writing an Array to Texture File in Unity C#

    How to save a generated 2D array of floats of Vector3 into a texture file for later use in a shader or a material

  5. Implementing a Simple Camera Shake

    Implementing a simple camera shake in Unity from scratch.

  6. Using Position-Based Tinting to Liven up an Environment

    Convert an object's texture to HSV and rotate the Hue depending on position

  7. Creating a Probability-Weighted Pool of Objects in Unity

    Creating a Scriptable Object definition for pools of game objects to be drawn. Useful when creating environments.

  8. Faking Shadows from a Cloud Cover in Unity URP

    Two lightweight ways to simulate shadows from a cloud cover in Unity URP

  9. Implementing a Lit Billboard Shader in Unity Shadergraph

    Sharing a more complex billboard shader in shadergraph that fixes lighting issues from our previous shader by using different calculations for billboarding, and sets custom normals

  10. Implementing a Selection Visual Indicator in Unity

    Creating the logic to show set the position of a gameobject to indicate if an object is focused using renderer bounds