docs.unity.cn
    Show / Hide Table of Contents

    Class BindingRegistry

    Builds a static registry of bindings between a runtime field with an authoring field. Multiple different runtime fields can be associated with a same authoring field. 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 types will be silently ignored.

    Inheritance
    Object
    BindingRegistry
    Namespace: Unity.Entities
    Syntax
    [InitializeOnLoad]
    public static class BindingRegistry

    Methods

    Name Description
    GetBinding(Type, String)

    Return authoring binding for a given runtime type and field name.

    GetFieldOffset(Type, String)

    Gets the runtime field offset in bytes

    GetFields(Type)

    Gets all registered fields of a runtime type.

    GetFieldSize(Type, String)

    Gets the runtime field size in bytes.

    GetReverseBindings(Type)

    Returns all associated runtime bindings for a given authoring type.

    HasBindings(Type)

    Checks if a runtime type has any authoring bindings.

    Register(Type, String, Type, String)

    Register binding of a runtime field with an authoring field

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