The Attributes that [SaveTime] - Unity3D - GameDev

Поделиться
HTML-код
  • Опубликовано: 31 июл 2024
  • 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

  • @Ninja-Dev
    @Ninja-Dev 2 года назад +9

    @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...

  • @bomdiajj
    @bomdiajj 3 года назад +32

    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

  • @joaniepepin4968
    @joaniepepin4968 3 года назад +23

    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
      @bunnybreaker 3 года назад +2

      I have Odin, but hardly used it. Do you have to inherit from the Odin types to use the attributes?

    • @bunnybreaker
      @bunnybreaker 3 года назад

      @@TopShelfCookieJar Ermagerd, thanks. Gonna look at those now.

    • @shoco2
      @shoco2 3 года назад +1

      The best 30$ I've spent in my life

  • @mykaelboyte-coutu1388
    @mykaelboyte-coutu1388 3 года назад +1

    You wrapping this up twice was quite funny haha! Good video thanks!

  • @bigedwerd
    @bigedwerd 3 года назад +1

    Awesome tips as usual. Thanks Jason.

  • @_ian_
    @_ian_ 3 года назад +1

    Abolutely +1 for [SelectionBase] ... I've been attributin' for years but only just learned this one from you, thanks Jason!

  • @mira3504
    @mira3504 3 года назад +4

    oh my god i was literally searching for a RunTimeInitializeLoadType kinda thing yesterday!!!! thank you so much eee

  • @Rovsau
    @Rovsau 2 года назад

    Great video! Very well explained and demonstrated.

  • @tienshido
    @tienshido 3 года назад

    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 :)

  • @cole1396
    @cole1396 3 года назад

    Love your videos man, very very helpful

  • @kylenissen2010
    @kylenissen2010 3 года назад +8

    [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
      @pmacdev 3 года назад +1

      Also [NonSerialized], saved me a lot when making save files.

    • @juancereda5952
      @juancereda5952 3 года назад

      This, and using properties with private setters is the way.

  • @artistpm1
    @artistpm1 3 года назад

    This is a great sum up, thank you.

  • @RobLang
    @RobLang 3 года назад

    Excellent video!

  • @supertenchoo4271
    @supertenchoo4271 3 года назад

    very informative video Thanks Mr Jason

  • @ahadnazari9110
    @ahadnazari9110 3 года назад

    Awesome tips 🙏🙏🙏

  • @jacobester3846
    @jacobester3846 3 года назад

    Thank you Sir!

  • @justinanderson267
    @justinanderson267 Год назад +2

    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)]

  • @Deadbeliever
    @Deadbeliever 3 года назад +2

    I currently am doing the ultimate game dev course....It is worth every dollar....Brilliant stuff!!!
    Thank you Jason & Thomas!!

  • @mcgeufer
    @mcgeufer 3 года назад +17

    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
      @daryll4645 3 года назад +2

      I use it, its awesome!

    • @vudshpreyk
      @vudshpreyk 3 года назад +1

      Yes, it's free and has a ton of features

  • @blackwarrior823
    @blackwarrior823 3 года назад

    Thanks!

  • @Havie
    @Havie 3 года назад +1

    Naughtdog attributes (free) is also super helpful . Resizabletext box OP

  • @klarnorbert
    @klarnorbert 3 года назад

    You rock!

  • @tienshido
    @tienshido 3 года назад

    6 days…well I hope you have another course together soon after :)

  • @justinwhite2725
    @justinwhite2725 3 года назад

    Awesome. I use Odin inspector and I've been wondering how to make my own attributes.

  • @aligdev
    @aligdev 3 года назад +1

    3:10 Nice monitor!

  • @AlanZucconi
    @AlanZucconi 3 года назад +1

    Nice title! 🤪

  • @BBRAVOHAX
    @BBRAVOHAX 3 года назад

    I am apart of fulltime gamedev but idk if I have access to the ultimate course

  • @MasterArrow
    @MasterArrow 2 года назад

    Oh god my takeaway from this REALLY shouldn't have been "oh wow I've never heard of scriptableobjects" 😔

  • @1993Duckman
    @1993Duckman 3 года назад

    Do the courses touch on or include the new input system?

  • @FileTh1rt3en
    @FileTh1rt3en 3 года назад

    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
      @jackoberto01 3 года назад

      You could use Assetdatabase.GetAssetPath in OnValidate

  • @normalhumanbeing6066
    @normalhumanbeing6066 3 года назад

    What font does your IDE use? Looks sick

  • @hplovecraftmacncheese
    @hplovecraftmacncheese 2 года назад

    I hope I fall into the pit of success.

  • @ChrisBrown-cu6hx
    @ChrisBrown-cu6hx 3 года назад +1

    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
      @finefreshbread3243 3 года назад

      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)

  • @ramonalexferreira6191
    @ramonalexferreira6191 3 года назад +1

    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
      @andersmartensson8659 3 года назад +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.

  • @drominus3875
    @drominus3875 2 года назад

    [SelectionBase] !!!

  • @machetebtv2041
    @machetebtv2041 3 года назад

    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
      @JohnWellingtonWells 3 года назад +1

      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
      @joaniepepin4968 3 года назад +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
      @jackoberto01 3 года назад

      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

  • @dk3390
    @dk3390 3 года назад +1

    Hey Jason what's going on ? 😁

  • @madscience6283
    @madscience6283 2 года назад

    Test 2
    0:00

  • @abdoudjam6846
    @abdoudjam6846 3 года назад +1

    oh hey Jason, i haven't used Unity in 3 years, can I get back

    • @QuietSnake-xs5vx
      @QuietSnake-xs5vx 3 года назад

      If you want to

    • @powercore2000
      @powercore2000 3 года назад

      Yup, it's never too late

    • @Novus_Black
      @Novus_Black 3 года назад

      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
      @AdamMooreGameDev 3 года назад

      The UI is much nicer and it has some nice new features. :)

    • @joaniepepin4968
      @joaniepepin4968 3 года назад +2

      No, if you don't use it for over 2 years, it will pout and ignore you.

  • @mechanicaltimi123
    @mechanicaltimi123 3 года назад

    Best advice is to buy assets. All good games just purchase assets.

  • @madscience6283
    @madscience6283 2 года назад

    Test
    ruclips.net/video/h39S1YIhPVs/видео.html

  • @simmzzzz
    @simmzzzz 3 года назад +3

    What happened to this channel? Episodes have become just one big advertisement...

    • @swagg7109
      @swagg7109 3 года назад

      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.

  • @benjoe4126
    @benjoe4126 Год назад

    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.