The Attributes that [SaveTime] - Unity3D - GameDev
Game Architecture Course - bit.ly/3faUnwd
Use Attributes in Unity3D to save time & make your project better with no work. We'll cover the c# attributes you should actually care about and be using in your own game projects.
More Info - game.courses/
Join the Group - unity3d.group
Patreon - / unity3dcollege
Odin Attributes - odininspector.com/attributes
Пікірлер: 66
@Jason Weimann Time indices, pin if you like :) 4:06 Min, Tooltip 4:58 Range 5:25 Multiline 6:49 Header 9:02 MenuItem 11:36 ContextMenu 14:15 SelectionBase 15:30 RuntimeInitializeOnLoad 16:17 Serializable 17:09 Wrap-up - more attributes...
Hey Jason, you can also set the size of the TextArea attribute Just give it 2 arguments [TextArea(x,y)]. x is the minimum size (in lines) the field will have, after that it will increase it's size until it reaches y lines and show the scroll
Pro tip : Buy Odin Inspector already and really get the most of those Attributes! It's by far the best asset on the asset store!
@bunnybreaker
2 жыл бұрын
I have Odin, but hardly used it. Do you have to inherit from the Odin types to use the attributes?
@bunnybreaker
2 жыл бұрын
@@TopShelfCookieJar Ermagerd, thanks. Gonna look at those now.
@shoco2
2 жыл бұрын
The best 30$ I've spent in my life
You wrapping this up twice was quite funny haha! Good video thanks!
Abolutely +1 for [SelectionBase] ... I've been attributin' for years but only just learned this one from you, thanks Jason!
Awesome tips as usual. Thanks Jason.
oh my god i was literally searching for a RunTimeInitializeLoadType kinda thing yesterday!!!! thank you so much eee
Great video! Very well explained and demonstrated.
Love your videos man, very very helpful
This is a great sum up, thank you.
very informative video Thanks Mr Jason
Thank you lol I was going to ask about that course :) I love thomas and Honestly Jason you have done so much to help me grow too! :) I wanted both of your courses already:) so I am hoping that soon I can do it :)
Excellent video!
This may be something that has changed since this video was released, but you can define the range of a text area with something like [TextArea(15, 20)]
Awesome tips 🙏🙏🙏
And there is even more fun with "naughty attributes" it's available for free in the asset store. It sports a few additional [attributes] that allow to make things like boxes for x variables and other stuff like min/max-sliders. I'm not involved at this project at all, I just like that asset.
@daryll4645
2 жыл бұрын
I use it, its awesome!
@vudshpreyk
2 жыл бұрын
Yes, it's free and has a ton of features
[SerializeField] You missed a major one! Lets you expose private variables in the inspector without having to make them public, keeps things encapsulated in the class. (You even used it in one of the classes in the [Serialize] section.
@pmacdev
2 жыл бұрын
Also [NonSerialized], saved me a lot when making save files.
@juancereda5952
2 жыл бұрын
This, and using properties with private setters is the way.
Naughtdog attributes (free) is also super helpful . Resizabletext box OP
Awesome. I use Odin inspector and I've been wondering how to make my own attributes.
Thank you Sir!
6 days…well I hope you have another course together soon after :)
Thanks!
3:10 Nice monitor!
You rock!
I currently am doing the ultimate game dev course....It is worth every dollar....Brilliant stuff!!! Thank you Jason & Thomas!!
Do the courses touch on or include the new input system?
What font does your IDE use? Looks sick
I am apart of fulltime gamedev but idk if I have access to the ultimate course
Is there an attribute that gives you the file name or path of a dragged in object? I feel like I ran across this in some tutorial somewhere but I can't remember exactly how it worked. Say you wanted the file path of something like a ScriptableObject, you could drag that object into the slot and the slot would be filled by the path or name of it. Probably in reference to Resources.
@jackoberto01
2 жыл бұрын
You could use Assetdatabase.GetAssetPath in OnValidate
Nice title! 🤪
Hello, I have work with java for almost 2 years, now iam working with flutter as a front end developer. I always dream in working in games cause is my passion, but I feel old(I have 28) to start and think that may be a hard market for me( I live in Brazil). Do you have any tips tips to help me decide?
@andersmartensson8659
2 жыл бұрын
Well, just a short comment, you are never to old. I'm 45 and I started my own company last yer and are learning from Jason while still work on my regular daytime job. Goal si to be able to live on making games.
Ultimate game dev course looks great, but it's sadly outside my budget right now. Wish I could get it because I am wanting to move out of my current job.
@finefreshbread3243
2 жыл бұрын
I know I’m in no place to say this but I’m currently a highschool student that learnt how to make games and let me tell you, you don’t need to pay to know how! There’re tons and tons of channel that can help you FOR FREE! For example, my favourite is Brackeys and Blackthornprod, Dani is also a channel that covers tutorials and have funny game dev logs. And if you want to know more, GDC is a good channel for it since its like a TED talk for game developers! Anyhow best of luck to you and your future! Game development might look hard but once you’ve gotten the hang of it it’s just as easy as teaching English to rocks (hypothetically lets say the rock is sentient)
I’m leaning towards going to school for designing rather than programming because of my lifelong struggle with math. Is my gigantic lack of mathematical skills something that would stop me from being able to program/code?
@JohnWellingtonWells
2 жыл бұрын
I'm just a hobbyist who learned C# for Unity development(mainly through youtube, googling and reading documentation) so I have no real clues about professional game development, but I can tell you this. I'm god awful at math. I straight up failed high school math, TWICE! Thus far I've not run into any major problems with my lack of math skills, sometimes I have to google simple math stuff like percentage calculations and there might be a bit of trial and error when I want an equation to pump out specific results, but I seem to manage. I'll never be good enough to make my own game engine from scratch and things like that, but I am good enough to make the games I want to make and my math skills have never stopped me from implementing a new mechanic or what not. So if you want to make indie games you will probably be fine. If you want to work for Rockstar developing top of the line AI or rendering techniques for the new GTA game, maybe not.
@joaniepepin4968
2 жыл бұрын
I have been in the industry for soon to be 15 years and unfortunately, game design is probably more math heavy than programming. Designing game features is one part of the job, but balancing them to be fun for the player often involves a lot of not-fun spreadsheets!
@jackoberto01
2 жыл бұрын
No it doesn't have to be there's so many different roles in programming some which do require a lot of maths and some which don't I've been studying game programming for a year now and barely had to do any difficult maths. You'll need some 3D maths understanding Vectors, difference between local and global space. You'll need this as game designer as well though Clean and abstract code is often more important than writing really complicated code unless you're speciallizing in a specific subject
Oh god my takeaway from this REALLY shouldn't have been "oh wow I've never heard of scriptableobjects" 😔
I hope I fall into the pit of success.
Hey Jason what's going on ? 😁
[SelectionBase] !!!
oh hey Jason, i haven't used Unity in 3 years, can I get back
@QuietSnake-xs5vx
2 жыл бұрын
If you want to
@powercore2000
2 жыл бұрын
Yup, it's never too late
@Novus_Black
2 жыл бұрын
Of course; the base structure has remained basically the same. The only 2 big changes is that they removed the code editor (monodevelop) packaged with it but VS code should remedy this if you used it. The 2nd is that they have a launcher now which explains itself.
@AdamMooreGameDev
2 жыл бұрын
The UI is much nicer and it has some nice new features. :)
@joaniepepin4968
2 жыл бұрын
No, if you don't use it for over 2 years, it will pout and ignore you.
Test 2 0:00
Best advice is to buy assets. All good games just purchase assets.
Test kzread.info/dash/bejne/mmdttZOSecu2htY.html
What happened to this channel? Episodes have become just one big advertisement...
@swagg7109
2 жыл бұрын
Well yeh. How else are they going to make money and keep the channel afloat. I hate ads myself but come on, don't be dense.
Best free solution: NaughtyAttributes Look it up ppl. I have it in all of my projects. Much more lightweight than Odin and it's free and open source.