Hi,
I encountered a problem when using Iris in UE5.6. I have many separate operations according to IsLocallyControlled() in BeginPlay(), such as if player is not locally controlled then he won’t create a widget on him.
The problem is that after enabling Iris, IsLocallyControlled() on client will return a wrong value in BeginPlay(). The return value only becomes correct after about 0.5s later.
Does anyone can help?
Edit:
I find it that in the BeginPlay() of player character, GetController() returns nullptr. Does this mean PlayerController has not set for client at that time? Why will this happen?