Class PropertyBag | Properties | 1.1.1-preview
docs.unity3d.com
    Show / Hide Table of Contents

    Class PropertyBag

    Static registration for property bags.

    Inheritance
    Object
    PropertyBag
    Namespace: Unity.Properties
    Syntax
    public static class PropertyBag

    Methods

    Register<TContainer>(ContainerPropertyBag<TContainer>)

    Registers a strongly typed ContainerPropertyBag<TContainer> for a type.

    Declaration
    public static void Register<TContainer>(ContainerPropertyBag<TContainer> propertyBag)
    Parameters
    Type Name Description
    ContainerPropertyBag<TContainer> propertyBag

    The ContainerPropertyBag<TContainer> to register.

    Type Parameters
    Name Description
    TContainer

    The container type this property bag describes.

    RegisterDictionary<TContainer, TDictionary, TKey, TValue>()

    Registers an internal dictionary property bag for the given types.

    Declaration
    public static void RegisterDictionary<TContainer, TDictionary, TKey, TValue>()
        where TDictionary : IDictionary<TKey, TValue>
    Type Parameters
    Name Description
    TContainer

    The container type to register.

    TDictionary

    The generic dictionary type to register.

    TKey

    The key type to register.

    TValue

    The value type to register.

    RegisterList<TContainer, TList, TElement>()

    Registers an internal list property bag for the given types.

    Declaration
    public static void RegisterList<TContainer, TList, TElement>()
        where TList : IList<TElement>
    Type Parameters
    Name Description
    TContainer

    The container type to register.

    TList

    The generic list type to register.

    TElement

    The element type to register.

    RegisterSet<TContainer, TSet, TElement>()

    Registers an internal list property bag for the given types.

    Declaration
    public static void RegisterSet<TContainer, TSet, TElement>()
        where TSet : ISet<TElement>
    Type Parameters
    Name Description
    TContainer

    The container type to register.

    TSet

    The generic set type to register.

    TElement

    The element type to register.

    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023