Unity How to Use PUBLIC Variables

  Рет қаралды 4,502

Pandemonium

Pandemonium

Күн бұрын

Let's take a look at how to use public variables properly.
Subscribe and turn on the notifications if you don't want to miss the next video!
➤ Discord : / discord
➤ Patreon: www.patreon.com/pandemonium_g...
➤ Instagram: / pandemonium_games
➤ Twitter: / pandemoniumnick
➤ Itch: nickbota.itch.io/
#pandemonium #unitycoding #unity3d #unity
Tags: unity public variables,Unity How to Use PUBLIC Variables,public variables unity,unity3d public variables,unity3d public,unity properties,c# properties,properties in c#,unity public private,unity public vs private,unity acces modifiers,unity c#,unity programming,pandemonium games,pandemonium unity,unity tips,unity programming tips,unity coding,unity coding tutorial,unity3d,unity3d code tips,unity safeguard,unity scripting,unity c# script,pandemonium
0:00 Intro
0:20 Traits of Public Variables
1:52 Safeguards
4:26 Recap
4:40 Outro

Пікірлер: 25
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Really interested to see if you like this type of shorter videos with general topics. Let me know 👇
@kroigaming8544
@kroigaming8544 Жыл бұрын
yea pretty much
@Gameuy_YT
@Gameuy_YT Жыл бұрын
yes also can u pls make a tutorial on how to add a scoring system in 2d like when a bullet hits an enemy 10 points get added nad the score is shown when you die
@abdullah0521
@abdullah0521 Жыл бұрын
love this type of videos coz it gives me a deeper understanding of general stuff :) hope to see more of this stuff :DD
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
You definitely will! Thanks for the feedback!
@libberator5891
@libberator5891 Жыл бұрын
You can get auto-properties to show in the inspector with [field: SerializeField], which targets the backing field that's automatically generated when all you use is { get; set; } (or private set;)
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Yep, thank you! Completely forgot about this. Someone pointed it out on Reddit as well. I'll mention this in the pinned comment if you're okay with that.
@liambenson5339
@liambenson5339 Жыл бұрын
I liked this shorter video. I think your videos should all focus on one specific topic like “private variables” or “making menus” or they should focus on one aspect of the unity game editor/game development : the animator, coding, level design, lighting, etc. You already of the 2d platformer tutorial that goes over the basics, but each of these could be a refresher on each or they could go more in depth. I love how your videos are beginner friendly! Keep making the good videos!
@nogrilodoguede7515
@nogrilodoguede7515 Жыл бұрын
You are amazing! You are helping so much that you would not imagine, I am just here to say thanks :D
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Very glad to help! Good luck 😉
@freestylerak6655
@freestylerak6655 Жыл бұрын
Hello bro, I am learning to use cinemachine, can you make on how I can change values in cinemachine like framing transposer values through code to make camera more dynamic.
@AntonBildziuk
@AntonBildziuk Жыл бұрын
cool!
@edgexcution7108
@edgexcution7108 Жыл бұрын
Hello, Thanks for the great tutorials! Can you please help me with my code? I make dialogue system by your videos and end line is duplicated when pressed again(text appears twice in one text-box and to close it you need to click twice). Thanks in advance.
@StigDesign
@StigDesign Жыл бұрын
Love it :D
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Thanks Stig!
@rzzah
@rzzah Жыл бұрын
I have a question how do I get the player to jump after the jump time has expired. I mean, give the player a time after using the jump like 3 seconds after the jump. I hope you got my Idea.
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Yeah I think so. So you need a float variable to act like a timer, increment it by Time.deltaTime inside the Update, and then use an if statement to do what you want after that variable is => 3
@RedaHaskouri
@RedaHaskouri Жыл бұрын
hi sir! please if you can help me! i start to make game like a puzzle game ( INSIDE ) but mine is 2D not 3D like INSIDE. my game is adventure puzzle game exactly like INSIDE. but theres my some problems if you can help me in tutorial video bcs my english its so bad. and you can help many people. ( i wish to help bcs i was asked many youtubers and no one care about my problems ) .. theres my problems : i dont know how exactly i make a smouth dynamic physicaly moves of player ( jump .., climb and hang ledges.., Climb and Swing on Ropes..) i saw a thousand of tutorials but all those just learn you how to make a simple code or not exactly what i want , bcz i need i movement like INSIDE .. and you know game is for puzzles so i need dynamic and physics in player movement.. this is one of my big problems. ( if you have a bonus of some physics puzzle to help me more ) game is fully 2D. please help me in tutorial video to make me understand and help me. i really 2 years and a thousand videos and no saw what i need. please help sir please!
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Your question is a bit complex since no one will give you a system with exactly that type of movement. I recommend you look at Tarodev's project: kzbin.info/www/bejne/aaS6ha2DqNKXrpo Then you'll need to start tweaking on your own, playing with gravity, jump force etc. Also to make it look like Inside you need good animations. As I said it's quite a complex problem, take the foundation from some tutorial and start adjusting.
@RedaHaskouri
@RedaHaskouri Жыл бұрын
@@PandemoniumGameDev thanks for your repley sir
@kroigaming8544
@kroigaming8544 Жыл бұрын
first!
@code4broke
@code4broke Жыл бұрын
Actually the proper use of public variables is being to lazy to make getters and setters
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Until you mess up your entire project :D
@Gameuy_YT
@Gameuy_YT Жыл бұрын
Ty so much also i msged u on discord once and my account got hacked and sent u a link and then my account got deleted i think my username was beluga or something i dont remember but i was following your 2d platform
Trigger an Action after some Time (Unity Tutorial)
18:39
Code Monkey
Рет қаралды 59 М.
How to make a 2D platformer - Unity Tutorial Crash Course
40:32
bblakeyyy
Рет қаралды 182 М.
GADGETS VS HACKS || Random Useful Tools For your child #hacks #gadgets
00:35
FLIP FLOP Hacks
Рет қаралды 102 МЛН
ПЕЙ МОЛОКО КАК ФОКУСНИК
00:37
Masomka
Рет қаралды 9 МЛН
Raycasts in Unity (made easy)
16:30
Game Dev Beginner
Рет қаралды 77 М.
How to Create a INVENTORY in Godot 4 (step by step)
25:31
DevWorm
Рет қаралды 41 М.
Unity SHOP SYSTEM Tutorial
8:31
Pandemonium
Рет қаралды 29 М.
How to Send Variables Between Scenes in Unity
7:34
Unity Game Programming For Beginners
Рет қаралды 51 М.
Why you should NOT make everything PUBLIC!
8:26
Code Monkey
Рет қаралды 117 М.
How to jump in Unity (with or without physics)
16:09
Game Dev Beginner
Рет қаралды 38 М.
Game Events - Power & Simplicity in Unity3D
17:15
Jason Weimann
Рет қаралды 71 М.
Simple Shop in Unity (Buy Items, Weapons, Armor)
19:00
Code Monkey
Рет қаралды 154 М.
FIRST PERSON MOVEMENT in 10 MINUTES - Unity Tutorial
9:58
Dave / GameDevelopment
Рет қаралды 978 М.
How to Change Scenes in Unity Using C# (Unity Tutorial 2021)
6:08
MAIZEN But Everything is weird - MAIZEN Minecraft Animation #shorts
0:27
Kamui - Minecraft Animation
Рет қаралды 10 МЛН
60* Satisfying minecraft pixel art #shorts #gaming #sandart
0:31