Unity 2021.2 - New Features for Programmers

Поделиться
HTML-код
  • Опубликовано: 28 июн 2024
  • #Unity2021
    Sign up for the Level 2 Game Dev Newsletter: eepurl.com/gGb8eP
    Unity 2021.2 features a .NET Standard upgrade that's particularly important for developers to understand. In this video, I'll share how Unity's scripting layer works under the covers and why the upgrade to .NET Standard 2.1 is so important.
    Be sure to check out our partner channel ‪@ThousandAnt‬
    Links from the video
    - docs.microsoft.com/en-us/dotn...
    - docs.microsoft.com/en-us/dotn...
    00:00 Intro
    01:06 Level_2 Game Dev Newsletter
    01:34 How does scripting work in Unity?
    03:09 Mono Upgrade and New .NET Profile
    04:12 .NET Standard 2.1
    05:45 C# 8 Support
    06:43 Outro
    💬 Join Our Community
    Discord: / discord
    Patreon: / infalliblecode
    Newsletter: eepurl.com/gGb8eP
    ❤️ My Favorite Unity Assets *
    Odin Inspector and Serializer: assetstore.unity.com/packages...
    Editor Console Pro: assetstore.unity.com/packages...
    Rainbow Folders 2: assetstore.unity.com/packages...
    Peek: assetstore.unity.com/packages...
    Project Search & Replace: assetstore.unity.com/packages...
    ⚡ Unity 3D Plus: prf.hn/click/camref:1100l3e8M/...
    ⚡ Unity 3D Pro: prf.hn/click/camref:1100l3e8M/...
    👋 Contact me directly at charles@infalliblecode.com
    * Disclosure: These are affiliate links, which means I'll receive a commission if you use them to make a purchase.

Комментарии • 77

  • @InfallibleCode
    @InfallibleCode  2 года назад +6

    Sign up for the Level 2 Game Dev Newsletter: eepurl.com/gGb8eP

  • @AlanZucconi
    @AlanZucconi 2 года назад +37

    You had me at "Default interface methods". 🤩

  • @iHeartGameDev
    @iHeartGameDev 2 года назад +61

    Thanks for the insight, Charles! Would be really interested in seeing some of these shiny new features showcased in a project to get a better understanding of the benefits and use cases 🍻

    • @InfallibleCode
      @InfallibleCode  2 года назад +5

      That's a great idea! Thanks for the suggestion, Nicky :D

  • @MarekNijaki
    @MarekNijaki 2 года назад +1

    I am so happy you made this video. I was reading couple of times about what mono is and never could wrap may head around it. Now I get it. Ty very much!

  • @ThousandAnt
    @ThousandAnt 2 года назад +8

    Awesome video Charles, super happy to see these improvements to the fundamentals of Unity. Thanks for breaking it down!

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

    Good quality videos, descriptive, to the point, fun to watch :)

  • @robrab2000
    @robrab2000 2 года назад +7

    Great! My favourite bit was when you showed the Range function. It would be super swell if you did a video where you went over a bunch more newly available functions that could be useful to Unity devs! Also you mentioned plugins, maybe there are some interesting suggestions that you could go over :) Again, thanks for the swell content, love it!

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

      tbf, you did actually go over a number of features in this video. I was thinking that maybe showing some examples of those functions being used would be super interesting :)

  • @jvaughanx
    @jvaughanx 2 года назад +8

    Oooh Shiny New Programming Features! Honestly there is some good stuff in here and it's interesting to see the cross pollination of not totally terrible ideas from the TypeScript/JavaScript world making the trip to C# land.

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

      C# needs to loosen up.

  • @MrGuardianX
    @MrGuardianX 2 года назад +14

    Of course. They should fully implement net core and get rid of Mono. Also, they should at least make all previously introduced features useful and continue improving them rather then introduce new features every single release nobody will ever use.

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

      There was a forums post over a year ago about them migrating to .NET 5 and someone from Unity said they were not considering migrating at the time but would consider .NET 6 in late 2021-early 2022 since it was the next LTS release. Now that .NET 6 is here, they seem silent in that regard and have now updated their version of Mono. Not very promising

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

      @@DanWalshTV what drives me nuts at this point is that their Ads business which is generating most of the money for them which means their priorities for development of the game engine itself are falling. Why do they need so many new releases which introduce new bugs and never streamline any gamedev processes as a whole? Because they basically use them as a Unity brand name marketing tool. By PRing the engine they also PR their Unity Ads.

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

      Absolutely correct, but they someone from the Unity team said that it would mean that they would have to basically create everything from scratch in order to move to .net core. Unity started to focus on wrong things a long time ago.

  • @tatelax
    @tatelax 2 года назад +2

    Great video. Clear and concise.

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

    Awesome explanation. I am really happy the update is good for us developers. Unfortunately can't use 2021 yet as my current project is in 2020.3f1 and updating to new Unity version may cause issues, past experience. But will definitely will try it out on the earliest opportunity. :)

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

    Very good update something very interesting for developers after a long time. thanks charles

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

    Great explanation for the new feature.

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

    super good video! thank you

  • @MTheConqueror
    @MTheConqueror 2 года назад +7

    I mean it's nice that unity upgrades it's coding. But why not use this change and right up jump to C# version 9? 😢

    • @DanWalshTV
      @DanWalshTV 2 года назад +2

      Heck, even C# 10 is out now. They should've just lined it up with the .NET 6 release. They're always 2 versions behind.

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

      Perhaps misunderstood, but I believe Unity 2021 uses C# 9

  • @nekit8742
    @nekit8742 2 года назад +4

    Ooo, the interfaces with default implementation! Thats a controversial thing, I'd really love to know your opinion on this topic :D Thanks for the insight btw!

  • @TheSpacecraftX
    @TheSpacecraftX 2 года назад +4

    I'll be waiting for at least 2021.3 to maximise stability. I can't use any non-LTS for work anything serious and I prefer not to have too many intermediate versions installed taking up space. The newer C# feature support is a godsend though.

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

      Why though? I've seen other products in my company stick with an older version and never really understood why. Can you give an example of when it really mattered?
      I know packages tend to break when updating and that not every unity version is fully working as you expect, but I've never had any major issues

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

      @@Dfjs427 Have definitely had stability issues with the bleeding edge versions of unity. Its a safety thing. Witnessed new crashes, had IDE integration not quite working yet, etc. Just got laid off but before that, corporate wouldn't let us use non-LTS due to risk of time loss setbacks, and personally I don't want a million installs on my home PC so I pretty much stick to LTS too for the most part unless I'm playing with a new feature I've been waiting for. At which point I delete any older non-LTS versions so I only have one beta at a time installed.

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

    Which should we use for a Windows build? IL2CPP or Mono? Now with all these new developments is Mono better for Windows? What about Android build? The Google play store expects IL2CPP as the code is c++ and therefore more performant. Finally, that is what will matter right? What matters is how the user feels when the game is played. I personally feel that build times are a concern only to us. The end-user wouldn't care if your build too 3 hours or a week to build. They will be concerned about the game quality, speed, playability, etc. I hope you give your expert opinion on this widely debated subject.

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

    Any idea when we gonna get 2021.3 and it finally be in LTS?

  • @Raziaar
    @Raziaar 2 года назад +4

    I'll call it modern when it's at C#10 and .NET 6!

    • @DanWalshTV
      @DanWalshTV 2 года назад +1

      They'll add C# 10 support when C# 12 is out lol

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

      They are not gonna switch over to the new .Net anytime soon, there have been so many forum post about it. I wish they did as the performance improvements are no joke

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

    The only feature I'm looking for is the improvement for Assembly Reload after code compilation.
    Is very frustrating to save your script have to wait 8 to 15 seconds to see your changes while any modern web framework does that instantly.
    It's been 4+ years since I'm waiting for this.
    Improvements were made, but the problem remains.

  • @Tymon0000
    @Tymon0000 2 года назад +1

    When will they add C# 10?

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

    And what is with the RTX DLLS support, I heard so much about in 2021.2?

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

    I see how unity simplify things for users.
    I wish for a components that goes through my code and automatically fixes the depricated stuff to the right version

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

    When I tried 2021, I found my game file size jump from 200-300mb to 1.3-1.4Gb... for just a simple 2D game, dont know whats wrong from my side.

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

    G-Sus. I got tears of joy in my eyes

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

    Does Unity not already support .NET 4.x ? so why do they made a .NET 2.1?

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

    What's new in 2021.1?)

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

    not yet .net 6 but at least we're getting there

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

    Still waiting for at least c# 9 support, c#11 is already in development and yet unity's implementation is still c# 8

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

    For some reason i have to use Unreal Engine but before i use the Unity and C#,and trust me if you ever programming in Unity with C#,you don`t wan`t to programm Unreal C++ because it is nightmare for my 8-core process and RTX 3060,even thought the unreal is open source,but the source code is not prepare for normal developer who only want to make a simple game.

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

    C# 9 support would be great. Next time I guess!

    • @Ophelos
      @Ophelos 2 года назад +1

      Or just go straight to C# 10

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

      Doesn't 2021 already support C# 9?

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

    damn no ecs package updates in a year

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

    Net Standard 2.1 support is great. It's been requested for a long time. Animation and filmmaking is a huge waste of time though I agree. Unity has enough problems to afford a new direction they have no experience in.

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

      They bought WETA. They now have film experience up the wazoo. But I don't care about that. I am interested in what net standard 2.1 support brings us. What do you plan to use from that support?

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

    Op

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

    I jusy need unity to stop crashing when I use VS to debug lol

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

    I just wonder when unity will implement python and bring back JS

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

    The biggest fear of using unity is the platform relies on a internet connection for coding with Microsoft services another engine that was great turned to somewhat garbage to use on the go the old java implementation forgoten so are most of the people who used to program on it with java which was soupier for stability c# is not stable in unity usually java had something even though it was hard to compile for an avg person it should've been revamped and updated for the people who program offline while making games the support just isn't there. Even on the new unity 2021.3.6 the c# feels broken i got to run variables with long lines of code of definitions of what a vector 3 is wtf never had to do this before on c# its getting complicated asf.

  • @ayushsidam289
    @ayushsidam289 2 года назад +1

    As a beginner I didn't understand anything..😅😅

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

    Can someone explain like I'm stupid

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

    The stuff I'm waiting on the unity to do
    1. Add multy tags on the game engine each object able to have only 1 tag for each object this I problem because you don't able to have I object with multiple categories like for example to have tags weapon + pistol if the add multy tags I will be very useful because I will able to do Reference only one off the tag the object has and I will apply even if the have more tags because unity dasn't have multy tags you need to create multiple unique tags and become Mase very quickly
    2. I'm waiting to fixed the decals Im wait to implement decals on urp however now that final important decals I realized those decals don't have layers that means is projecting on every object no matter if movie is static ect
    3. I'm waiting unity to add path model tools ther is one tool that you create I path and the add walls streat ect on the path that is not important yet on unity
    4. I'm waiting to add tree editor again or fixed the unity Tree editor the already have for those how don't know the unity 4 has tree editor inside the unity that I will stop working correctly after one of the update

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

      As a workaround to have multiple tags you can create an empty Monobehaviour script and attach it to the GameObject. That will act like a tag that you can search for and you can add as many as you like. But yeah it would be great to have multiple of Unity’s built in tags on one object

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

      @@joshstubblefield9093 i don't know the system are talking but is sound like tricky way to do that Anyway the are multiple stuff unity need important tags layer and meny other and if easier way to create tool i will by useful as well

  • @MrGuardianX
    @MrGuardianX 2 года назад +1

    The engine lacks stability and reliability that is all. Half of it’s features are still not working properly.

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

    Has the garbage collection algorithm been updated?

  • @viceroy___
    @viceroy___ 2 года назад +1

    I like your face.

  • @ragnability4232
    @ragnability4232 2 года назад +7

    First

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

    I understood literally nothing lol.. and I have made many games. Man I am not so knowledgable in core programming stuff.

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

    Second :)

    • @InfallibleCode
      @InfallibleCode  2 года назад +1

      🥈

    • @alzard6828
      @alzard6828 2 года назад +1

      @@InfallibleCode Thanks, knew you had one for me as well :D

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

    Stop being robot 🤖

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

      Why so rude? He's speaking clearly and efficiently. Probably from a teleprompter, but that's a heck of a lot better than missing key points, stumbling over words, or meandering.

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

      @@_jonathancollins 😖

  • @QueRedFire
    @QueRedFire 2 года назад +2

    Microsoft documentation 🤮🤮🤮 is it just me?

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

    ue 5 killed unity