RedDot System
RedDot is a static facade for notification badges. Keys separated by / form a hierarchy, and child counts are aggregated into their parents.
API
RedDot.ClearAll() resets every key to zero, which is useful during scene transitions or a new game session.
Hierarchy
RedDotBadge
Attach RedDotBadge to a UI object to toggle a dot object and optional count label automatically.
The component subscribes in OnEnable and unsubscribes in OnDisable.
Direct subscription
RedDot resets its static state on SubsystemRegistration, so it also works when Enter Play Mode is configured without Domain Reload.