bevyengine / bevyengine/bevy

Logical Visibility

Open
#10,959 0 comments 0 reactions 0 assignees View on GitHub
A-Rendering C-Feature
Dominant language
Rust
Stars
48.2k
Forks
4.8k
Avg merge
3d 22h
Merged PRs (30d)
161

Description

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

There is currently no good way for a third party crate to set the visibility of a sprite without taking over the visibility field. For example, if I maintain an opacity field, and I want to set visibility to `Invisible` to avoid some interactions when opacity is 0.0, I would have to overwrite the user defined visibility field, which would make it difficult for the user to set the visibility status for the entity.

## What solution would you like?

Add another visibility field, reset every frame to true, that can only be set to false externally.

## What alternative(s) have you considered?

Manage external states for visibility, but since VisibilityBundle is idiomatic I don't think that's a good idea.

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.