-
-
Notifications
You must be signed in to change notification settings - Fork 3.7k
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
Mark valid scenes with component #9117
Conversation
You need to insert it to scene entity. And remove when scene becomes despawned / re-loaded. |
marking as controversial until the discussion in the issue is resolved |
@@ -28,6 +29,9 @@ impl InstanceId { | |||
} | |||
} | |||
|
|||
#[derive(Component)] | |||
pub struct ValidScene; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This needs doc strings.
Closed in favor of #9115. Thanks for proposing and discussing this: it really helped us find a better solution. |
# Objective Closes bevyengine#9115, replaces bevyengine#9117. ## Solution Emit event when scene is ready. --- ## Changelog ### Added - `SceneInstanceReady` event when scene becomes ready.
Objective
Fixes #9115
Solution
Added a ValidScene Component, as the issue suggests.