Skip to content

Enum FieldKind

Namespace: Apogee.Reflection
Assembly: Apogee.Reflection.dll

How a component field is stored.

public enum FieldKind : byte

Extension Methods

FieldKinds.AlignmentOf(FieldKind), FieldKinds.SizeOf(FieldKind)

Fields

AssetRef = 15

A uint handle that names an asset (a model, a texture…): four bytes in memory, like , which is also what scripts see. says what kind of asset. Scene files and the editor turn the handle into an AssetRef (path and UID). Appended after so that the byte values of the kinds above stay what they were.

Bool = 0

Double3 = 12

Three doubles: a world position. Scripts see it as a vector (narrowed to float; see the math chapter of the manual).

Entity = 14

Float32 = 9

Float64 = 10

Int16 = 3

Int32 = 5

Int64 = 7

Int8 = 1

Quaternion = 13

Four floats: a rotation, the Quat of scripts.

UInt16 = 4

UInt32 = 6

UInt64 = 8

UInt8 = 2

Vector3 = 11

Three floats: a vector in scripts.