Used with ecs_unit_init().
More...
#include <meta.h>
Used with ecs_unit_init().
Definition at line 1085 of file meta.h.
◆ base
Base unit, e.g.
"meters" (optional).
Definition at line 1096 of file meta.h.
◆ entity
Existing entity to associate with unit (optional).
Definition at line 1087 of file meta.h.
◆ over
Over unit, e.g.
"per second" (optional).
Definition at line 1099 of file meta.h.
◆ prefix
Prefix indicating order of magnitude relative to the derived unit.
If set together with "translation", the values must match. If translation is not set, setting prefix will auto-populate it. Additionally, setting the prefix will enforce that the symbol (if set) is consistent with the prefix symbol + symbol of the derived unit. If the symbol is not set, it will be auto populated.
Definition at line 1110 of file meta.h.
◆ quantity
Unit quantity, e.g.
distance, percentage, weight. (optional).
Definition at line 1093 of file meta.h.
◆ symbol
const char* ecs_unit_desc_t::symbol |
Unit symbol, e.g.
"m", "%", "g". (optional).
Definition at line 1090 of file meta.h.
◆ translation
Translation to apply to derived unit (optional).
Definition at line 1102 of file meta.h.
The documentation for this struct was generated from the following file: