Top tips for scripting in Unity 2022 LTS | Tutorial

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

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

  • @simoncodrington
    @simoncodrington 7 дней назад

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

  • @vinodakula3824
    @vinodakula3824 Месяц назад +4

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

  • @ShiftyTheDev
    @ShiftyTheDev Месяц назад +31

    5:15 is so underrated

    • @SondaPower
      @SondaPower Месяц назад +8

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

    • @dreamcatforgotten8435
      @dreamcatforgotten8435 Месяц назад +4

      @@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 Месяц назад +1

      TY best timestamp i ever clicked on

    • @timurradman3999
      @timurradman3999 Месяц назад

      Best tip of all time

    • @YoutuberUser002
      @YoutuberUser002 Месяц назад

      What are you on about pooling or the editor tip?

  • @inunekonanita
    @inunekonanita Месяц назад +11

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

  • @stas_khavruk
    @stas_khavruk Месяц назад +21

    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 Месяц назад

      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.

  • @pedroduran8927
    @pedroduran8927 Месяц назад +3

    Thank you! keep going with those videos!

  • @y01cu_yt
    @y01cu_yt Месяц назад +8

    Thanks for these pretty tutorials.

  • @stas_khavruk
    @stas_khavruk Месяц назад +6

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

  • @benmols
    @benmols Месяц назад

    Great tutorial and very informative. Thank you

  • @halivudestevez2
    @halivudestevez2 Месяц назад

    most usefull tips! thank you for this video!

  • @GameDevBox
    @GameDevBox Месяц назад +3

    Thanks great stuff!

  • @HansPeter-gx9ew
    @HansPeter-gx9ew Месяц назад

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

  • @huudungnguyen5453
    @huudungnguyen5453 Месяц назад +3

    These tips are very useful

  • @makeaddict
    @makeaddict Месяц назад

    Thanks! So helpful.

  • @senser1o76
    @senser1o76 Месяц назад +2

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

  • @DevDunkStudio
    @DevDunkStudio Месяц назад

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

  • @kaasronald3623
    @kaasronald3623 Месяц назад +1

    thanks this is awesome. more videos like this.

  • @tsomoos
    @tsomoos Месяц назад +11

    Super useful tips!

  • @lemetamax
    @lemetamax Месяц назад +4

    Stuff like this is why I open RUclips everyday

  • @tahazia6340
    @tahazia6340 Месяц назад

    I love E-Book Thanks

  • @user-wk8os3dz2c
    @user-wk8os3dz2c Месяц назад

    very very useful video

  • @BlaCKM00n333
    @BlaCKM00n333 Месяц назад

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

  • @tomazznidarko8700
    @tomazznidarko8700 Месяц назад +1

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

  • @metinevrenkurtulus
    @metinevrenkurtulus Месяц назад +1

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

  • @nuin9937
    @nuin9937 Месяц назад

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

  • @creativebayo9201
    @creativebayo9201 Месяц назад

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

  • @halivudestevez2
    @halivudestevez2 Месяц назад

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

  • @user-zb7vl7br3d
    @user-zb7vl7br3d Месяц назад

    What is difference between Assertions and Debug.LogError?

  • @GameDevASMR
    @GameDevASMR Месяц назад +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 17 дней назад

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

    • @GameDevASMR
      @GameDevASMR 16 дней назад

      ​@@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 Месяц назад

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

  • @defeatSpace
    @defeatSpace Месяц назад

    Ponzi Growth Engine

  • @kleioscope
    @kleioscope Месяц назад

    muse i useless....

  • @KingboxUpdrive-tu6ip
    @KingboxUpdrive-tu6ip Месяц назад +1

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

    • @pedroduran8927
      @pedroduran8927 Месяц назад +2

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

    • @GameDevBox
      @GameDevBox Месяц назад

      @@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 Месяц назад

      Lol like this Unity 6 Pro

    • @prrithwirajbarman8389
      @prrithwirajbarman8389 Месяц назад

      It's a hugh corporate company now.

  • @qwerty6778x
    @qwerty6778x Месяц назад

    REALLY HELPFUL!!