Skip to content

Creation and manipulation of camera objects #43

Answered by nxrighthere
perkalkyl asked this question in Help
Discussion options

You must be logged in to vote

First things first, make sure that you are familiar with GameMode and how it's used. This API is not exposed yet, but for now, you can use a blueprint to set up default classes with PlayerController and set a custom PlayerCameraManager.

Problem 1

That said, to just switch between cameras, you can use the same approach but from managed code with PlayerController.SetViewTarget() or PlayerController.SetViewTargetWithBlend(). To change the location retrieve SceneComponent from the Camera actor.

Problem 2

The most straightforward way is to retrieve an actor from the world by predefined name or tag, and get an attached component of a specified type. This functionality is based on generics, …

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
0 replies
Answer selected by nxrighthere
Comment options

You must be logged in to vote
1 reply
@nxrighthere
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants