Access camera values from UCameraComponent

antithing
Wed, 22 Apr 2015 17:16:31 +0000
C++

Hi all, I have a blueprint with a camera component inside. I access it in c++ by iterating through the scene and finding UCameraComponents that match the specific name. So I can ‘get’ it in blueprints.

BUT, as it is a camera COMPONENT, I can’t seem to set it as a view target, or attach it to another mesh with AttachRootComponentTo. Both things that i need to do.

Why can i not cast a camera component to a camera actor successfully? And is there a way around this?

many thanks.

2 posts - 1 participant