So I’ve got an actor, and I want to attach a camera to it via spring arm, and then make that the primary camera for the level. There are two ways to do this that I’m aware of, which are both causing issues for me.
Click on the actor in the world outliner, add a spring arm component, then add a camera, and make the camera a child of the spring arm. This is fine, however, when I try to use this camera in the “Set View Target with Blend” blueprint function, I get “Camera component reference is not compatible with Actor reference”. This seems to be because the function wants a “Camera Actor”, instead of just a “Camera”.
Create a camera actor inside the scene (just by adding a “Camera” in the class search box, under place mode). I can use this in the “Set View Target with Blend” function, but can’t figure out a way to attach that to the other actor, since I can’t seem to make that a child of the spring arm.
What do you mean by ‘setting up the camera components’? I can bring the cameraActor reference into that blueprint and use it properly, but then the camera isn’t attached to the spring arm at all. I can create the camera in the blueprint, but then when I try and use that camera with “Set View Target with Blend”, I get “Camera component reference is not compatible with Actor reference”.
In the blueprint viewport add a spring arm component to your scene root then add a camera component as a child of the spring arm component. The camera should then appear under Variables > Components for you to drag in and use.
@MagicNono@mflux
You may have to rely on a PlayerCameraManager class and build all your camera-related blueprints in there. Spawn the PlayerCameraManager from the player controller.