C# 3D Grid
C# 3D Grid

This code sample demonstrates how to create a 3D grid in Unity. This code creates a randomized city-esque area with random sized blocks (your buildings) that are randomly colored (separate script). The size of the grid can be easily adjusted by changing the rows and columns integers.

Raycasting for FPS
Raycasting for FPS

This is a ready to use demo for simple shooting mechanics for an FPS game in Unity. It follows where the mouse is pointing, and once clicked, shoots out a raycast. This raycast is shot out from wherever the mouse clicked, which allows for point precision in accuracy, and can have varying reactions based off of what you hit.

Custom Key Binding Part 3
Custom Key Binding Part 3

Once the event has begun, the script detects the next key pressed and sets the button value to that key. A good example of this is to say that on default, the W key is set to an up function, but through the event, the player can remap the up function to any key on their keyboard they wish. Once the event finishes, there is a save keys function that is achieved through Unity UI. This saves the keys to the player prefs to remember the settings as long as this data is stored locally.

C# 3D Grid
C# 3D Grid

This code sample demonstrates how to create a 3D grid in Unity. This code creates a randomized city-esque area with random sized blocks (your buildings) that are randomly colored (separate script). The size of the grid can be easily adjusted by changing the rows and columns integers.

1/7