struct
SushiEngine::Simulation::UIElementParameters
Holds the authorable parameters of a UI entity: a UGUI RectTransform plus paint.
- Declared in
engine/world/simulation/include/SushiEngine/simulation/render_parameters.hpp
See also
engine/world/simulation/include/DRAWING.md
Properties
kind | |
anchor_min_x | Left anchor, fraction of parent width. |
anchor_min_y | Bottom anchor, fraction of parent height. |
anchor_max_x | Right anchor, fraction of parent width. |
anchor_max_y | Top anchor, fraction of parent height. |
pivot_x | Element pivot X, normalized. |
pivot_y | Element pivot Y, normalized. |
position_x | Anchored position X, pixels. |
position_y | Anchored position Y, pixels. |
size_x | Width added to the anchored span, pixels. |
size_y | Height added to the anchored span, pixels. |
color | Fill/text colour. |
alpha | Opacity in [0,1]. |
font_size | Text/label point size. |
text | Inline label text (Text/Button). |

