Unreal Engine 5 - How to Use Camera Animations in gameplay
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
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)
I'm very glad to hear it helped!
thank you! was looking for this
Thanks mate!
Cool! Thanks.
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!
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.
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?
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
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.
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?
It should work for the most part. You'll have to try it out to be sure.
thank you!!
how can i implement EndCameraAnimation node to the ThirdPersonCharacter?
plzz the application for Keyboard button
Cool
question sir, May I know where did you connect the Handle input in Stop Camera Animation Node?
Hello. It's connected to the handle that's in the Play Camera Animation node. I hope it helps.
thanks
In ue 4.26 i cant get camera subsystem
If I'm not mistaken, getting the camera subsystem is available only for unreal engine 5.
@@gotagamee how can we achieve this in ue4
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.
@@gotagamee thanks man 🙌🏻❤️