Assigning Camera In Runtime
Here are the steps to set up Leia Camera Pawn for a runtime spawned camera scenario
1. In World Settings → Game Mode, identify the default pawn class in the current setting. You can also check this in Project Settings → Project - Maps & Modes → Default Mode → default pawn class.


2. In this example, using a first-person setup from Unreal, the default Pawn Class is "BP_FirstPersonCharacter". Open this blueprint in the blueprint editor.

3. Drag the LeiaCameraPawn blueprint under the Camera Component object.

4. In the Construction Script, set the Target Camera of LeiaCameraPawn and compile it.

Last modified 21d ago