[Edit]I have a trouble while using photon fusion in Unity Engine.

LouisKIM
LouisKIM
edited September 2022 in Fusion

Hello? I received a recommend to use Photon Fusion last question.


[Solved]

*********************************************************************

  • I solved this question but, I will left this for other people to know how to do.
  • I add a new question.

*********************************************************************

if(PhotonNetwork.IsConnected)
{
    Debug.Log("Connected');
}

This is a Photon Pun function. I want to do this function with Photon Fusion.


I tried follow this document and write like this:

SimulationBehaviour simulation;

if(simulation.Runner.IsConnectedToServer)
{
    Debug.Log("Is Connect");
}

but, it occur error.

How can I do? I think it is a very bagic but, I cannot find anykind of informations in anywhere...

*****************************************************************************

++) [New Question]

public NetworkRunner runner;
if (!runner.IsConnectedToServer)
{
     Debug.Log("Fail");
     runner.Disconnect

I solved problem with above code. However, I have fall in another problem. I try to connect with server. But, I have no idea to write a right code.

 PhotonNetwork.ConnectUsingSettings();

How to convert this code at Photon Fusion?

Answers