Skip to content

UICanvas(IInputContext, IEventBus) Constructor

Definition

Namespace: Brine2D.UI

Creates a canvas that can auto-track WindowResizedEvent on eventBus when AutoResizeToWindow is set to true. The event bus is captured but no subscription is created until AutoResizeToWindow is explicitly opted into — presence of an event bus alone no longer implies automatic resize tracking.

C#
public UICanvas(Brine2D.Input.IInputContext input, Brine2D.Events.IEventBus eventBus);

Parameters

input IInputContext

eventBus IEventBus