And where do I get the refference to that object from? it is important that it is the same object, since its about an bool for the menu is displayed or not. and it could be switched by player via input or by menu via pressing resume and both cases had to switch on the same bool. what wouldn’t be here the case. would it?
Ahhhh I was able to get that specific object through get PlayerPawn. But is there a way to get an object in generell if there is no relation? Anyway for now that fixed it. thanks.
With function like GetAllActorsOfClass or GetAllActorsWithInterface and make a research from there (with name or tags).
As you found it, you also can use GetPlayerPawn but there is also GetPlayerController, GetPlayerCameraManager, GetGameMode etc.