S&box Wiki

Sandbox.UI.Panel.ScreenPositionToPanelDelta

Syntax

Description

Convert a point from the screen to a point representing a delta on this panel where the top left is [0,0] and the bottom right is [1,1]

Arguments

Vector2 pos

Returns