Announcement

Collapse
No announcement yet.

What parameter does the 'cast' function takes?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    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:
    Code:
    APickup *const TestPickup = cast<APickup>(CollectedActor)
    What goes into the
    HTML Code:
    <>
    and what goes into the
    HTML Code:
    ()
    ?

    Thanks in advance as always,
    90percentdebug.
Working...
X