No SceneObjectProvider
Options
in Fusion
When i call runner.StartGame(GameMode gameMode, SessionInfo session), It cause the error"No SceneObjectProvider passed and the default provider component type (Fusion.NetworkSceneManagerDefault, Assembly-CSharp, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null) was not found. Fusion will not be able to attach to scene NetworkObjects."
do I must set the SceneObjectProvider when I startgame? but upon function can`t pass the SceneObjectProvider to runner
1
Best Answer
-
👍️
0
Answers
-
Hi @zybillyjay ,
Sorry for that, we've already updated our documentation page, for now on you should start Fusion from a Session like shown below:
runner.StartGame(new StartGameArgs() { GameMode = GameMode.Client, // select game mode SessionName = session.Name, // get the Session name from the SessionInfo reference SceneObjectProvider = GetSceneProvider(runner), // setup the SceneObjectProvider });
This way you have the same effect but can also setup the
SceneObjectProvider
parameter.--
Ramon Melo
Photon Fusion Team
0 -
👍️
0