`GhostNode`s and Nodes inside a `Display::None` subtree should not be given stack indices

Aperta
#26,281 0 commenti 0 reazioni 0 assegnatari Vedi su GitHub

I maintainer di solito rispondono entro 2 giorni

Nessuno ha ancora preso questa issue.

Valutazione

Difficoltà
4/5
Tempo stimato
1-2 giorni
Idoneità per principianti
48/100
Tipo di issue
Funzionalità
Chiarezza
Abbastanza chiara
Stato di attività
Attiva
Stack tecnologico
rust
Ambito
frontend, game-dev

Direzione di ricerca

Start by tracing how UiStack assigns stack indices to nodes and how it identifies GhostNodes and nodes under Display::None. The issue suggests excluding those ids; check related UI stack tests and add coverage showing the excluded nodes receive no stack index. Done means both node kinds are absent from UiStack while visible nodes retain their indices.

Scritto dal modello di indicizzazione a partire dal testo della issue.

Descrizione

A-UI C-Bug S-Needs-Design

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

Make it easier to filter out non-visible, non-interactive nodes.

Just saw another issue here: https://github.com/bevyengine/bevy/issues/26268 which might benefit from an easier way to filter non-interactable nodes.

What solution would you like?

Don't add their ids to UiStack.

Maybe instead of a u32 the ComputedStackIndex component could wrap a NonMaxU32 or something instead.

I suggested insertion and removal before but there were objections because it would induce an archetype move.

Lingua principale
Rust
Stelle
49.7k
Fork
5k
Merge medio
3g 19h
PR unite (30g)
134

Preparare l'ambiente

Come iniziare

  1. Leggi tutta la issue e poi la guida ai contributi del progetto.
  2. Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
  3. Fai un fork del repository e lavora su un branch.
  4. Apri una pull request che faccia riferimento al numero della issue.

Altre issue di bevyengine/bevy

Tutte le issue di bevyengine/bevy

Issue simili

Altre issue su Rust

Ricevi le nuove issue nella tua casella

Un breve riepilogo di issue GitHub adatte ai principianti.