s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News
jams
Workshop
Steam
open_in_newSteam Workshop
Assets
view_in_arModels textureMaterials apparelClothing
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
Get s&box
Sign in with Steam
Api
Common Structs
Rect
Shrink
chevron_left Common Structs
struct
Rect

Constructors

functionsRect

Properties

data_objectBottomdata_objectBottomLeftdata_objectBottomRightdata_objectCenterdata_objectHeightdata_objectLeftdata_objectPositiondata_objectRightdata_objectSizedata_objectTopdata_objectTopLeftdata_objectTopRightdata_objectWidthdata_objectWithoutPosition

Methods

functionsAddfunctionsAddPointfunctionsAlignfunctionsCeilingfunctionsClosestPointfunctionsContainfunctionsFloorfunctionsGrowfunctionsIsInsidefunctionsOverlapsfunctionsRoundfunctionsShrinkfunctionsSnapToGridfunctionsToVector4

Static Methods

functionsFromPointsfunctionsIntersect
Shrink
Returns a Rect shrunk in every direction by given values.
method4 overloads
Overloads
Rect Shrink (in float left, in float top, in float right, in float bottom)

Parameters

NameTypeDescription
in left float
in top float
in right float
in bottom float

Returns

TypeDescription
Rect
Declared in Sandbox.Rect ยท Assembly Sandbox.System
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter