Changing scene with setactiveScene giving me warnings

Options

When I used the function, somehow the network object from the previous scene gets instantiated and destroyed immediately giving me the warning "This Object has been spawned and despawned in the same tick". Is this something to worry about, and is there any way to get rid of it?

Comments

  • Hi,

    As it says, a NetworkObject was spawned and despawned within the same tick, this could be caused by a custom logic spawning something before the scene loading starts, since when you change scenes, every NO on the previous scene get despawned.

    You don't have to worry about if the desired objects are alive when you change scenes, since it's a warning, it's not something critical, but it's unlikely to be intended.

    -----

    Isaac Augusto

    Photon Fusion Team