s&
About
The Project
info
About s&box
map
Roadmap
monitoring
Metrics
Engine startup and usage numbers
Updates
newspaper
Latest News
published_with_changes
Changes
Release-by-release changelog
Games
Browse Games
Discover Games
gamejams
live now
Game Jam III
Ends
Fri 25 Sep
Theme
One More Round
The jam is running. Build something, or play the entries.
£
50,000
prizepool
View the jam
Workshop
Playable
sports_esports
Games
Standalone games and gamemodes
Assets
landscape
Maps
view_in_ar
Models
texture
Materials
apparel
Clothing
apps
Everything
Every asset type in one list
Forum
Learn
Documentation
rocket_launch
Getting Started
docs
Documentation
api
API Reference
Resources
school
Tutorials
manage_search
Code Search
input
Log in with Steam
Api
Classes
LengthUnit
chevron_left
Classes
enum
LengthUnit
Static Fields
crop_din
Auto
crop_din
Center
crop_din
Contain
crop_din
Cover
crop_din
Em
crop_din
End
crop_din
Expression
crop_din
Percentage
crop_din
Pixels
crop_din
RootEm
crop_din
Start
crop_din
Undefined
crop_din
ViewHeight
crop_din
ViewMax
crop_din
ViewMin
crop_din
ViewWidth
Static Methods
functions
IsDynamic
LengthUnit
Possible units for various CSS properties that require length, used by Sandbox.UI.Length struct.
enum
Sandbox.UI
.
sealed
Sandbox.System
crop_din
Static Fields
16
Auto
LengthUnit
The layout engine will calculate and select a width for the specified element.
Center
LengthUnit
In the middle of the parent at the appropriate axis.
Contain
LengthUnit
For background images, contain the image within the element bounds.
Cover
LengthUnit
For background images, cover the entire element with the image, stretcing and cropping as necessary.
Em
LengthUnit
Font size of the current element.
End
LengthUnit
End of the parent at the appropriate axis.
Expression
LengthUnit
Represents a calc( ... ) expression
Percentage
LengthUnit
The length is a percentage (0-100) of the parent's length. (typically)
Pixels
LengthUnit
The length is in pixels.
RootEm
LengthUnit
Font size of the root element.
Start
LengthUnit
Start of the parent at the appropriate axis.
Undefined
LengthUnit
Similar to CSS 'unset', basically means we don't have a value; should only really be used under certain circumstances (e.g. to handle background sizing properly).
ViewHeight
LengthUnit
The length is a percentage (0-100) of the viewport's height.
ViewMax
LengthUnit
The length is a percentage (0-100) of the viewport's largest side/edge.
ViewMin
LengthUnit
The length is a percentage (0-100) of the viewport's smallest side/edge.
ViewWidth
LengthUnit
The length is a percentage (0-100) of the viewport's width.
functions
Static Methods
1
IsDynamic
(
unit
)
bool
Determine whether this unit type is dynamic (ie. should be updated regularly) or whether it's constant
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.