Class RegisterBindingAttribute
Creates a table association between the Type specified and the runtime field of an IComponentData, accessible via the BindingRegistry
Namespace: Unity.Entities
Assembly: solution.dll
Syntax
[AttributeUsage(AttributeTargets.Field, Inherited = false, AllowMultiple = true)]
public class RegisterBindingAttribute : Attribute
Remarks
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.
Constructors
Name | Description |
---|---|
RegisterBindingAttribute(string, Type, string) | Establish a binding between the tagged authoring type and a runtime component field. |
RegisterBindingAttribute(Type, string) | Establish a binding between the tagged authoring type and a runtime component field. |
RegisterBindingAttribute(Type, string, bool) | Establish a binding between the tagged authoring type and a runtime component field. |
Properties
Name | Description |
---|---|
AuthoringField | Name of the nested authoring field. The base field if null or empty. |
ComponentField | The name of the target component field |
ComponentType | The target component type |