How to switch cameras in Cinemachine | Unity Tutorial

Поділитися
Вставка
  • Опубліковано 19 сер 2024
  • Learn to use Cinemachine in Unity for switching between cameras. We will code a system to automatically transition from one camera zone to another.
    ★ Join the Kingdom:
    / discord
    ★ Download Will & The Evil Duck for FREE (iOS & Android): gamedev.lu/gam...
    ► The GameDev Website: gamedev.lu
    ····················································································
    For the cool ones:
    ● Instagram: / gamedev.lu
    ● Twitter: / gamedevlu

КОМЕНТАРІ • 38

  • @0u73rh34v3n
    @0u73rh34v3n 8 днів тому

    Heya, just wanted to say thanks for the upload. There was some knowledge in this vid that has legitimately helped me with my job!

    • @0u73rh34v3n
      @0u73rh34v3n 8 днів тому

      And all the best with your yt channel! It’s great!

    • @this-is-gamedev
      @this-is-gamedev  8 днів тому +1

      Hey! I am glad it helped! Thanks for the kind words!

  • @kimen1
    @kimen1 Рік тому +1

    Hey you! Watch this video completely, this guy is the GOAT! Thanks for sharing your knowledge!

  • @GemGameDev
    @GemGameDev Рік тому +3

    Wow youre way to explain things is so easy to follow! Thank you so much for this video, glad I found your channel :)

  • @AustinWeeks
    @AustinWeeks 5 місяців тому +2

    6:00 for how to switch cameras!

  • @Mayo____________
    @Mayo____________ Рік тому +1

    Great tutorial! Was looking for a camera solution and it seems cinemachine covers all the bases. Didn't know about that second to last tip, definitely going to be using that!

    • @this-is-gamedev
      @this-is-gamedev  Рік тому +1

      Thanks! I am glad it help! Cinemachine is really great.

  • @The-Filter
    @The-Filter 4 місяці тому +2

    Matthew Broderick's son got into Unity!

    • @this-is-gamedev
      @this-is-gamedev  4 місяці тому

      never heard this before. I’ll take it 😆

    • @The-Filter
      @The-Filter 4 місяці тому

      Sorry I had to 😆In fact I love Matthew Broderick! And you are also very symapthic! You both have that smart look! And I like smart people! ☺@@this-is-gamedev

  • @yalcinkaya3442
    @yalcinkaya3442 Рік тому +1

    Great tutorial. It was what i wanted and funny.

  • @richardwebb2691
    @richardwebb2691 Рік тому +1

    Great video, thanks for sharing! I'd be interested in learning more from Cinemachine - e.g. doing the same, but split-screen, or custom transitions outside of smashcuts/easing. Just ideas for a future video, I'm sure you have loads already :). Keep it up!

  • @SlothHuntOnYou
    @SlothHuntOnYou 9 місяців тому +1

    how to switch from thirdPerson - to FirstPersonLook ? (should I use CinemachineFreelook and CinemachineVirtualCamera combination for that?)

    • @this-is-gamedev
      @this-is-gamedev  9 місяців тому

      You can use 2 Cinemachine VirtualCamera. But if you want the gameplay to follow then you have to make 2 different character controllers basically

  • @ruslansharipovuxui
    @ruslansharipovuxui Рік тому +1

    Great video! Quick question about last part of the video when you switch cameras on trigger enter. What if I want to do point of enterest in specific area. So the player stay on trigger and by holding E key - its activates the camera. Any help or suggestions??

    • @this-is-gamedev
      @this-is-gamedev  Рік тому +1

      In that case, the OnTriggerEnter/Exit should no switch the cameras but rather just remember what is the target camera. Then when you press E, you check if there is a current camera available to switch to.
      This could be a component on the Player “PoiController” for example.

  • @praveenb-xr
    @praveenb-xr Рік тому +1

    Hi Nice tutorial..Subscribed
    w How can we do a scane change from FPS controller camera to an animated cinemachie Dolly camera, Like cutscene play when player enters a zonr.
    Could you share any tutorial or make a one?

    • @this-is-gamedev
      @this-is-gamedev  Рік тому

      Thanks! I’ll look into that and maybe at the same occasion show it with the new Cinemachine version.
      All Cinemachine cameras work the same way, they are all virtual cameras. For an complex animated cutscene you might prefer using the Timeline directly.

    • @praveenb-xr
      @praveenb-xr Рік тому

      @@this-is-gamedev Thanks..Looking for yuour tutorial as well..

  • @_Romulodovale
    @_Romulodovale 3 місяці тому

    Can you switch to a camera from another scene?

    • @this-is-gamedev
      @this-is-gamedev  3 місяці тому

      Yes, any camera that’s loaded can be switched to. So you scenes needs to just be loaded (additively)

  • @InvisaPotion
    @InvisaPotion Рік тому

    Could you make a video on how to make it so a rigidbody could go up stairs?

    • @this-is-gamedev
      @this-is-gamedev  Рік тому

      Do you mean like how to manage feet placement?

    • @InvisaPotion
      @InvisaPotion Рік тому

      @@this-is-gamedev nah like rigidbodys cant go up stairs and ik about using ramps as collisders but that seems like a bad solution to the problem

    • @this-is-gamedev
      @this-is-gamedev  Рік тому

      @@InvisaPotion Ramps are a good solution. You just have to add 1-2 lines of code to kill the velocity and avoid that the player slips down by itself. You can also use a Capsule collider on the player that helps get up stairs.

  • @smpsports
    @smpsports Рік тому

    Does the cinemachine volume setting only exist in URP and HDRP?

    • @this-is-gamedev
      @this-is-gamedev  Рік тому +1

      Yes, that’s what the docs says :D

    • @smpsports
      @smpsports Рік тому

      @@this-is-gamedev I was able to achieve the effect I wanted with a custom blend asset. I wanted a hard cut in and then an ease out.

  • @Kawabatushka
    @Kawabatushka Рік тому

    Is that Mozart in the background? ))