You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I tried using a bevy handle for the image src however I get the error
error[E0277]: the trait bound `Variant: From<bevy::prelude::Handle<bevy::prelude::Image>>` is not satisfied
--> client/src/states/game/setup.rs:45:22
|
45 | <img src=crosshair_handle/>
| ^^^^^^^^^^^^^^^^ the trait `From<bevy::prelude::Handle<bevy::prelude::Image>>` is not implemented for `Variant`
|
= help: the following other types implement trait `From<T>`:
<Variant as From<&&str>>
<Variant as From<&str>>
<Variant as From<BtnMode>>
<Variant as From<ImgMode>>
<Variant as From<JustifyContent>>
<Variant as From<PropertyValue>>
<Variant as From<Val>>
<Variant as From<belly::belly_core::eml::Params>>
and 7 others
= note: required for `bevy::prelude::Handle<bevy::prelude::Image>` to implement `Into<Variant>`
Based off of the example image-sources.rs i don't see anything im doing wrong. It's worth noting im on git instead of release so i realize that may be the issue. Im on git due to the alsa in the Cargo.toml not fixed in a release yet afaik. Any help would be appreciated. (Im aware i can just pass in a string and itll load the image however it seems to be inconsistent in my use case)
The text was updated successfully, but these errors were encountered:
I tried using a bevy handle for the image src however I get the error
this is the code:
Based off of the example image-sources.rs i don't see anything im doing wrong. It's worth noting im on git instead of release so i realize that may be the issue. Im on git due to the alsa in the Cargo.toml not fixed in a release yet afaik. Any help would be appreciated. (Im aware i can just pass in a string and itll load the image however it seems to be inconsistent in my use case)
The text was updated successfully, but these errors were encountered: