How to check child class of a virtual parent class?

anonymous_user_e6436d8c
Mon, 14 Sep 2015 14:43:29 +0000
C++

Hi, I’m working on a project with vehicles. So, I’m working on WheeledVehicleMovementComponent.cpp class, and I want to check if the owner class of this component is my WheeledVehicleNW class, or maybe the child class of it, witch is my new class WheeledVehicleMovementComponentNW. Just a simple If statement would work, but I couldn’t understand it yet.

As far as I could understand, the classes are organized like this: APawn->WheeledVehicleNW-UWheeledVehicleMovementComponent->UWheeledVehicleMovementComponentNW.

6 posts - 1 participant