Unreal Engine 5 - How to Use Camera Animations in gameplay

Sdílet
Vložit
  • čas přidán 11. 09. 2024
  • Play Camera Animations using the gameplay cameras subsystem
    and edit Camera Animations inside level sequences.
    Joing the Discord server!
    / discord
    #ue5 #unrealengine #unrealengine5 #unrealengineblueprints

Komentáře • 25

  • @jorrdan.
    @jorrdan. Před 10 měsíci +8

    This was really helpful thank you! I couldn't find any resources to explain exactly how to make camera specific animations (besides level sequences which I already knew how to do)

    • @gotagamee
      @gotagamee  Před 10 měsíci

      I'm very glad to hear it helped!

  • @ali3ser
    @ali3ser Před 9 měsíci +1

    thank you! was looking for this

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

    Thanks mate!

  • @김충지
    @김충지 Před 2 měsíci

    Cool! Thanks.

  • @ali3ser
    @ali3ser Před 9 měsíci +2

    i implemented this but i got a few questions, im a sequencer noob so i would appreciate if you could give me some ideas:
    1-you never showed how to implement the "EndCameraAnimation" event, right now when the animation finishes, the camera just zeroes in on the player character. is there a way to trigger that event from the camera animation sequence?
    2-for me, the camera animation seems to be saved at world space, meaning, when i walk the character to another location and trigger the event, the camera animation plays in the 0,0,0 location i used in the sequencer. how can i make it so that this system is location independent?
    EDIT: solved this one by changing the transform of the spawned actor to the character's transform.
    3-what is the best way to blend the transition between the character camera and the animated camera? i used the settings on the SetViewTargetWithBlend node, but it acts super weird, starts off faster than the actual version.
    thanks!

    • @gotagamee
      @gotagamee  Před 9 měsíci +1

      For number 1, implementing stopping the camera animation, I would have it be called outside of the camera sequence itself. Depending on the combat system and whatsnot, you may want to cancel or cutoff a camera animation from continuing. That' something I think the combat system(or any relevant system) to handle than leaving it up to the animation system. I am unsure of how to trigger stopping the camera animation using triggers and such inside the template sequence itself. You could try getting a reference to the tempalte sequence you are using for a camera animtion and use the "Get Playback End Seconds" node with a "Delay" or "Set Timer by ..." node followed by "Stop Camera Animation" node.
      For number 3, If you mean blending after the animation has played, you first have to make sure you run the "Stop Camera Animation" node before "Set Voew Target with Blend". However, this is still going to look weird because the blending will start from the actor's location that's playing the camera animation. You'll have to adjust the blend starting point to be the camera's world location at the time of the blending starts, not th actor's location. If you bmeant for the starting blend, you'll have to force your camera animation to start playing after the blending is done, witht he location of the camera having to be in sync with the camera animation applied camera's world location.
      The video is meant to be a basic starting point for those who may have trouble in finding where to start with a camera animation system so I didn't go in too deep with potential issues that may arise with implementation, which is something all game developers have to tackle anyway.I hope it helped.

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

    Hello, I added camera shake to camera sequencer, but it doesn't work in the game itself, it works during editing, I just create a level sequence everything works, but as soon as I add shaking to camera sequence for my finishing animations, there is no shaking. Can you help me, please?

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

    hello, I want to use a camera animation but only for a camera (no skeletal mesh), so i can't really use a level sequence (i think). I tried to just use a camera sequence, but even after i placed my keys to move my camera, nothing happened. Not even while going back on the timeline to see the previous keys. I don't understand what is going on

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

      Hi, the video goes through the process of creating a camera animation. I suggest you take a look and see if it helps you out.

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

      Yeah i watched the video, but does it work even without an animated mesh? Like, if i only want to get my camera to go up and down, but without anything else moving?

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

      It should work for the most part. You'll have to try it out to be sure.

  • @lordmax8729
    @lordmax8729 Před 5 měsíci

    thank you!!

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

    how can i implement EndCameraAnimation node to the ThirdPersonCharacter?

  • @Goodgameforus
    @Goodgameforus Před 11 dny

    plzz the application for Keyboard button

  • @구준모-u1t
    @구준모-u1t Před rokem

    Cool

  • @francismagliquian3352
    @francismagliquian3352 Před 5 měsíci

    question sir, May I know where did you connect the Handle input in Stop Camera Animation Node?

    • @gotagamee
      @gotagamee  Před 5 měsíci

      Hello. It's connected to the handle that's in the Play Camera Animation node. I hope it helps.

  • @user-gz4fn6yi2c
    @user-gz4fn6yi2c Před rokem

    thanks

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

    In ue 4.26 i cant get camera subsystem

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

      If I'm not mistaken, getting the camera subsystem is available only for unreal engine 5.

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

      @@gotagamee how can we achieve this in ue4

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

      I am not quite sure but from what I remember, you can try using a level sequencer to achieve it. I did come across a youtube tutorial that uses level sequencer to create a camera animation from Ryan Laley. You can go through his youtube channel, and I think it's pretty recent. I hope it helps.

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

      @@gotagamee thanks man 🙌🏻❤️