Search Unity

Forge Networking breaks when scene changes

Discussion in 'Scripting' started by saifshk17, Feb 14, 2020.

  1. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    259
    Hello,

    I am using Forge Networking to establish connection between two devices. Both devices come to main scene and establish communication with IP address, but when one device goes to next scene, I want the second device also to follow it with RPC (which i have implemented). Unfortunately the connection breaks when going to a different scene, why?
     
  2. mustafatat

    mustafatat

    Joined:
    Oct 1, 2017
    Posts:
    6
    Uploading a new scene destroys everything on the other scene. You can use DontDestroyOnLoad for objects that you do not want deleted. Hopefully it benefits your business.
     
    Joe-Censored likes this.
unityunity