docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Method Register

    Register(Type, string, Type, string)

    Register binding of a runtime field with an authoring field

    Declaration
    public static void Register(Type runtimeComponent, string runtimeField, Type authoringComponent, string authoringField)
    Parameters
    Type Name Description
    Type runtimeComponent

    Type of the runtime component. Must implement IComponentData.

    string runtimeField

    Name of the runtime field.

    Type authoringComponent

    Type of the authoring component. Must derive from UnityEngine.Component.

    string authoringField

    Name of the authoring field.

    Exceptions
    Type Condition
    InvalidOperationException

    Thrown if registering the same runtime field more than once.

    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)