Basic Scripting Logo
Learn the basics of scripting in Unity, and how to work with objects in your scene using C# code.

How to use Get and Set (without crashing Unity)

Apr 23, 2024

 | 

John French
 | 
4 Comments



Learn how properties work in Unity, how to use the get and set accessor functions, and how to avoid crashing Unity when you do.
Featured image for “How to use Get and Set (without crashing Unity)”

What Public, Private, and Protected mean in Unity

Jan 31, 2024

 | 

John French
 | 
1 Comment



Learn how the Private, Public, and Protected keywords actually work in Unity, in my complete beginner’s guide.
Featured image for “What Public, Private, and Protected mean in Unity”

How to use Return in Unity

Jan 25, 2024

 | 

John French
 | 
2 Comments



Learn what Return, Break, and Continue actually do in Unity, how they work, and the right way to use them, in my complete beginner’s guide.
Featured image for “How to use Return in Unity”

How to use Delta Time in Unity (and when not to)

Jan 16, 2024

 | 

John French
 | 
NEW



Learn how Delta Time in Unity works, and when you should and shouldn’t use it, in my complete beginner’s guide.
Featured image for “How to use Delta Time in Unity (and when not to)”

Namespaces in Unity (how they work and when to use them)

Jan 12, 2024

 | 

John French
 | 
6 Comments



Learn what Namespaces are in Unity, what they’re for, how they work, and when to use them, in my beginner’s guide.
Featured image for “Namespaces in Unity (how they work and when to use them)”

Serialize Field in Unity (how it works and when to use it)

Jan 11, 2024

 | 

John French
 | 
8 Comments



Learn what Serialize Field does in Unity, and if you should be using it instead of public or private variables, in my beginner’s guide.
Featured image for “Serialize Field in Unity (how it works and when to use it)”

How to use Arrays in Unity

Dec 16, 2022

 | 

John French
 | 
5 Comments



Learn how Arrays work in Unity, why they’re useful and how to make arrays with your own custom data types, in my in-depth beginner’s guide.
Featured image for “How to use Arrays in Unity”

How to delay a function in Unity

Dec 06, 2022

 | 

John French
 | 
7 Comments



Learn how to delay a function, pause logic and trigger code at fixed intervals in Unity.
Featured image for “How to delay a function in Unity”

How to Destroy an object in Unity

Dec 02, 2022

 | 

John French
 | 
4 Comments



Learn how to destroy objects and components in Unity, and what happens behind the scenes when you do.
Featured image for “How to Destroy an object in Unity”

How to spawn an object in Unity (using Instantiate)

Aug 04, 2022

 | 

John French
 | 
16 Comments



Learn how to spawn prefabs, create new empty objects & improve performance with object pools, in my in-depth guide to Instantiate in Unity.
Featured image for “How to spawn an object in Unity (using Instantiate)”

How to use Fixed Update in Unity

Mar 22, 2022

 | 

John French
 | 
16 Comments



Learn how to use Fixed Update in Unity, how it works & when to use it instead of Update, in my in-depth guide.
Featured image for “How to use Fixed Update in Unity”

How to use Late Update in Unity (and why it’s so useful)

Sep 30, 2021

 | 

John French
 | 
8 Comments



Learn how to use Late Update in Unity, what it’s for, how it works and what could happen if you don’t use it, in my in-depth beginner guide.
Featured image for “How to use Late Update in Unity (and why it’s so useful)”

How to use random values in Unity (with examples)

Sep 27, 2021

 | 

John French
 | 
18 Comments



Learn how to randomise numbers, colours, Vector 3 positions and more, in my in-depth guide to random in Unity.
Featured image for “How to use random values in Unity (with examples)”

Raycasts in Unity, made easy

Jun 18, 2021

 | 

John French
 | 
30 Comments



Learn how to use Raycasts in Unity, the right way, using layers, triggers and multiple objects, in this complete, step by step guide.
Featured image for “Raycasts in Unity, made easy”

How to get a variable from another script in Unity (the right way)

Dec 02, 2020

 | 

John French
 | 
44 Comments



In this beginners guide, you’ll learn the right way to access other scripts & manage global variables, without making a mess of your project.
Featured image for “How to get a variable from another script in Unity (the right way)”