docs.unity.cn
    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.

    Back to top Copyright © 2023 Unity Technologies — Terms of use
    Generated by DocFX
    on Thursday, August 10, 2023