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

Scene prefab #10949

Open
djeedai opened this issue Dec 12, 2023 · 0 comments
Open

Scene prefab #10949

djeedai opened this issue Dec 12, 2023 · 0 comments
Labels
A-ECS Entities, components, systems, and events A-Scenes Serialized ECS data stored on the disk C-Enhancement A new feature C-Usability A simple quality-of-life change that makes Bevy easier to use X-Controversial There is active debate or serious implications around merging this PR

Comments

@djeedai
Copy link
Contributor

djeedai commented Dec 12, 2023

What problem does this solve or what need does it fill?

Ability to use Scene as a prefab, in the sense given by Unity: one-way irreversible spawning of a group of entities and components.

What solution would you like?

No SceneBundle, no SceneInstance, no SceenSpawner. Just a way to spawn the content of a scene anywhere (including at the World root, without a common parent entity, so ability to spawn multiple top-level entities as a flat list) and forget forever that this ever was a Scene.

What alternative(s) have you considered?

  • SceneBundle. This has all the mentioned extra "features" which are just getting in the way most of the time for typical "use a prefab to spawn multiple things" usage. This is also missing some features like spawning without a single comment parent entity.
  • Spawning function. This only works if you hardcode the collection of entities and components, and is hard to work with (spawning via code is tedious).

Additional context

Possibly related to #3877, #10907

@djeedai djeedai added C-Enhancement A new feature A-ECS Entities, components, systems, and events C-Usability A simple quality-of-life change that makes Bevy easier to use A-Scenes Serialized ECS data stored on the disk labels Dec 12, 2023
@alice-i-cecile alice-i-cecile added the X-Controversial There is active debate or serious implications around merging this PR label Dec 12, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
A-ECS Entities, components, systems, and events A-Scenes Serialized ECS data stored on the disk C-Enhancement A new feature C-Usability A simple quality-of-life change that makes Bevy easier to use X-Controversial There is active debate or serious implications around merging this PR
Projects
None yet
Development

No branches or pull requests

2 participants