How to use the static keyword in Unity @PitiITNet
How to use the static keyword in Unity  @PitiITNet
Uploaded January 2022 | Updated September 2026, 2 days ago
Become better C# programmer by understanding how the static keyword works and what it can do for you. Learn how to use it in Unity. The subject is quite theoretical but I tried to give some 'real life examples'. This episode is part of the scripting series.

Got any questions? Join our discord:
discord.gg/hrZF93sCkc

I hope you find it useful :).

Scripting series:
youtube.com/watch?v=DWj_mPUtuqw&list=PLZyYVAihdXAhjdUy-6BVSCh4Qyjh34iiv

Tutorials mentioned in the video:
youtube.com/watch?v=SZzzRIk0yZA - top down movement
youtube.com/watch?v=itcRjAjxccE - y sorting

00:00 Intro
00:19 Setup
01:15 Instance variables
01:45 Why do we need static?
02:25 Static variables
04:10 Static vs instance methods
05:19 Static methods & static classes
How to use the static keyword in UnityWhen the lights go off... #Unity #UnityHorror #HorrorMake your character interact with objects in Unity using interfacesElengrad Devlog - Quick walk through the village #devlog #unity #unitygame #gamedevUnity Tutorial: How to pause anything including shaders!Unity Tutorial: Realistic Shooting using Raycasting
PitiIT |

How to use the "static" keyword in Unity

SHARE TO X SHARE TO REDDIT SHARE TO FACEBOOK WALLPAPER