Before asking the question, I’ll start by writing down the GameModeBase state.
GameModeOverride : GameModeBase
Default Pawn Class : SpectatorPawn
Spectator Class : SpectatorPawn
I set Widget to Beginplay in GameModeBase.
I want to pass a variable called Texture to the Actor when I click the Widget’s button, but I don’t know how to set the Target, so an error occurs.
So if I do it with EventDispatcher
I don’t know how to get the Widget into Target.
What should I do.