Unity How to Use PUBLIC Variables

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

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.
@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 😉
@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!
@StigDesign
@StigDesign Жыл бұрын
Love it :D
@PandemoniumGameDev
@PandemoniumGameDev Жыл бұрын
Thanks Stig!
@AntonBildziuk
@AntonBildziuk Жыл бұрын
cool!
@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.
@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
@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.
@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
Dear Game Developers, Stop Messing This Up!
22:19
Jonas Tyroller
Рет қаралды 681 М.
How to get a variable from another script in Unity (the right way)
15:44
Game Dev Beginner
Рет қаралды 85 М.
СНЕЖКИ ЛЕТОМ?? #shorts
00:30
Паша Осадчий
Рет қаралды 4,5 МЛН
Эффект Карбонаро и бесконечное пиво
01:00
История одного вокалиста
Рет қаралды 6 МЛН
Sigma Girl Education #sigma #viral #comedy
00:16
CRAZY GREAPA
Рет қаралды 123 МЛН
Beginning C# with Unity (2023 Edition) - Variables
11:34
Vegetarian Zombie
Рет қаралды 43 М.
How To Render 2 Million Objects At 120 FPS
14:57
Tarodev
Рет қаралды 136 М.
The Most Fundamental Concept in Unity
9:50
Archions
Рет қаралды 42 М.
Fabric Modding Tutorial - Minecraft 1.20: Custom Items & Creative Mode Tab | #2
14:21
Learn C# Scripting for Unity in 15 Minutes (2024 Working)
15:15
Charger Games
Рет қаралды 890 М.
Why Stairs Suck in Games... and why they don't have to
11:24
Nick Maltbie
Рет қаралды 1,5 МЛН
How These Puzzles Deceive You
15:36
Mental Checkpoint
Рет қаралды 349 М.
LEVEL/CAR/WEAPON Selection with Unity Scriptable Objects
28:49
Pandemonium
Рет қаралды 22 М.
【4】Eye Rig part 2 Physics + Eyebrow + copy-pasting
14:36
Merely.wufeii
Рет қаралды 13 М.
АКУЛА АДАМ НУБТАН МЫҚТЫҒА АЙНАЛДЫ (GTA V)
14:04
СТРАШНЫЕ СУШИ В ROBLOX
41:00
OVER SHOW
Рет қаралды 139 М.