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

Permanently disable "Add NetworkObject Prompt" (Breaks Dynamically spawned Prefabs with nested Prefabs) #2966

Open
AlexEnnerfelt opened this issue Jul 1, 2024 · 0 comments
Labels
stat:awaiting triage Status - Awaiting triage from the Netcode team. type:feedback Issue contains feedback and not specific bug or feature requests.

Comments

@AlexEnnerfelt
Copy link

AlexEnnerfelt commented Jul 1, 2024

Feedback
Users should have the option to completely disable the "Add NetworkObject" prompt.
I understand that this solves a lot of issues for users, but in some fairly common cases this will be infuriating and even break the project.

Scenario: Nested Prefabs

  • You have a prefab "Parent" with NetworkObject attached
  • You have a prefab "Child" with NetworkBehaviour attached and NO NetworkObject
  • You add "Child" to "Parent" prefab

Every time you select "Child" you will get the "Add NetworkObject" prompt, and there is no way to prevent it from continuously prompting this. If you accidentally click "Yes", or worse "Yes (Do not show me this message again on this machine)" a NetworkObject will be added to the "Child".

If "Parent" is a dynamically spawned prefab, it will not spawn because nested NetworkObjects is NOT supported for dynamically spawned objects.

If you accidentally click "Yes (Do not show me this message again on this machine)" at any point on your machine. This will break any project you have with nested prefabs.

I had the experience of having to go through all of my prefabs and remove the NetworkObject for the nested prefabs and also deal with the prompt appearing multiple times per prefab upon removal. For large projects (like mine) this can take hours.

Suggested Changes
Add a setting to Project Settings (it should be project scoped since some projects might not make use of nested prefabs that are dynamically spawned) that completely disables the prompt. Perhaps even add a checkbox to the prompt like a "Do not show this again"

@AlexEnnerfelt AlexEnnerfelt added stat:awaiting triage Status - Awaiting triage from the Netcode team. type:feedback Issue contains feedback and not specific bug or feature requests. labels Jul 1, 2024
@AlexEnnerfelt AlexEnnerfelt changed the title "Add NetworkObject prompt" : permanently disabled setting (Nested Prefabs Issue) 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:feedback Issue contains feedback and not specific bug or feature requests.
1 participant