s&
newspaper
About
info
About s&box
newspaper
Latest News
published_with_changes
Changes
map
Roadmap
monitoring
Metrics
games
Games
sports_esports
Browse Games
rocket
Discover Games
business_center
Workshop
sports_esports
Games
landscape
Maps
chair
Models
texture
Materials
apparel
Clothing
construction
More..
forum
Forum
docs
Docs
docs
Documentation
dashboard
Api Reference
school
Tutorials
input
Log in with Steam
chevron_left
Change Language
简体中文
English
Русский
Español
Português-Brasil
Deutsch
日本語
Français
Polski
Türkçe
한국어
Pirate
Italiano
ไทย
繁體中文
Українська
Čeština
Nederlands
Magyar
Dansk
Suomi
Svenska
Norsk
Ελληνικά
Română
Български
Tiếng Việt
Bahasa Indonesia
Español-Latinoamérica
العربية
Api
Classes
GizmoControls
chevron_left
Classes
class
GizmoControls
search
Methods
functions
Arrow
functions
BoundingBox
functions
Capsule
functions
DragBox
functions
DragSquare
functions
Position
functions
Rotate
functions
RotateSingle
functions
Scale
functions
Sphere
Static Methods
functions
PushFixedScale
GizmoControls
Extendable helper to create common gizmos
class
Sandbox.Gizmo
.
sealed
Sandbox.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.