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
SceneSettings
chevron_left
Classes
class
SceneSettings
search
Constructors
functions
SceneSettings
Properties
data_object
AngleSpacing
data_object
DebugActionGraphs
data_object
EditMode
data_object
GizmoDepthTest
data_object
GizmoRenderDistance
data_object
GizmoScale
data_object
GizmosEnabled
data_object
GlobalSpace
data_object
GridSpacing
data_object
Selection
data_object
SnapToAngles
data_object
SnapToGrid
data_object
ViewMode
data_object
WorldSpaceGizmos
Methods
functions
ClearEnabledGizmos
functions
IsGizmoEnabled
functions
SetGizmoEnabled
SceneSettings
class
Sandbox.Gizmo
.
Sandbox.Engine
build
Constructors
1
SceneSettings
(
)
data_object
Properties
14
AngleSpacing
float
Grid spacing
DebugActionGraphs
bool
Should we show lines representing GameObject references in action graphs?
EditMode
string
How do we want to edit this? Usually something like "position", "rotation", "scale" etc
GizmoDepthTest
bool
When enabled, component gizmo handles are depth tested against scene geometry. When disabled, they render on top of everything.
GizmoRenderDistance
float
Maximum distance from the camera at which component gizmo handles are visible. Set to 0 for unlimited distance.
GizmoScale
float
How big to show the gizmos
GizmosEnabled
bool
Are gizmos enabled?
GlobalSpace
bool
Editing in local space
GridSpacing
float
Grid spacing
Selection
bool
Do we want to let the user select things in the current mode?
SnapToAngles
bool
Snap angles
SnapToGrid
bool
Snap positions to the grid
ViewMode
string
What is the current view mode? 3d, 2d, ui?
WorldSpaceGizmos
bool
When enabled, component gizmo handles are drawn at a fixed world size instead of maintaining a constant screen size regardless of distance.
functions
Methods
3
ClearEnabledGizmos
(
)
Clear all enabled gizmos
IsGizmoEnabled
(
type
)
bool
Check if a gizmo type is enabled
SetGizmoEnabled
(
type
,
enabled
)
Set the enabled state of a gizmo type
people
Log in to reply
You can't reply if you're not logged in. That would be crazy.