I created a very simple information graph level that doesn’t need any character, just a fixed camera look at a scene, which some objects require to look at the camera.
I got the issue when I want to setup the default camera position.
I used to simply create a Camera Actor in the level, and make it Auto Active on Player 0.
But this often doesn’t work well, sometimes, when I run the level, the starting camera position will be the angle I preview the scene, rather than the configed Camera Actor.
So I created an empty Pawn BP, just put it in the level, then in the Level BP, I used the Possess node, to make it act as the default camera, then removed the Camera Actor created previously.
However, in the Level BP, I get the correct Pawn transformation. But in the Object BP and the Game Mode BP in and of my level, the Get Player Pawn gives only the scene previewing camera transformation, it is not the one I config in the Level BP.
So why the Level BP and Object BP give me different pawns?
What’ s wrong? What’s the best way to ensure a default camera transformation?
To make everything work, for now, I just use a hard-code transformation variable, to make my Object look at that transformation, because the Get Player Pawn gives me the wrong transformation.