[UE4]蓝图实现摄像机切换:Camera Switching in Blueprints

时间:2024-04-08 19:45:08

官方文档:

https://wiki.unrealengine.com/Camera_Switching_in_Blueprints

 

论坛例子1(多个摄像机之间切换):

https://answers.unrealengine.com/questions/13312/how-to-temporarily-change-player-camera-to-externa.html

Sounds like you want to switch cameras temporarily which can be done with a Set View Target with Blend node.

Here's a quick example:

1 - Enter TriggerBox1, switch to CameraActor1.

2 - Exit TriggerBox1, switch to DefaultCamera.


[UE4]蓝图实现摄像机切换:Camera Switching in Blueprints
 

 

=============================================================

这是自己实现的一个例子(只有一个摄像机,只是修改该摄像机的location和rotation):

按下E键,修改摄像机的Location和Rotation(相对CharacterController的位置);其中CameraBoom是一个SpringArmComponent组件。

[UE4]蓝图实现摄像机切换:Camera Switching in Blueprints
 

 

=================================================
 官方教程:在两个Player之前实现Camera切换(类似Lego的游戏视角)

https://wiki.unrealengine.com/Creating_a_shared_camera_for_multiplayer_games