docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Constructor RegisterBindingAttribute

    RegisterBindingAttribute(Type, string)

    Establish a binding between the tagged authoring type and a runtime component field.

    Declaration
    public RegisterBindingAttribute(Type runtimeComponent, string runtimeField)
    Parameters
    Type Name Description
    Type runtimeComponent

    The target component type

    string runtimeField

    The target component field

    RegisterBindingAttribute(Type, string, bool)

    Establish a binding between the tagged authoring type and a runtime component field.

    Declaration
    [Obsolete("You can now use base RegisterBindingAttribute(Type, string) to register vector based properties. (RemovedAfter 2023-02-14)")]
    public RegisterBindingAttribute(Type runtimeComponent, string runtimeField, bool generated)
    Parameters
    Type Name Description
    Type runtimeComponent

    The target component type

    string runtimeField

    The target component field

    bool generated

    If true, the type is auto-generated

    RegisterBindingAttribute(string, Type, string)

    Establish a binding between the tagged authoring type and a runtime component field.

    Declaration
    public RegisterBindingAttribute(string authoringField, Type runtimeComponent, string runtimeField)
    Parameters
    Type Name Description
    string authoringField

    The nested authoring field. Uses tagged field if null or empty.

    Type runtimeComponent

    The target component type

    string runtimeField

    The target component field

    In This Article
    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)