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
Game Jam III
Starts
Fri 4 Sep
Theme
Theme revealed when the jam starts.
£
50,000
prizepool
Read more
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
SceneSettings
chevron_left
Classes
class
SceneSettings
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.