Class RegisterBindingAttribute
Creates a table association between the Type specified and the runtime field of an IComponentData, accessible via the BindingRegistry
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 non-compatible types will be silently ignored if this attribute is applied to it.
Namespace: Unity.Entities
Syntax
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
public class RegisterBindingAttribute : Attribute, _Attribute
Constructors
Name | Description |
---|---|
RegisterBindingAttribute(Type, String) | |
RegisterBindingAttribute(Type, String, Boolean) |
Properties
Name | Description |
---|---|
ComponentField | |
ComponentType |