Community Tutorial: Updating Action RPG from UE4 to UE5

Hi there,
Thank you for bringing me this error to my attention. The <AActor*> was missing in my text. The correct lines are:

From: OutActors.Add(const_cast<AActor*>(EventData.Target));
To: OutActors.Add(const_cast<AActor*>(ToRawPtr(EventData.Target)));

This is what I have:
image

Give it another try and let me know. I’ll update the tutorial.

Edit: As an update, the reason for this error is that, when copying and pasting the text into the tutorial editor, the “<AActor*>” gets supressed, perhaps because of the symbols. I didn’t notice this. Thank you again for letting me know.
Good luck in your project.

1 Like