How can I call a function in my gamemode from an actor (cyclic dependency)?
I am having trouble with this. I am including my CustomActor.h in my CustomGameMode class. Therefore I cannot also include my CustomGameMode.h in my CustomActor class or I'll get a cyclic dependency error. The problem is I need to send some information to the GameMode whenever my Actor is clicked, but I can't seem to access the GameMode from my Actor. Can anyone help?
I've had this problem with PlayerController and the HUD class. You solve cyclic dependency issues with forward declarations as described here in this tutorial
answered Jun 29 '14 at 02:53 PM
Follow this question
Once you sign in you will be able to subscribe for any updates here