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
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
Methods
functions
Arrow
functions
BoundingBox
functions
Capsule
functions
DragBox
functions
DragCenterRaycast
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
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.