10 Useful C# Attributes for Intermediate and Advanced Game Devs

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

git-amend

git-amend

Күн бұрын

Пікірлер: 59
@git-amend
@git-amend 21 сағат бұрын
Happy Sunday! Actually, there are 11 Attributes in the video... I got carried away! 😂
@klevialushi571
@klevialushi571 20 сағат бұрын
Legend! Would've been great if you do more videos that include code refactoring and design patterns.
@git-amend
@git-amend 20 сағат бұрын
Of course!
@mvviguilla
@mvviguilla 20 сағат бұрын
we need you to get carried away more 😂
@silchasruin4487
@silchasruin4487 20 сағат бұрын
The day that I stop learning anything new from you will be a sad day, I'll be happy cause I've grown and learned but sad cause I always enjoy your videos. Really enjoyed the video! Have a great one!
@git-amend
@git-amend 20 сағат бұрын
Thanks! Keep learning and keep coding!
@EmilM-pb2hn
@EmilM-pb2hn 21 сағат бұрын
Thank you for always doing intermediate and advanced tutorials!!
@git-amend
@git-amend 21 сағат бұрын
My pleasure!
@VyvyanTheGreat
@VyvyanTheGreat 16 сағат бұрын
Awesome! That base selection thing is sooo helpful
@git-amend
@git-amend 16 сағат бұрын
Yeah, that's for sure!
@512Squared
@512Squared 18 сағат бұрын
A super useful set of additions again... Legendary as usual
@git-amend
@git-amend 18 сағат бұрын
Thanks again!
@Wbjpen
@Wbjpen 14 сағат бұрын
That SceneRef library is literally game changing. Thanks!
@git-amend
@git-amend 14 сағат бұрын
Yes indeed!
@teh1archon
@teh1archon 15 сағат бұрын
These were super useful thanks 🙏🏻👍🏻
@git-amend
@git-amend 15 сағат бұрын
You're welcome!
@leptosurreal460
@leptosurreal460 20 сағат бұрын
Another great video, I really appreciate it. Could you make a video about adding modding to your game? I'm not sure how to approach it.
@git-amend
@git-amend 20 сағат бұрын
Not a bad idea, I'll write that down.
@leptosurreal460
@leptosurreal460 19 сағат бұрын
@git-amend 👑
@teledevgames
@teledevgames 17 сағат бұрын
@@git-amend would also like to know this, +1
@timurradman3999
@timurradman3999 7 сағат бұрын
11:11 WOOOOW, this is so helpful!!
@git-amend
@git-amend 5 сағат бұрын
Nice, glad to hear it!
@mangakaray
@mangakaray 19 сағат бұрын
best channel ever, thanks for your content, you are beyond, and explain so good!!
@git-amend
@git-amend 19 сағат бұрын
Appreciate the support!
@drewalkemade3715
@drewalkemade3715 19 сағат бұрын
[SelectionBase] that'll be a timesaver! At the very least, a frustration saver...
@git-amend
@git-amend 19 сағат бұрын
Yeah, that's a good one!
@leos-clockworks335
@leos-clockworks335 16 сағат бұрын
Some very useful attributes here. I have some code gen things I do and I never thought about looking if there's a way to mark it as Implicitly used haha, so I'll add that. Thanks!
@git-amend
@git-amend 16 сағат бұрын
Nice, yeah that's a great use-case actually! I'll have to remember that.
@bromanguy
@bromanguy 20 сағат бұрын
I love sundays, thanks for another great video!
@git-amend
@git-amend 20 сағат бұрын
Nice to hear that! Thank you!
@mahdikhajoo
@mahdikhajoo 16 сағат бұрын
as always thank you for great content
@git-amend
@git-amend 16 сағат бұрын
My pleasure!
@LuizMoratelli
@LuizMoratelli 20 сағат бұрын
Great topic, I love to write my custom attributes
@git-amend
@git-amend 20 сағат бұрын
Haha, me too!
@FragileExistence
@FragileExistence 19 сағат бұрын
Hmm, the searchable enum property drawer doesn't seem to show for me with the InspectorName attribute applied to enum values-- that particular aspect might come from another plug-in?
@git-amend
@git-amend 19 сағат бұрын
Maybe it’s new in Unity 6. I’ll have to check.
@FragileExistence
@FragileExistence 19 сағат бұрын
@@git-amend I'm using 6000.0.31f, so I don't think it's that :)
@git-amend
@git-amend 19 сағат бұрын
Apologies, the search is a feature that comes with Odin Inspector, but works with the InspectorName attribute (or just normal values too)
@pixboi
@pixboi 17 сағат бұрын
Those automatic ref things are useful!
@git-amend
@git-amend 16 сағат бұрын
💯
@williamskouheidemann7645
@williamskouheidemann7645 13 сағат бұрын
Great video! Do you prefer drag-and-drop into serialized fields or calling GetComponent/similar code to access other classes? Which solution scales better? Thanks!
@git-amend
@git-amend 8 сағат бұрын
I prefer GetComponent myself. I feel it is less prone to human error. As far as scaling goes, that's what the Scene Reference Attribute is for - so that all references can be established ahead of time.
@HyagoPinheiro
@HyagoPinheiro 19 сағат бұрын
InspectorName attribute does not shown a searchable popup here on my Unity 6000.0.21. Is a specific unity version for this?
@git-amend
@git-amend 19 сағат бұрын
Apologies, the search is a feature that comes with Odin Inspector, but works with the InspectorName attribute (or just normal values too)
@suntonio7187
@suntonio7187 21 сағат бұрын
Yes! :D Get carried away! Please!
@git-amend
@git-amend 21 сағат бұрын
Wow that was a really fast FIRST
@phanta_
@phanta_ 18 сағат бұрын
What would be the use case for execution order in real game scenario?
@git-amend
@git-amend 18 сағат бұрын
Consider something like a SpawnManager that needs to initialize enemy spawners before the AIController begins assigning behaviors to spawned enemies. By controlling execution order, you ensure that systems relying on specific initialization sequences, like pooling or event listeners, are fully prepared before dependent scripts run.
@phanta_
@phanta_ 17 сағат бұрын
@git-amend Nice, thanks
@damonfedorick
@damonfedorick 15 сағат бұрын
Nice!
@git-amend
@git-amend 14 сағат бұрын
Thank you! Cheers!
@marlonruvalcaba386
@marlonruvalcaba386 19 сағат бұрын
When you said enum I expected the useful flag attribute but giving the enum names human readable names is less common.
@git-amend
@git-amend 19 сағат бұрын
Also useful, indeed.
@actk1
@actk1 9 сағат бұрын
Does the function Child, Parent, Self, Anywhere work in Unity 5 too or just for Unity 6 ?
@HizusHiz
@HizusHiz 4 сағат бұрын
Btw, you can use the nullable reference types feature instead of JetBrains [NotNull] and [CanBeNull] attributes if you use C# 8.0 or higher. For example, to enable this feature for a specific file, just add #nullable enable at the top of the file.
@Klu-czyk
@Klu-czyk 51 минут бұрын
Great content, as always! I would add warning to first two attributes, as misused the can lead to errors. Its not an easy optimization switch.
@YJPLAPI
@YJPLAPI 14 сағат бұрын
Another noteworthy are the ExecuteInEditMode or ExecuteAlways attributes. I use it to update my component when the component is dirtied in the inspector when I use functions that call SendMessage in some capacity like transform properties do. As an object can be potentially uninitialized objects during certain phases. It allows to circumvent that possible issue.
Utility AI: Mastering Smart Decisions in Unity!
25:33
git-amend
Рет қаралды 10 М.
RAYCASTING Made Insanely Fast for Collision Detection!
17:03
git-amend
Рет қаралды 15 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 25 МЛН
Smart Sigma Kid #funny #sigma
00:33
CRAZY GREAPA
Рет қаралды 38 МЛН
.NET and C# are in trouble. Here is what I'd do.
10:57
Ed Andersen
Рет қаралды 113 М.
Senior Developers vs. Junior Developers, What's The Difference?
14:21
Continuous Delivery
Рет қаралды 28 М.
I Coded a Nuclear Physics Simulator to Play God in VR
44:21
Thomas Wald
Рет қаралды 21 М.
Why More People Dont Use Linux
18:51
ThePrimeTime
Рет қаралды 331 М.
Stop using std::vector wrong
23:14
The Cherno
Рет қаралды 156 М.
Python (FastAPI) vs Go (Golang) Performance Benchmark
8:47
Anton Putra
Рет қаралды 22 М.
How much we made from making games in 2024
13:58
BiteMe Games
Рет қаралды 5 М.
Master Pointers in C:  10X Your C Coding!
14:12
Dave's Garage
Рет қаралды 333 М.
Code Like a Pro: Refactoring to Patterns!
25:52
git-amend
Рет қаралды 9 М.
VIP ACCESS
00:47
Natan por Aí
Рет қаралды 25 МЛН