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
SceneSettings
chevron_left Classes
class
SceneSettings

Constructors

functionsSceneSettings

Properties

data_objectAngleSpacingdata_objectDebugActionGraphsdata_objectEditModedata_objectGizmoDepthTestdata_objectGizmoRenderDistancedata_objectGizmoScaledata_objectGizmosEnableddata_objectGlobalSpacedata_objectGridSpacingdata_objectSelectiondata_objectSnapToAnglesdata_objectSnapToGriddata_objectViewModedata_objectWorldSpaceGizmos

Methods

functionsClearEnabledGizmosfunctionsIsGizmoEnabledfunctionsSetGizmoEnabled
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.
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter