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: Unity.Entities.Hybrid.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 |
---|---|
Register |
Establish a binding between the tagged authoring type and a runtime component field. |
Register |
Establish a binding between the tagged authoring type and a runtime component field. |
Register |
Establish a binding between the tagged authoring type and a runtime component field. |
Properties
Name | Description |
---|---|
Authoring |
Name of the nested authoring field. The base field if null or empty. |
Component |
The name of the target component field |
Component |
The target component type |