Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
AlexEnnerfelt opened this issue Jul 1, 2024 · 0 comments
Open
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:feature New feature, request or improvement

Comments

@AlexEnnerfelt
Copy link

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.

@AlexEnnerfelt AlexEnnerfelt added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:feature New feature, request or improvement labels Jul 1, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:feature New feature, request or improvement
1 participant