Class BindingRegistry
Builds a static registry of bindings between a runtime field with an authoring field. Multiple different runtime fields can be associated with a same authoring field. Only primitive types of int, bool, and float, in addition to Unity.Mathematics variants of these primitives (e.g. int2, float4) will be added to the BindingRegistry. Other types will be silently ignored.
Namespace: Unity.Entities
Assembly: Unity.Entities.Hybrid.dll
Syntax
[InitializeOnLoad]
public static class BindingRegistry
Methods
Name | Description |
---|---|
GetBinding(Type, string) | Return authoring binding for a given runtime type and field name. |
GetFieldOffset(Type, string) | Gets the runtime field offset in bytes |
GetFieldSize(Type, string) | Gets the runtime field size in bytes. |
GetFields(Type) | Gets all registered fields of a runtime type. |
GetReverseBindings(Type) | Returns all associated runtime bindings for a given authoring type. |
HasBindings(Type) | Checks if a runtime type has any authoring bindings. |
Register(Type, string, Type, string) | Register binding of a runtime field with an authoring field |