S&box Wiki

Sandbox.UI.Length.GetPixels

Syntax

float GetPixels( float dimension, float contentSize )

Description

Get the pixel size but also evaluate content size to support use Start, End, Center

Arguments

float dimension
float contentSize

Returns

float