s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
inputLog in with Steam chevron_leftChange Language
简体中文EnglishРусскийEspañolPortuguês-BrasilDeutsch日本語FrançaisPolskiTürkçe한국어PirateItalianoไทย繁體中文УкраїнськаČeštinaNederlandsMagyarDanskSuomiSvenskaNorskΕλληνικάRomânăБългарскиTiếng ViệtBahasa IndonesiaEspañol-Latinoaméricaالعربية
Api
Classes
GizmoControls
chevron_left Classes
class
GizmoControls

Methods

functionsArrowfunctionsBoundingBoxfunctionsCapsulefunctionsDragBoxfunctionsDragCenterRaycastfunctionsDragSquarefunctionsPositionfunctionsRotatefunctionsRotateSinglefunctionsScalefunctionsSphere

Static Methods

functionsPushFixedScale
GizmoControls
Extendable helper to create common gizmos
class Sandbox.Gizmo .
sealedSandbox.Engine

functions Methods 11

Arrow (name, axis, distance, length, girth, axisOffset, cullAngle, snapSize, head)
bool
Draw an arrow - return move delta if interacted with
BoundingBox (name, value, outValue)
bool
Capsule (name, capsule, outCapsule, color)
bool
DragBox (name, size, rotation, movement)
bool
DragCenterRaycast (name, size, raycast, movement)
bool
DragSquare (name, size, rotation, movement, drawHandle)
bool
Manipulate a 2d value by moving on 2 axis
Position (name, position, newPos, axisRotation, squareSize, centerRaycast)
bool
Rotate (name, value, newValue)
bool
A full 3d rotation gizmo. If rotated will return true and newValue will be the new rotation.
RotateSingle (name, color, angleDelta, size, useHalfCircle)
bool
A single rotation axis
Scale (name, value, outValue)
bool
A front left up position movement widget. If widget was moved then will return true and out will return the new position.
Sphere (name, radius, outRadius, color)
bool
A scalable sphere gizmo. Returns true if the gizmo was interacted with and outValue will return the new radius.

functions Static Methods 1

PushFixedScale (scale)
IDisposable
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