LocalPersistentContext<T>

Helper class that provides a local copy of a GlobalPersistentContext<T>. When the local value is changed, it also changed the global value, but the global value does not change the local value.

namespace Sirenix.OdinInspector.Editor
{
public sealed class LocalPersistentContext<T>
}

Requirements

Namespace: Sirenix.OdinInspector.Editor
Assembly: Sirenix.OdinInspector
Version: 2.0.0.0

Static Methods

Return Type Definition Description
LocalPersistentContext<T> Create(GlobalPersistentContext<T>) Creates a local context object for the provided global context.

Properties

Return Type Definition Description
T Value The value of the context. Changing this value, also changes the global context value, but the global value does not change the local value.

Methods

Return Type Definition Description
void UpdateLocalValue() Updates the local value to the current global value.