Leaving Room is not removing objects!

Options
carmine
carmine ✭✭
I have the latest version of PUN and all of a sudden, when I leave a room it doesn't clear out the objects.

- I have a scene.
- I create 5 objects
- I call leave room
- The objects are still there!
- This happens in online and offline modes.

Please advise.

-Carmine

Comments

  • Tobias
    Options
    This only happens for objects created with InstantiateSceneObjects(), right?
    I will find a fix and update PUN asap.

    This should be related:
    viewtopic.php?f=17&t=5538

    Actually, this is kind of not a bug. Literally, the objects loaded with the scene and those created with InstantiateSceneObject() are more the same than ever. Before, 1.50, you couldn't network destroy the GOs loaded with the scene. Now you can but for the same reason, the instantiated scene objects will linger in the level (as if loaded).
    I will try to make up a solution that does what you'd expect...