Skip to main content

PooledMenuSettings

A class in Root.Township, Alta.QuickAccessActions.

Pooled settings control on a quick access settings board, wrapping a MenuGameSetting and an optional pickup.

Constructors​

MemberWhat it is
PooledMenuSettings()Unity makes components itself; use AddComponent or spawn a prefab instead of new.

Fields​

2 private and internal fields
MemberWhat it is
private MenuGameSetting menuGameSettingThe setting control.
private Pickup pickupOptional pickup on the control, dropped on release.

Methods​

MemberWhat it is
override void Release()Force drops the pickup and returns the control to its pool.
void SetSettings(SettingsFieldAccess setting)Points the control at a setting.
1 private and internal method
MemberWhat it is
private void Awake()Marks the pickup's entity as initialised, so it works without the network.