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
{{ message }}
This repository has been archived by the owner on Feb 18, 2024. It is now read-only.
Is there an easy way to change the texture of the nine patch?
I'm trying to make a UI button which has nine patch states for normal, hover & pressed
Here are the things I've tried:
Changing the nine_patch_data.texture in a system but this doesn't appear to work
Using despawn(nine_patch_bundle) but this doesn't remove the child objects
Using despawn_recursive, but then spawning a new NinePatchBundle under the same parent (a ButtonBundle) doesn't result in it getting drawn, not sure why?
I'm also finding after (3.) is run a number of times, my FPS grinds quickly down to a few frames a second.
Do you have any tips on debugging / improving the performance of the UI? Perhaps I can cache the 3 nine patches I need for the button in some way? Still very new to Bevy!
Is there an easy way to change the texture of the nine patch?
I'm trying to make a UI button which has nine patch states for normal, hover & pressed
Here are the things I've tried:
nine_patch_data.texture
in a system but this doesn't appear to workdespawn(nine_patch_bundle)
but this doesn't remove the child objectsdespawn_recursive
, but then spawning a new NinePatchBundle under the same parent (a ButtonBundle) doesn't result in it getting drawn, not sure why?I'm also finding after (3.) is run a number of times, my FPS grinds quickly down to a few frames a second.
Do you have any tips on debugging / improving the performance of the UI? Perhaps I can cache the 3 nine patches I need for the button in some way? Still very new to Bevy!
Great tool, very excited to be trying it out 😄
Here's what I'm toying with:
The text was updated successfully, but these errors were encountered: