docs.unity.cn
    Show / Hide Table of Contents

    Class DisplayInfoMap<T, S>

    Base class of all display information data contains which contain the data for the UI.

    Inheritance
    Object
    DisplayInfo<T>
    DisplayInfoMap<T, S>
    Inherited Members
    DisplayInfo<T>.target
    Namespace: UnityEngine.Industrial.Configuring.Providers
    Syntax
    [Serializable]
    public class DisplayInfoMap<T, S> : DisplayInfo<T>, ISerializationCallbackReceiver
    Type Parameters
    Name Description
    T
    S

    Properties

    contents

    Gets the contents.

    Declaration
    public IReadOnlyDictionary<S, DisplayInfoContent> contents { get; }
    Property Value
    Type Description
    IReadOnlyDictionary<S, DisplayInfoContent>

    The contents.

    Methods

    AddEntry(S, DisplayInfoContent)

    Adds a new entry to the maps.

    Declaration
    public void AddEntry(S key, DisplayInfoContent content)
    Parameters
    Type Name Description
    S key

    The key.

    DisplayInfoContent content

    The content.

    OnAfterDeserialize()

    Called when [after deserialize].

    Declaration
    public void OnAfterDeserialize()
    Implements
    ISerializationCallbackReceiver.OnAfterDeserialize()

    OnBeforeSerialize()

    Called when [before serialize].

    Declaration
    public void OnBeforeSerialize()
    Implements
    ISerializationCallbackReceiver.OnBeforeSerialize()

    RemoveEntry(S)

    Removes an entry from the map (must be present in the map).

    Declaration
    public void RemoveEntry(S key)
    Parameters
    Type Name Description
    S key

    The key.

    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX
    on 03 March 2021