tutorial

Step-by-step programming and game dev tutorials.

Inline Initializing C# Lists - Quick Tip
Inline Initializing C# Lists - Quick Tip
· ☕ 1 min read
C# includes a method for initializing Lists that means you do not need to repeatedly Add("foo") throughout your code.

Interpolated Strings in C# - Quick Tip
Interpolated Strings in C# - Quick Tip
· ☕ 1 min read
C# has the ability to build strings in a number of ways. The simplest is concatenating them, but it’s not always the easiest or best solution depending on what you’re making.

Top Down Following Spaceship Controller
Top Down Following Spaceship Controller
· ☕ 1 min read
Now that we have a spaceship controller that can take a direction input and turn that into movement we can start to play around with it.

Math in the Unity Inspector - Quick Tip
Math in the Unity Inspector - Quick Tip
· ☕ 1 min read
Unity has made it a bit easier to compute some values in their editor windows by allowing you to enter math formula’s into the inspector.

Rotating Unity Gizmos - Quick Tip
Rotating Unity Gizmos - Quick Tip
· ☕ 2 min read
Gizmos are a really handy way to indicate a whole range of interesting information during development of your project.

Exploring Dot Products in Unity
Exploring Dot Products in Unity
· ☕ 2 min read
Dot Products are a really easy and fun way to compare Vectors in space. When comparing two normalized with a dot product the result will be the cosine of the angle between the two Vectors.

Building a Custom Node in Unity's Shader Graph
Building a Custom Node in Unity's Shader Graph
· ☕ 2 min read
With the introduction of Shader Graph Unity also added support for Custom Nodes you can build yourself by creating custom CodeFunctionNode.

Creating and Using SSH RSA Tokens on Windows 10
Creating and Using SSH RSA Tokens on Windows 10
· ☕ 2 min read
I’d like to be able to connect to my servers without having to continuously enter my users password. We’re going to accomplish that by making use of an SSH Security Token.

Learning How To Use Step and Smoothstep in Shaders
Learning How To Use Step and Smoothstep in Shaders
· ☕ 1 min read
A number of people have commented that we should be using step or smoothstep instead of some of the branching if/else blocks we’ve used in other videos (branches in shaders tend to perform worse than other functions).

A Circle Shader in Shader Graph - Ripple in Shader Graph - Part 1
A Circle Shader in Shader Graph - Ripple in Shader Graph - Part 1
· ☕ 2 min read
Lets learn Shader Graph by building our ripple shader entirely within Shader Graph. The goal of this series is to reproduce the ripple shader we’ve been working on and compare/contrast the process of building the same shader in both tools that Unity makes available to you.

Live Coding a 3D Voxel Cube in Unity
Live Coding a 3D Voxel Cube in Unity
· ☕ 2 min read
Lets build a basic colored voxel “chunk” from start to finish! We’ll focus on constructing three main components: a Chunk which stores data about the world, A ChunkGenerator which fills the Chunk with initial information (it builds the world) and a MeshGenerator that converts our Chunk into a Mesh you can see.

Lets Make An Expanding Pipe Shader
Lets Make An Expanding Pipe Shader
· ☕ 2 min read
I’ve been seeing a few example of uses for a cartoonish styled pipe that expands as something goes through it.

I See Game Objects - Unity Observer - Part 2
I See Game Objects - Unity Observer - Part 2
· ☕ 2 min read
Time to make our Unity Observer a bit more… useful. Right now we have a custom Unity editor window that can find a game object by name and display its position in the scene.