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.
Sign up for the Level 2 Game Dev Newsletter: eepurl.com/gGb8eP
You had me at "Default interface methods". 🤩
Right?? 🤓
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 🍻
That's a great idea! Thanks for the suggestion, Nicky :D
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!
Awesome video Charles, super happy to see these improvements to the fundamentals of Unity. Thanks for breaking it down!
Good quality videos, descriptive, to the point, fun to watch :)
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!
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 :)
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.
C# needs to loosen up.
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.
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
@@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.
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.
Great video. Clear and concise.
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. :)
Very good update something very interesting for developers after a long time. thanks charles
Great explanation for the new feature.
super good video! thank you
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? 😢
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.
Perhaps misunderstood, but I believe Unity 2021 uses C# 9
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!
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.
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
@@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.
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.
Any idea when we gonna get 2021.3 and it finally be in LTS?
I'll call it modern when it's at C#10 and .NET 6!
They'll add C# 10 support when C# 12 is out lol
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
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.
When will they add C# 10?
And what is with the RTX DLLS support, I heard so much about in 2021.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
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.
G-Sus. I got tears of joy in my eyes
Does Unity not already support .NET 4.x ? so why do they made a .NET 2.1?
What's new in 2021.1?)
not yet .net 6 but at least we're getting there
Still waiting for at least c# 9 support, c#11 is already in development and yet unity's implementation is still c# 8
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.
C# 9 support would be great. Next time I guess!
Or just go straight to C# 10
Doesn't 2021 already support C# 9?
damn no ecs package updates in a year
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.
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?
Op
I jusy need unity to stop crashing when I use VS to debug lol
I just wonder when unity will implement python and bring back JS
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.
As a beginner I didn't understand anything..😅😅
Can someone explain like I'm stupid
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
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
@@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
The engine lacks stability and reliability that is all. Half of it’s features are still not working properly.
Has the garbage collection algorithm been updated?
I like your face.
First
🥇
@@InfallibleCode I deserve one too
@@razeenag8478 Maybe next time! 💩
I understood literally nothing lol.. and I have made many games. Man I am not so knowledgable in core programming stuff.
Second :)
🥈
@@InfallibleCode Thanks, knew you had one for me as well :D
Stop being robot 🤖
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.
@@_jonathancollins 😖
Microsoft documentation 🤮🤮🤮 is it just me?
ue 5 killed unity