Can't delay setting player position
I set the starting coordinates of the Player to the floor in the Spawn function, using the asynchronous method,
public async void SetPlayerPosition()
{
//Do something
await Task.Delay(100);
// set player position
}
It does not work well. if I delete await Task.Delay(100), it works well.
0
Best Answer
-
You should not use async or coroutines for gameplay code with Fusion. Use FixedUpdateNetwork and TickTimer instead.
0
Answers
-
You should not use async or coroutines for gameplay code with Fusion. Use FixedUpdateNetwork and TickTimer instead.
0