Skip to content

IUIWorldComponent.ScreenOffset Property

Definition

Namespace: Brine2D.UI

Pixel offset applied after world-to-screen projection. Use to nudge the component relative to its anchor — e.g. new Vector2(-Size.X / 2, -40) to centre it 40 px above the world point.

C#
System.Numerics.Vector2 ScreenOffset { get; set; }

Property Value

System.Numerics.Vector2