RigidBody and RigidBody2D Script Initialisation

So yeah. Two different ways. Not sure why one is better than the other. Yet. Method 1. Attach RigidBody2D to the Game Object and then create a local private variable in the script. This approach feels better imo, so that is what I’m using. RigidBody2d rb2d;...

Player Input

public class ButtonInput : MonoBehaviour { void Update () {  bool down = Input.GetKeyDown(KeyCode.Space);         bool held = Input.GetKey(KeyCode.Space);         bool up = Input.GetKeyUp(KeyCode.Space); if(down) { } else if(held) { } else if(up) { } else { } } }...

Cubes Version 1.0

58 lines of C# code to create 5000 “magic” cubes. I’ve been learning a lot over the last three weeks about terrain generation and manipulation of terrain data. So I thought it was about time to actually cover the basics!   Cube Controller using...

Splat Prototypes is Obsolete

So it looks as though after learning all about SplatPrototype’s in Unity it turns out that the SplatPrototype is now depreciated!       The (old) method I (just) learned using Unity 2018 goes something like: SplatPrototype[] newSplatPrototypes;...