Top tips for scripting in Unity 2022 LTS | Tutorial

แชร์
ฝัง
  • เผยแพร่เมื่อ 11 ก.ค. 2024
  • 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
  • เกม

ความคิดเห็น • 49

  • @vinodakula3824
    @vinodakula3824 2 หลายเดือนก่อน +5

    +1 for conditional breakpoints and assertions. Will definitely start using them.

  • @inunekonanita
    @inunekonanita 2 หลายเดือนก่อน +11

    Thank you very much for the tips! Very helpful ^-^

  • @pedroduran8927
    @pedroduran8927 2 หลายเดือนก่อน +3

    Thank you! keep going with those videos!

  • @ShiftyTheDev
    @ShiftyTheDev 2 หลายเดือนก่อน +32

    5:15 is so underrated

    • @SondaPower
      @SondaPower 2 หลายเดือนก่อน +9

      Until you will find out it's not a perfect solution 😅

    • @dreamcatforgotten8435
      @dreamcatforgotten8435 2 หลายเดือนก่อน +5

      @@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
      @amitmoryosef2223 2 หลายเดือนก่อน +1

      TY best timestamp i ever clicked on

    • @timurradman3999
      @timurradman3999 2 หลายเดือนก่อน

      Best tip of all time

    • @YoutuberUser002
      @YoutuberUser002 2 หลายเดือนก่อน

      What are you on about pooling or the editor tip?

  • @y01cu_yt
    @y01cu_yt 2 หลายเดือนก่อน +8

    Thanks for these pretty tutorials.

  • @benmols
    @benmols 2 หลายเดือนก่อน

    Great tutorial and very informative. Thank you

  • @halivudestevez2
    @halivudestevez2 2 หลายเดือนก่อน

    most usefull tips! thank you for this video!

  • @HansPeter-gx9ew
    @HansPeter-gx9ew 2 หลายเดือนก่อน

    great tutorial, this is what we need, thank you!!!

  • @GameDevBox
    @GameDevBox 2 หลายเดือนก่อน +3

    Thanks great stuff!

  • @makeaddict
    @makeaddict 2 หลายเดือนก่อน

    Thanks! So helpful.

  • @stas_khavruk
    @stas_khavruk 2 หลายเดือนก่อน +25

    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
      @yigitcetinkaya8123 2 หลายเดือนก่อน

      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
      @batnikelam-mavzer443 20 วันที่ผ่านมา

      Lol unity..

  • @huudungnguyen5453
    @huudungnguyen5453 2 หลายเดือนก่อน +3

    These tips are very useful

  • @kaasronald3623
    @kaasronald3623 2 หลายเดือนก่อน +1

    thanks this is awesome. more videos like this.

  • @simoncodrington
    @simoncodrington หลายเดือนก่อน

    This one was great guys nice work. Having clear and concise videos like this is super handy for everyone

  • @senser1o76
    @senser1o76 2 หลายเดือนก่อน +2

    Super actual information thanks a lot unity!!!¡!!!!!!!!!!

  • @DevDunkStudio
    @DevDunkStudio 2 หลายเดือนก่อน

    Assembly definitions also are a great addition for a good code base and faster editor compilation speeds

  • @stas_khavruk
    @stas_khavruk 2 หลายเดือนก่อน +6

    I want to check Unity Test Framework tutorial, but it is missing from vide description, when voice over said to check it below!

  • @tsomoos
    @tsomoos 2 หลายเดือนก่อน +11

    Super useful tips!

  • @user-wk8os3dz2c
    @user-wk8os3dz2c 2 หลายเดือนก่อน

    very very useful video

  • @yugoanzai8197
    @yugoanzai8197 9 วันที่ผ่านมา

    Careful when disabling domain and scene reload when entering play mode! There are a lot of moving parts that need to be addressed for this to work correctly

  • @tahazia6340
    @tahazia6340 2 หลายเดือนก่อน

    I love E-Book Thanks

  • @lemetamax
    @lemetamax 2 หลายเดือนก่อน +4

    Stuff like this is why I open TH-cam everyday

  • @BlaCKM00n333
    @BlaCKM00n333 2 หลายเดือนก่อน

    changing script templates is soooo cool. i want it for years😓

  • @metinevrenkurtulus
    @metinevrenkurtulus 2 หลายเดือนก่อน +1

    Has Unity given up on suggesting using assembly definitions? I'm using them but Unity still keeps recompiling everything!

  • @nuin9937
    @nuin9937 2 หลายเดือนก่อน

    Don't you want reload scene on with domain reolad off?

  • @halivudestevez2
    @halivudestevez2 2 หลายเดือนก่อน

    so don't we have to wait for Unity 6 to be able to use Muse?

  • @creativebayo9201
    @creativebayo9201 2 หลายเดือนก่อน

    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!!

  • @tomazznidarko8700
    @tomazznidarko8700 2 หลายเดือนก่อน +1

    Presented by Pete Jepson, he is a very good teacher from the Udemy. I wonder what is his connection with Unity ...

  • @qwerty6778x
    @qwerty6778x 2 หลายเดือนก่อน

    REALLY HELPFUL!!

  • @user-zb7vl7br3d
    @user-zb7vl7br3d 2 หลายเดือนก่อน

    What is difference between Assertions and Debug.LogError?

  • @GameDevASMR
    @GameDevASMR 2 หลายเดือนก่อน +1

    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
      @Nomad1108 หลายเดือนก่อน

      I was about to ask if Muse was better than GPT-4o on code generation, what do you think?

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

  • @dzitsiuk
    @dzitsiuk 2 หลายเดือนก่อน

    You forgot to include the last section (Profiling) in the list of chapters.

  • @defeatSpace
    @defeatSpace 2 หลายเดือนก่อน

    Ponzi Growth Engine

  • @KingboxUpdrive-tu6ip
    @KingboxUpdrive-tu6ip 2 หลายเดือนก่อน +1

    Why Unity Pro $2,040.00?
    Sorry don't buy, The error this wrong Unity Hub.

    • @pedroduran8927
      @pedroduran8927 2 หลายเดือนก่อน +2

      $2040 / 12 months = $170 usd monthly.
      the price is correct, that's just how much cost unity pro.

    • @GameDevBox
      @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
      @KingboxUpdrive-tu6ip 2 หลายเดือนก่อน

      Lol like this Unity 6 Pro

    • @prrithwirajbarman8389
      @prrithwirajbarman8389 2 หลายเดือนก่อน

      It's a hugh corporate company now.

  • @kleioscope
    @kleioscope 2 หลายเดือนก่อน

    muse i useless....