KROYSDOCS
HomeWhat's newv0.1.0
C/C++ SDK / C ABI · Core (all targets) / KroysFieldDesc

KroysFieldDesc

One reflected field of a plugin component type (inspector, scene and prefab files, copy, undo).

Kindstruct
Headerkroys/kroys_plugin.h
Members10
DECLARATION

Declaration

Declared in kroys/kroys_plugin.h.

kroys_plugin.h
typedef struct KroysFieldDesc { ... } KroysFieldDesc;
REFERENCE

Members

Fields
#const char* name;

letters, digits, '_'; starts with a letter

field
#const char* displayName;

null: name

field
#const char* tooltip;

Inspector tooltip; null: none.

field
#uint32_t type;

KroysValueType: BOOL..GUID

field
#uint32_t flags;

KROYS_FIELD_*

field
#KroysValue defaultValue;

type NONE: zero / empty

field
#float minimum;

Inspector range minimum (with hasRange).

field
#float maximum;

Inspector range maximum (with hasRange).

field
#int32_t hasRange;

Nonzero: the inspector shows a slider from minimum to maximum.

field
#uint32_t reserved;

Padding reserved for later use; leave it 0.

field
Members
const char* name;
const char* displayName;
const char* tooltip;
uint32_t type;
uint32_t flags;
KroysValue defaultValue;
float minimum;
float maximum;
int32_t hasRange;
uint32_t reserved;

KroysEngine 0.1.0 documentation, built from the engine repository by Tools/BuildDocsSite.py.