S&box Wiki

Sandbox.UI.Length.Fraction

Syntax

static Sandbox.UI.Length? Fraction( float fraction )

Description

Create a length in percents

Arguments

float fraction
The fraction of a percent (0 = 0%, 1 = 100%)

Returns

A new length