UICanvas.AutoResizeToWindow Property
Definition
Namespace: Brine2D.UI
When true, subscribes to WindowResizedEvent on the IEventBus supplied via the UICanvas\(IInputContext, IEventBus\) constructor so ScreenSize tracks window resizes automatically. Defaults to false — resize tracking is an explicit opt-in, not an implicit side effect of an event bus being available. Setting this to false after having been true unsubscribes. No-op \(does not throw\) if no IEventBus was supplied at construction — ScreenSize must then be updated manually.