Skip to content

UIScrollView.IsChildVisible(IUIComponent, Vector2, Vector2) Method

Definition

Namespace: Brine2D.UI

Checks whether a child \(with its Position already translated to screen space\) overlaps the visible clip region. Must be called after the screen-space position has been applied.

C#
private static bool IsChildVisible(Brine2D.UI.IUIComponent child, System.Numerics.Vector2 viewPosition, System.Numerics.Vector2 viewSize);

Parameters

child IUIComponent

viewPosition System.Numerics.Vector2

viewSize System.Numerics.Vector2

Returns

System.Boolean