Catlike Coding

C# and Shader Tutorials

for the Unity Engine

These tutorials teach you about C# and shader programming for Unity. They build on one another, introducing new programming concepts, math, algorithms, and Unity features. They're useful to both novice and experienced developers.

One of many things you can make with Unity.

Become My Patron

Your support makes these tutorials possible! If you like them and want to see more, please become my patron, via Patreon. You can also make a one-time donation.

  1. Become My Patron

Tutorials

There are multiple tutorial sections. You don't need to work through these sequentially, but some do build on each others. The Basics section lays the foundation for working with Unity and C# programming. The Rendering section covers the fundamentals of shader programming, followed by the Advanced Rendering tutorials.

Some tutorials are quite old. You will recognize them, because they have an obviously older layout. I haven't made tutorial with Unity 2019.3 yet, so the interface screenshots show Unity 2019.2 and earlier.

Basics

These tutorials provide an introduction to working with C# in Unity.

Basics

Movement

A series about controlling the movement of a character.

  1. Sliding a Sphere
  2. Physics
  3. Surface Contact
  4. Orbit Camera
  5. Custom Gravity
  6. Complex Gravity
  7. Moving the Ground
  8. Climbing

Object Management

A series of tutorials that deal with creating, keeping track of, saving, and loading objects.

Object Management

Tower Defense

A series about creating a simple grid-based tower defense game.

Tower Defense

Flow

A collection of tutorials that cover the creation of flow effects, like water surfaces.

Flow

Mesh Basics

An introduction to procedural meshes. From a simple grid to deformable balls.

Mesh Basics

Custom SRP

A collection of tutorials about creating a custom scriptable render pipeline in Unity. For Unity 2019 and later.

  1. Custom Render Pipeline
  2. Draw Calls
  3. Directional Lights
  4. Directional Shadows
  5. Baked Light
  6. Shadow Masks
  7. LOD and Reflections
  8. Complex Maps
  9. Point and Spot Lights

Scriptable Render Pipeline

A collection of tutorials that cover the scriptable render pipeline. For Unity 2018.

Scriptable Render Pipeline

Rendering

A series about understanding Unity's default rendering pipeline. How a mesh turns into pixels that look like real objects.

Rendering

Advanced Rendering

These are tutorials covering more complex or specialized rendering techniques, going beyond Unity's standard shaders. They build on the work done in the Rendering series.

Advanced Rendering

Hex Map

A series about hexagon maps. Lots of strategy games use them.

Hex Map

Pseudorandom Noise

And old series about generating and using pseudorandom noise.

Pseudorandom Noise

Marching Squares

An old series about drawing and reconstructing shapes using a 2D grid. Why not Marching Cubes? Because the concepts are the same for both 2D and 3D, and dealing with two dimensions is already complex enough.

Marching Squares

Old Tutorials

Most of these tutorials are very old and are made with Unity 4 or 5 and haven't been updated for later versions. They might still have value, but you'll have to make adjustments yourself.

Old Tutorials

Questions & Answers

Have a question? Here are a few common ones. Click or touch the questions to see the answers. You can also contact me in various ways.