s&
About
The Project
infoAbout s&box mapRoadmap monitoringMetricsEngine startup and usage numbers
Updates
newspaperLatest News published_with_changesChangesRelease-by-release changelog
Games
Browse Games Discover Games

Game Jam III

Starts Fri 4 Sep
Theme

Theme revealed when the jam starts.

£50,000
prizepool
Read more
Workshop
Playable
sports_esportsGamesStandalone games and gamemodes
Assets
landscapeMaps view_in_arModels textureMaterials apparelClothing
appsEverythingEvery asset type in one list
Forum
Learn
Documentation
rocket_launchGetting Started docsDocumentation apiAPI Reference
Resources
schoolTutorials manage_searchCode Search
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.
Facepunch
  • News
  • Docs
  • Metrics
  • FAQ
  • Forum
  • Discord
  • Twitter