Download

What parameter does the 'cast' function takes?

Hey folks! I am currently going through the Battery Collector tutorial, and while I am doing so, there is a function called ‘cast’. Correct me if I am wrong here, but as far as I know it is used to check whether a class has a parent class of actor, pawn, etc. But the question for me is what parameter does it take.

Looking at the code here:


APickup *const TestPickup = cast<APickup>(CollectedActor)

What goes into the

<>

and what goes into the

()

?

Thanks in advance as always,
90percentdebug.