-
-
Notifications
You must be signed in to change notification settings - Fork 3.6k
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
Children are invisible unless parent has Visibility and ComputedInvisibility #5334
Comments
Indeed, it seems that |
I think for now this is expected behavior. We only propagate visibility down hierarchies that have visibility/computedvisibility chains. The Transform system has the same behavior. The naive solution to the problem (walk the whole unfiltered entity tree and check each entity for visibility component existence) doesn't feel particularly good to me, as checking each entity in World would be pretty expensive for very large worlds. Maybe we add a convenience VisibilityBundle to help make it easy to build these chains. We could also consider adding some sort of VisibilityRoot / TransformRoot marker to cheaply identify arbitrarily nested things with inheritance behaviors. But that also requires manual action and increases complexity of the system. Short term, I think we should fix the examples, update the migration guide to call out this case, and add a VisibilityBundle. |
…5335) # Objective Gltfs, and a few examples were broken by #5310. Fix em. Closes #5334 ## Solution Add `VisibilityBundle` as described here: #5334 (comment) and sprinkle it around where needed.
…evyengine#5335) # Objective Gltfs, and a few examples were broken by bevyengine#5310. Fix em. Closes bevyengine#5334 ## Solution Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
…evyengine#5335) # Objective Gltfs, and a few examples were broken by bevyengine#5310. Fix em. Closes bevyengine#5334 ## Solution Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
…evyengine#5335) # Objective Gltfs, and a few examples were broken by bevyengine#5310. Fix em. Closes bevyengine#5334 ## Solution Add `VisibilityBundle` as described here: bevyengine#5334 (comment) and sprinkle it around where needed.
…5335) # Objective Gltfs, and a few examples were broken by #5310. Fix em. Closes #5334 ## Solution Add `VisibilityBundle` as described here: bevyengine/bevy#5334 (comment) and sprinkle it around where needed.
Bevy version
main, also
c8aa047 (commit prior to #5310)
What you did
What went wrong
Prior to #5310, the above code worked as-is and displayed the bevy logo.
After #5310, the logo is not displayed unless the two commented-out lines are uncommented.
Additional information
If this is expected behavior, we should mention that in the migration guide and close this.
This may have implications for other bits of documentation / examples.
The text was updated successfully, but these errors were encountered: