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
Not sure what type of asset ends up getting loaded in this case, but Res<Assets<TextMeshFont>>::get yields None without #mesh, so of course nothing would be displayed.
This is the result of me misreading the docs/examples but I feel like something should blow up or yell at me for this.
The text was updated successfully, but these errors were encountered:
Alternatively, dropping the requirement for #mesh could be nice. Is that there just to avoid conflicts with other plugins that might expose ttf loaders?
The #mesh requirement is not ideal, but it was added as a fix for #9 and #3. The bevy asset loader does not retain original-file-bytes so multiple instances (bevy_text_mesh and other 2d instances) can not be used simultaneously.
I don't see easy solutions here. Probably hard to implement a warning for ::get as well (in this crate). Maybe having bevy asset loader to retain the bytes would be one option.
Not sure what type of asset ends up getting loaded in this case, but
Res<Assets<TextMeshFont>>::get
yieldsNone
without#mesh
, so of course nothing would be displayed.This is the result of me misreading the docs/examples but I feel like something should blow up or yell at me for this.
The text was updated successfully, but these errors were encountered: