docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class RegisterBindingAttribute

    Creates a table association between the Type specified and the runtime field of an IComponentData, accessible via the BindingRegistry

    Inheritance
    object
    Attribute
    RegisterBindingAttribute
    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

    In This Article
    • Constructors
    • Properties
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)