How to make a loading bar screen in unity using photon fusion? using asyncoperation.
IEnumerator LoadLevelAsync(NetworkRunner runner, PlayerRef player)
AsyncOperation operation = runner.SetActiveScene(2);
float progressValue = Mathf.Clamp01(operation.progress / 0.9f);
loadimagefill.fillAmount = progressValue;
percentage.text = Mathf.Round(progressValue * 100f) + "%";
yield return new WaitForEndOfFrame();
this is my code...
when I'm adding (AsyncOperation operation = runner.SetActiveScene(2);) its shows like cannot convert void to unity engine async operation.
Me too need this structure0