[4.12.5] CineCameraComponent of CineCameraActor gets return with parent class type

Hi there,

as I experienced when helping out here:

When you want to use the CameraComponent of the CineCameraActor you need to cast it to CineCameraComponent even if it says it already is.

(other tooltip)

100475-component.png

Happy debugging :slight_smile: Marooney

Hello Marooney,

I have a few questions for you that will help narrow down what issue it is that you are experiencing.

Quick questions:

  1. Can you reproduce this issue in a clean project?
  2. If so, could you provide a detailed list of steps to reproduce this issue on our end?
  3. To clarify, are you seeing a warning that says you do not need to cast?

Hello,

I’ve reproduced both ways in a clean Project:

First way to reproduce:

  1. Drag a CineCameraActor into the Level

  2. In the Details you can access the “Current Camera Settings” of the CameraComponent. And these settings are part of the CineCameraComponent class.

  3. Drag the CineCameraActor into the LevelBlueprint, GetCameraComponent, and try to access a CineCameraComponent setting like CurrentFocalLength.

Settings are not available because you only get typeof CameraComponent and not as expected CineCameraComponent. It is no problem to cast of course, if you know that. But I am sure this is not intended to be like that.

I think the CineCameraActor just exposes the “CameraComponent” as typeof CameraComponent instead of CineCameraComponent for the BP, that’s all :slight_smile: Therefore there is no warning.

Another way to reproduce (like I did in the screenshot):

  1. Create a new Blueprint based on CineCameraActor

  2. Select the CameraComponent and you will see the Details you should have access to within the EventGraph.

  3. Drag the CameraComponent into the EventGraph and try to access them (e.g. CurrentFocalLength).

Happy debugging :slight_smile: Marooney

Hello Marooney,

After further testing I was able to reproduce this issue on our end. I have written up a report and I have submitted it to the developers for further consideration. I have provided a link to the public tracker. Please feel free to visit the provided thread for future updates. Thank you for your time and information.

Link: Unreal Engine Issues and Bug Tracker (UE-34036)

Make it a great day