s&
newspaperAbout
infoAbout s&box newspaperLatest News published_with_changesChanges mapRoadmap monitoringMetrics
gamesGames
sports_esportsBrowse Games rocketDiscover Games
business_centerWorkshop
sports_esportsGames landscapeMaps chairModels textureMaterials apparelClothing constructionMore..
forumForum docsDocs
docsDocumentation dashboardApi Reference schoolTutorials
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

functionsArrowfunctionsBoundingBoxfunctionsCapsulefunctionsDragBoxfunctionsDragSquarefunctionsPositionfunctionsRotatefunctionsRotateSinglefunctionsScalefunctionsSphere

Static Methods

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

functions Methods 10

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
DragSquare (name, size, rotation, movement, drawHandle)
bool
Manipulate a 2d value by moving on 2 axis
Position (name, position, newPos, axisRotation, squareSize)
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter