Blueprint does not inherit from 'Child Actor Component' (Cast to ... would always fail)

Hi,
I have an Actor Blueprint, that contains a Child Actor Component of type Blueprint_XYZ. Now I want to cast this Child Actor Component to Blueprint_XYZ (as seen in the image).

image

But the following warning appears:
‘BP Pi AR1’ does not inherit from ‘Child Actor Component’ (Cast To BP_PiAR1 would always fail).

Are there any suggestions for solving this warning?

Thanks in advance.

1 Like

You have to do a ‘get child actor’ before the cast.

image

6 Likes

Thanks a lot!

2 Likes