Top tips for scripting in Unity 2022 LTS | Tutorial
Ойындар
In this video, we’re going to look at different tips for scripting to increase your productivity in Unity 2022 LTS. You’ll learn more about creating a code style guide, the object pooling pattern, Unity Muse, as well as methods to debug and test your code.
Check out all the helpful resources we mention in the video:
Namespaces and attributes: on.unity.com/3UBXz9g
Use object pooling to boost performance of C# scripts in Unity: on.unity.com/3JEOWVj
Unity Muse: on.unity.com/3UBXMJA
How to run automated tests for your games with the Unity Test Framework: on.unity.com/4bctkvd
How to ensure code quality and maintainability with Roslyn analyzers: on.unity.com/4bauuId
How to debug your code with Microsoft Visual Studio 2022: on.unity.com/44hx8cp
‘80+ tips to increase your productivity in Unity 2022 LTS’ e-book: on.unity.com/3JyBbY7
Timestamps:
[0:00] Intro
[0:07] Namespaces
[1:31] Attributes
[2:54] Code style guide
[4:24] Object pooling
[5:35] Unity Muse
[7:08] Roslyn Analyzer
[9:11] Debugging
[10:47] Assertions
[11:45] Unity Test Framework
#unity #gamedev #unitytutorials
Пікірлер: 48
+1 for conditional breakpoints and assertions. Will definitely start using them.
5:15 is so underrated
@SondaPower
2 ай бұрын
Until you will find out it's not a perfect solution 😅
@dreamcatforgotten8435
2 ай бұрын
@@SondaPower It only fails if you are using Singletons / mutable Statics religiously, and don't manually reset them when starting the game up again. If neither your code nor your Assets need to refresh from a Domain Reload, keeping Domain Reload unchecked won't have any bad side-effects. I do keep 'Reload Scene' checked so the first Scene loads properly the same way any other scene would.
@amitmoryosef2223
2 ай бұрын
TY best timestamp i ever clicked on
@timurradman3999
2 ай бұрын
Best tip of all time
@YoutuberUser002
2 ай бұрын
What are you on about pooling or the editor tip?
Thank you very much for the tips! Very helpful ^-^
Thank you! keep going with those videos!
Thanks for these pretty tutorials.
Excuse me, but in video has been mentioned several times: "get more info by link in description", like a C# Code style book, or ObjectPooling tutorial, but there is only a book of 80+ tips and there are no object pool and other mentioned themes...
@yigitcetinkaya8123
Ай бұрын
They shared it in the description under this video Scalable art assets - 6 tips for improving workflows | Tutorial or you can find it by searching unity Create a C# style guide on google.
@batnikelam-mavzer443
9 күн бұрын
Lol unity..
Thanks great stuff!
This one was great guys nice work. Having clear and concise videos like this is super handy for everyone
Great tutorial and very informative. Thank you
most usefull tips! thank you for this video!
great tutorial, this is what we need, thank you!!!
Thanks! So helpful.
These tips are very useful
Assembly definitions also are a great addition for a good code base and faster editor compilation speeds
I want to check Unity Test Framework tutorial, but it is missing from vide description, when voice over said to check it below!
Super actual information thanks a lot unity!!!¡!!!!!!!!!!
thanks this is awesome. more videos like this.
Super useful tips!
Stuff like this is why I open KZread everyday
very very useful video
I love E-Book Thanks
Presented by Pete Jepson, he is a very good teacher from the Udemy. I wonder what is his connection with Unity ...
changing script templates is soooo cool. i want it for years😓
Has Unity given up on suggesting using assembly definitions? I'm using them but Unity still keeps recompiling everything!
Don't you want reload scene on with domain reolad off?
so don't we have to wait for Unity 6 to be able to use Muse?
What is difference between Assertions and Debug.LogError?
The examples of Muse code showcased are pretty bad and contains errors. In 6:17 for example, first the AddComponent() is not possible because Collider is an abstract class. Then, you're not doubling the size of the right collider because GetComponent() is not retrieving the collider of myObject, so this code is not working and is absolutely not not doing what was wanted. I didn't expect Muse to write working and pretty code (not yet), however I'm sorry but I would expect Unity to verify the code showcased in videos like this one, here it's a miss :/.
@Nomad1108
Ай бұрын
I was about to ask if Muse was better than GPT-4o on code generation, what do you think?
@GameDevASMR
Ай бұрын
@@Nomad1108 Sorry I never used Muse myself yet, and GPT very little (only for specific things I'm not comfortable with like Regex). Guess you'll have to try yourself (or maybe search for some reviews online) to have a real opinion.
Sorry, I need some help with Unity working with Virtual Studio. When I add a component(script) and head to VS, most of the functions I intend to call don't come up, and as a result, whatever code I write in VS is not usable in Unity. Can anyone help out here? It's urgent!!
You forgot to include the last section (Profiling) in the list of chapters.
Why Unity Pro $2,040.00? Sorry don't buy, The error this wrong Unity Hub.
@pedroduran8927
2 ай бұрын
$2040 / 12 months = $170 usd monthly. the price is correct, that's just how much cost unity pro.
@GameDevBox
2 ай бұрын
@@pedroduran8927 also you don't need to buy it, Unity 6 will remove the splash, just buy pro for certain features. I'm sure you don't need them
@KingboxUpdrive-tu6ip
2 ай бұрын
Lol like this Unity 6 Pro
@prrithwirajbarman8389
Ай бұрын
It's a hugh corporate company now.
Ponzi Growth Engine
muse i useless....
REALLY HELPFUL!!