-
-
Notifications
You must be signed in to change notification settings - Fork 3.5k
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
Panic on custom UiMaterial
using a texture not loaded yet
#10513
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
Milestone
Comments
djeedai
added
C-Bug
An unexpected or incorrect behavior
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
labels
Nov 11, 2023
Debugged, this is |
I’ll take a look as soon as I can. I currently have computer problems that I hope to have fixed by tomorrow. |
github-merge-queue bot
pushed a commit
that referenced
this issue
Nov 16, 2023
# Objective - Fix the panic on using Images in UiMaterials due to assets not being loaded. - Fixes #10513 ## Solution - add `let else` statement that `return`s or `continue`s instead of unwrapping, causing a panic.
Thanks @MarkusTheOrt ! |
cart
pushed a commit
that referenced
this issue
Nov 30, 2023
# Objective - Fix the panic on using Images in UiMaterials due to assets not being loaded. - Fixes #10513 ## Solution - add `let else` statement that `return`s or `continue`s instead of unwrapping, causing a panic.
rdrpenguin04
pushed a commit
to rdrpenguin04/bevy
that referenced
this issue
Jan 9, 2024
# Objective - Fix the panic on using Images in UiMaterials due to assets not being loaded. - Fixes bevyengine#10513 ## Solution - add `let else` statement that `return`s or `continue`s instead of unwrapping, causing a panic.
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Labels
A-Rendering
Drawing game state to the screen
A-UI
Graphical user interfaces, styles, layouts, and widgets
C-Bug
An unexpected or incorrect behavior
Bevy version
0.12
What you did
Follow the docs for
UiMaterial
, using an image texture.What went wrong
Panic:
Additional information
extract_ui_material_nodes
doesn't look at texture loadingqueue_ui_material_nodes
does anunwrap()
on theRenderUiMaterials<M>
RenderUiMaterials<M>
byprepare_ui_materials
once the image is actually loadedexample/ui/ui_material.rs
doesn't use an image so we don't have coverage for that case I thinkThe text was updated successfully, but these errors were encountered: