10 Unity Tips You (Probably) Didn't Know About

Sdílet
Vložit
  • čas přidán 7. 07. 2024
  • Show your Support & Get Exclusive Benefits on Patreon (Including Access to tall tutorial Source Files + Code) - / sasquatchbgames
    Join our Discord Community! - / discord
    In this video, I'll show you MORE of my favorite Unity tips that I've discovered over the years. These are ALL tips that I wish I'd known about before I discovered them, and I try tried to only include tips that haven't been overdone in other videos. I hope you enjoy!
    Timestamps:
    00:00 - GetComponent vs TryGetComponent
    01:00 - Keyboard shortcuts
    01:45 - Correcting changed animation path
    02:21 - Clearing inspector fields faster
    02:33 - ContextMenu for quick testing
    03:01 - Changing new script template
    03:58 - Stopwatch for performance benchmarks
    05:17 - Faster way to rename scripts
    05:57 - The power of Reset + RequireComponent
    07:24 - Execute in edit mode
    Link to Download our FREE 2D Asset Pack:
    veilofmaia.com/tutorial-asset...
    ---
    In need of some Unity Assets? Using our affiliate link is a great way to support us. It's free, and we get a small cut that helps keep us up and running: assetstore.unity.com?aid=1100lwgBQ
    ---
    Who We Are-------------------------------------
    If you're new to our channel, we're Brandon & Nikki from Sasquatch B Studios. We sold our house to start our game studio, and work full time on building our business and making our game, Veil of Maia.
    Wishlist our Games:
    Wishlist Veil of Maia! - store.steampowered.com/app/19...
    Wishlist Samurado!
    store.steampowered.com/app/23...
    Don't forget to Subscribe for NEW game dev videos every Monday & Thursday!
    Follow us on Twitter for regular updates!
    / sasquatchbgames
    #unitytutorial #unity2d #unity3d
  • Hry

Komentáře • 37

  • @miksdickinson
    @miksdickinson Před 8 měsíci +12

    Congratulations on getting nominated for a Unity award! Keep it up! Happy for you guys! 🌟

  • @ElNitro7
    @ElNitro7 Před 8 měsíci +6

    Did you all just watch me for the last 1.5 years while I made Protocol and say hey let's do this quick video on everything this guy keeps failing on??? 😅 too true and thank you. This is genuinely helpful!

  • @sxsignal
    @sxsignal Před 8 měsíci +5

    the animation tip for repathing and F12 for following to the function!!!! going to save me hours

    • @TheMrSnipey
      @TheMrSnipey Před 8 měsíci +1

      F12 = Same as holding control key and clicking on the function. (in vs)

  • @jacobboyce7687
    @jacobboyce7687 Před 8 měsíci

    Such good tips. Vids like these can be generic but these are things I didn't know and I've been using unity for a while. Love that you called the thing in tip 4 a nipple haha

  • @matthewm2139
    @matthewm2139 Před 8 měsíci +9

    _canFlash = TryGetComponent(out _damageFlasher);
    why many line when one line do?
    Nice tips. Didn't know about a few of these.

    • @niuage
      @niuage Před 8 měsíci +2

      The classic "if true then true else false" lol

    • @Chubzdoomer
      @Chubzdoomer Před 7 měsíci +1

      lol, exactly what I came down here to say! 😛

  • @iiropeltonen
    @iiropeltonen Před 8 měsíci +2

    I did not know about The RESET function. That's really handy.

  • @vo_sk
    @vo_sk Před 8 měsíci

    Very cool, thanks for sharing!

  • @thepolygonpilgrimage
    @thepolygonpilgrimage Před 8 měsíci +1

    By the way, with the ContextMenu trick you can also use I believe it is a \ to create sub-menus as well. Example: Test Functions\Function 1

  • @ragerungames
    @ragerungames Před 8 měsíci

    AWESOME TIPS! :) THANKS

  • @castlecodersltd
    @castlecodersltd Před 8 měsíci

    Great tutorial, thank you, you've gained a subscriber ☺

  • @regys9521
    @regys9521 Před 8 měsíci

    Super useful for sure, thank you very much sir

  • @a6gitti
    @a6gitti Před 3 měsíci

    Great video!

  • @ninesupap
    @ninesupap Před 6 měsíci

    At 5:35, the "ctrl+r+r" Does this feature exist in VSCode? I always use F2 to rename functions, but in VSCode, it only renames variable names and not the filename for me. Thank you for the tip! ^~^

  • @derpgio9882
    @derpgio9882 Před 8 měsíci +1

    Tip: if you go into Project Settings > Editor > Enter Play Mode Settings and toggle Enter Play Mode Options on, when you hit play in the editor, you will instantly get into your game scene. This is because this disables reloading the domain, so it is to note that scripts wont be reloaded. For example, if you have a script with a static boolean that you make true when something happens, this will stay as true when you enter play mode again.

  • @flamart9703
    @flamart9703 Před 8 měsíci

    Is there a shortcut to jump to next or previous error while I'm in Visual Studio? I'm learning typing fast and is too time consuming to navigate with arrow keys (with or without Ctrl key).

  • @impheris
    @impheris Před 8 měsíci

    pretty useful video

  • @umapessoa6051
    @umapessoa6051 Před 8 měsíci +3

    Thanks for the video, however i disagree on the first tip, it's nice to have errors when something is not working as expected, otherwise in a bigger project you'll find yourself debugging something that simple for hours.

    • @DanielBoldrin
      @DanielBoldrin Před 13 dny +1

      Exactly, it makes more sense to check if the component is not null before calling flash to prevent a crash. And still use a Debug.LogError which will popup in dev builds.

  • @midniteoilsoftware
    @midniteoilsoftware Před 8 měsíci

    Number 9 was new to me

  • @tabuuforte8546
    @tabuuforte8546 Před 8 měsíci +1

    The ContextMenu thing is so legit useful. This stuff is never taught in Unity's godawful docs.

  • @SavageVR
    @SavageVR Před 4 měsíci

    I have never saved a video so fast before.

  • @shitwedotv
    @shitwedotv Před 3 dny

    #2 would have saved me several hours just today 😂

  • @seaderwerks3046
    @seaderwerks3046 Před 8 měsíci

    WTF. Where was this video 6 months ago??? omg the first like 6 pertained exactly to my situation.

  • @ablackphoenix844
    @ablackphoenix844 Před 8 měsíci

    I already knew most of it and i was like heh! But that reset thing, so many hours wasted 😂
    Thanks!

  • @cburn-YT
    @cburn-YT Před 8 měsíci

    I feel like this is mostly Visual Studio Tips that relate to unity more than anything

  • @kostariev_vadim
    @kostariev_vadim Před 8 měsíci

    @sasquatchbgames Why don't you ask to be voted for you in Unity Awards?

  • @davidsanchezplaza
    @davidsanchezplaza Před měsícem

    ctrl + r ctrl + r is a pwer move

  • @achomatico
    @achomatico Před 8 měsíci

    👍👍👍👍👍

  • @celinedrules
    @celinedrules Před 16 dny

    Keyboard shortcuts for comments are not Unity specific and are different for different IDE's.

  • @SLthenus
    @SLthenus Před 8 měsíci

    Why every tutorial has simple Script and Not playing with advanced Script like real game developer do.
    You know what, my bos is Extremely Senior Game developer, and whenever i write a script by following youtube tutorial he always say it's wrong even it's work. He always destroy and delete my Branch on Plastic SCM. He doesnt like youtube tutorial
    He always force me to do his structure and code style. Even in simple game, He doesnt allow me to use a simple code, and my standart coding
    It's like he force me to make a code that can always be used in every Project

  • @Coco-gg5vp
    @Coco-gg5vp Před 8 měsíci

    First