Can't set pointer to derived type
I'm making a test pawn class, and creating a component inside. In the header file I put:
and in the cpp:
But i get the error :a value of type "UStaticMeshComponent " cannot be assigned to an entity of type "USceneComponent "
Doesn't UStaticMeshComponent inherit USceneComponent? Am I misunderstanding something? I am perplexed.
asked Jan 13 '16 at 07:32 AM in C++ Programming
Follow this question
Once you sign in you will be able to subscribe for any updates here