docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PartitionedState

    A partitioned state. This is the specialization of a state that is partitioned into multiple slices.

    Inheritance
    object
    Dictionary<string, object>
    PartitionedState
    Implements
    IDictionary<string, object>
    ICollection<KeyValuePair<string, object>>
    IReadOnlyDictionary<string, object>
    IReadOnlyCollection<KeyValuePair<string, object>>
    IEnumerable<KeyValuePair<string, object>>
    IDictionary
    ICollection
    IEnumerable
    IDeserializationCallback
    ISerializable
    IPartionableState<PartitionedState>
    IPartionableState
    ISerializationCallbackReceiver
    Inherited Members
    Dictionary<string, object>.Add(string, object)
    Dictionary<string, object>.Clear()
    Dictionary<string, object>.ContainsKey(string)
    Dictionary<string, object>.ContainsValue(object)
    Dictionary<string, object>.EnsureCapacity(int)
    Dictionary<string, object>.GetEnumerator()
    Dictionary<string, object>.GetObjectData(SerializationInfo, StreamingContext)
    Dictionary<string, object>.OnDeserialization(object)
    Dictionary<string, object>.Remove(string)
    Dictionary<string, object>.Remove(string, out object)
    Dictionary<string, object>.TrimExcess()
    Dictionary<string, object>.TrimExcess(int)
    Dictionary<string, object>.TryAdd(string, object)
    Dictionary<string, object>.TryGetValue(string, out object)
    Dictionary<string, object>.Comparer
    Dictionary<string, object>.Count
    Dictionary<string, object>.this[string]
    Dictionary<string, object>.Keys
    Dictionary<string, object>.Values
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: Unity.AppUI.Redux
    Assembly: Unity.AppUI.Redux.dll
    Syntax
    [Serializable]
    public class PartitionedState : Dictionary<string, object>, IDictionary<string, object>, ICollection<KeyValuePair<string, object>>, IReadOnlyDictionary<string, object>, IReadOnlyCollection<KeyValuePair<string, object>>, IEnumerable<KeyValuePair<string, object>>, IDictionary, ICollection, IEnumerable, IDeserializationCallback, ISerializable, IPartionableState<PartitionedState>, IPartionableState, ISerializationCallbackReceiver

    Constructors

    PartitionedState()

    Default constructor.

    Declaration
    public PartitionedState()

    PartitionedState(PartitionedState)

    Copy constructor.

    Declaration
    public PartitionedState(PartitionedState partitionedState)
    Parameters
    Type Name Description
    PartitionedState partitionedState

    The partitioned state to copy.

    Methods

    Get<TSliceState>(string)

    Implementation of the method to get the slice state from the store state.

    Declaration
    public TSliceState Get<TSliceState>(string sliceName)
    Parameters
    Type Name Description
    string sliceName

    The name of the slice.

    Returns
    Type Description
    TSliceState

    The slice state.

    Type Parameters
    Name Description
    TSliceState

    The type of the slice state.

    OnAfterDeserialize()

    Implement this method to receive a callback after Unity deserializes your object.

    Declaration
    public void OnAfterDeserialize()

    OnBeforeSerialize()

    Implement this method to receive a callback before Unity serializes your object.

    Declaration
    public void OnBeforeSerialize()

    Set<TSliceState>(string, TSliceState)

    Implementation of the method to set the slice state in the store state.

    Declaration
    public PartitionedState Set<TSliceState>(string sliceName, TSliceState sliceState)
    Parameters
    Type Name Description
    string sliceName

    The name of the slice.

    TSliceState sliceState

    c The slice state.

    Returns
    Type Description
    PartitionedState

    The new store state.

    Type Parameters
    Name Description
    TSliceState

    The type of the slice state.

    Remarks

    It is important to note that this method should return a new instance of the store state to ensure immutability.

    Implements

    IDictionary<TKey, TValue>
    ICollection<T>
    IReadOnlyDictionary<TKey, TValue>
    IReadOnlyCollection<T>
    IEnumerable<T>
    IDictionary
    ICollection
    IEnumerable
    IDeserializationCallback
    ISerializable
    IPartionableState<TStoreState>
    IPartionableState
    ISerializationCallbackReceiver
    In This Article
    Back to top
    Copyright © 2025 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)