5 Useful Attributes in Unity and Why You Should Use Them

  Рет қаралды 1,186

AnanDEV

AnanDEV

Күн бұрын

Пікірлер: 16
@honkhonk5000
@honkhonk5000 9 ай бұрын
No one has explained serialized fields before. Thanks for this.
@anandev
@anandev 9 ай бұрын
Thank you so much! I'm happy my researching paid off! 🤗
@mariaeduardamattos5724
@mariaeduardamattos5724 9 ай бұрын
You are the best unity teacher ever! Thank you so much
@anandev
@anandev 9 ай бұрын
Woah! This means a lot ♥️ Thank you so much for taking your time to say this 😭 made my day
@turkeyjerkey
@turkeyjerkey Жыл бұрын
This is one of the best explanations of these attributes that I've seen (and I've seen virtually all that are available)! Well done!
@anandev
@anandev Жыл бұрын
Wow, thank you so much! It means a lot ❣️ I'm glad it was useful
@v0ltdev
@v0ltdev Жыл бұрын
Rly good video, but here is an extra tip, u can add multiple attributes in the same place by just seperateing them with a comma in the square brackets like this [attr1(), attr2()], also the serializable attribute technicly is not a unity attribute, HideInInspector would have been a better example
@anandev
@anandev Жыл бұрын
Whoaahh! I had no idea! And yes, you are correct about Serializable one. It didn't click in my head. Thanks for the heads up! I'll try to change the title and thumbnail asap!
@m0nti3852
@m0nti3852 Жыл бұрын
Great video! Thank You for this.
@anandev
@anandev Жыл бұрын
Yay! Glad it was helpful!
@TheRedBaron619
@TheRedBaron619 9 ай бұрын
Great Video! Keep up the good work!
@anandev
@anandev 9 ай бұрын
Thank you so much! 🤗
@StressedProgrammer
@StressedProgrammer Жыл бұрын
one of the best explanations of unity attributes. i was trying to do one thing then i eventually gave up on that. i had an array private GameObject[] myGameObjects i was tryting to declare a float with range from [0, myGameObjects.Length] public float myFloat = 0f; any idea how can i do that?
@anandev
@anandev Жыл бұрын
The only way to do that would be to make custom editor scripts. Attributes only work with literal constants. They do not work with variables. If you don't want to do that, the only other way I can think of is to clamp the float value at Start() using Mathf.Clamp(0f, myGameObjects.Length) function.
@StressedProgrammer
@StressedProgrammer Жыл бұрын
ok bro thanks@@anandev
@anandev
@anandev Жыл бұрын
Anytime :)
A Better Collectibles System in Unity in 10 Minutes!
9:52
AnanDEV
Рет қаралды 1,2 М.
I Made the Same Game in 8 Engines
12:34
Emeral
Рет қаралды 4,2 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 16 МЛН
PRANK😂 rate Mark’s kick 1-10 🤕
00:14
Diana Belitskay
Рет қаралды 11 МЛН
The Ultimate Sausage Prank! Watch Their Reactions 😂🌭 #Unexpected
00:17
La La Life Shorts
Рет қаралды 6 МЛН
ADHD Is a Curse… Until You Learn This
17:34
ADHDVision
Рет қаралды 499 М.
Harder Than It Seems? 5 Minute Timer in C++
20:10
The Cherno
Рет қаралды 212 М.
Scriptable Objects Made EASY for Unity Beginners!
18:01
The Most Legendary Programmers Of All Time
11:49
Aaron Jack
Рет қаралды 607 М.
The Quest To Make Unbreakable Glass
22:23
Veritasium
Рет қаралды 2,6 МЛН
The purest coding style, where bugs are near impossible
10:25
Coderized
Рет қаралды 1 МЛН
Being Competent With Coding Is More Fun
11:13
TheVimeagen
Рет қаралды 111 М.
Giving Personality to Procedural Animations using Math
15:30
t3ssel8r
Рет қаралды 2,6 МЛН
The Strange Physics Principle That Shapes Reality
32:44
Veritasium
Рет қаралды 6 МЛН
PIZZA or CHICKEN // Left or Right Challenge
00:18
Hungry FAM
Рет қаралды 16 МЛН