docs.unity3d.com
Search Results for

    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
    Assembly: Unity.Entities.Hybrid.dll
    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

    GetFieldSize(Type, string)

    Gets the runtime field size in bytes.

    GetFields(Type)

    Gets all registered fields of a runtime type.

    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

    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)