Search Unity

Instantiating in their own scene?

Discussion in 'Scripting' started by williampire, Aug 18, 2019.

  1. williampire

    williampire

    Joined:
    Jul 24, 2018
    Posts:
    9
    Currently have the dilemma like this:

    I have 2 scenes, one for the client, and one for the server.

    I have a client and a server scene. There is a empty gameobject in each of these scenes, with a script attached to it. The script instantiates a gameobject, although the issue is when these scenes are loaded as additives, all gameobjects are spawned in the same scene, instead of being isolated in their own (Client scene, Server Scene).

    I tried instantiating with a parent in each of the scenes, but that did not help

    Is there a trick to this?