API Reference › Menu.Components
MenuValueComponent`1
ClassNamespace: SwiftlyS2.Shared.Menu.Components · Assembly: SwiftlyS2.CS2.dll
public abstract class MenuValueComponent<TValue> : TextComponent, IMenuComponentImplements IMenuComponent
The shared behaviour of a component that holds a value.
The value lives in IMenuSession state, so one instance of the component serves every player without their values touching, and the value is gone once the menu closes. Use OnChanged to persist it and DefaultValueProvider to seed it back.
View source