Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Add "Destroy With Scene" checkbox in inspector for NetworkObject #2967

Copy link
Copy link
Open
@AlexEnnerfelt

Description

@AlexEnnerfelt
Issue body actions

Is your feature request related to a problem? Please describe.

I have a game where I load a Logic scene where I keep the Player objects and GameMode Managers, then I load an Environment scene where I spawn items like loot drops, enemies etc.

Then when I unload the environment all of the spawned enemies and other environment related objects are moved to my Logic scene because it is the Active scene, but I would like for them to be destroyed with the scene they are a part of.

Describe the solution you'd like
It would be useful to be able to set "destroyWithScene" from the inspector and saved to the prefab.

Describe alternatives you've considered
My current solution to this is to set "destroyWithScene = true" from my custom spawn manager, but there might be cases where I do not want this behaviour.

Metadata

Metadata

Assignees

No one assigned

    Labels

    priority:mediumThis issue has medium priority and may take some time to be resolvedThis issue has medium priority and may take some time to be resolvedstat:importedStatus - Issue is tracked internally at UnityStatus - Issue is tracked internally at Unitytype:featureNew feature, request or improvementNew feature, request or improvement

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions

      Morty Proxy This is a proxified and sanitized view of the page, visit original site.