Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We have updated the language to the Editor Terms based on feedback from our employees and community. Learn more.
    Dismiss Notice

Forge Networking breaks when scene changes

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

  1. saifshk17

    saifshk17

    Joined:
    Dec 4, 2016
    Posts:
    487
    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.