RegionPanelElement
Overview
Abstract base class for all widgets inside the Region Panel. Subscribes to the focused region and to a global updateRegionUI signal.
Serialized
- RegionVariable
currentRegion - RegionEvent
currentRegionChanged - VoidEvent
updateRegionUI
Lifecycle
- Awake() — registers to both events.
- OnSelectedRegionChanged() — if the region exists, calls
UpdateUI(); otherwiseDisableUI(). - OnDestroy() — unregisters both handlers.
Derive from this and implement UpdateUI(); optionally override DisableUI().