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
Hi, I've been trying to build a custom inspector window. I've managed to add it & render a basic inspector.
But there doesn't seems to be an easy way of displaying properties as such.
I'm new to Bevy & Rust as a whole so I might be missing something obvious.
Basically, what I'm trying to do is to add a bunch of UI fields to be rendered similar alike component view does it.
But instead of using types directly - using values.
For example, how to output a position (Vec3) or some other float value?
Like:
X [value] Y [value] Z [value]
For the labels -> ui.label. No idea how to approach the actual value of the data.
Is there an example maybe somewhere or is it just not there yet?
Technically, I could build it from widgets from scratch, but maybe there's a better way to handle this?
Edit: Closest thing I've found so far is Label + DragValue + horizontal layout widget component combo.
But that obviously requires building some kind of basic library of widgets to display per data type for future re-use.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, I've been trying to build a custom inspector window. I've managed to add it & render a basic inspector.
But there doesn't seems to be an easy way of displaying properties as such.
I'm new to Bevy & Rust as a whole so I might be missing something obvious.
Basically, what I'm trying to do is to add a bunch of UI fields to be rendered similar alike component view does it.
But instead of using types directly - using values.
For example, how to output a position (Vec3) or some other float value?
Like:
X [value] Y [value] Z [value]
For the labels -> ui.label. No idea how to approach the actual value of the data.
Is there an example maybe somewhere or is it just not there yet?
Technically, I could build it from widgets from scratch, but maybe there's a better way to handle this?
Edit: Closest thing I've found so far is Label + DragValue + horizontal layout widget component combo.
But that obviously requires building some kind of basic library of widgets to display per data type for future re-use.
Beta Was this translation helpful? Give feedback.
All reactions