Api SceneSettings
class

SceneSettings

public class SceneSettings

Constructors

SceneSettings()

Properties

Name Type Description
EditMode String How do we want to edit this? Usually something like "position", "rotation", "scale" etc
Selection Boolean Do we want to let the user select things in the current mode?
ViewMode String What is the current view mode? 3d, 2d, ui?
GizmosEnabled Boolean Are gizmos enabled?
GizmoScale Single How big to show the gizmos
GridSpacing Single Grid spacing
SnapToGrid Boolean Snap positions to the grid
SnapToAngles Boolean Snap angles
AngleSpacing Single Grid spacing
GlobalSpace Boolean Editing in local space
DebugActionGraphs Boolean Should we show lines representing GameObject references in action graphs?

Methods

Boolean IsGizmoEnabled(Type type)

Check if a gizmo type is enabled

Void SetGizmoEnabled(Type type, Boolean enabled)

Set the enabled state of a gizmo type

Void ClearEnabledGizmos()

Clear all enabled gizmos

Assembly: Sandbox.Engine Declaring Type: Gizmo Full Name: Sandbox.Gizmo.SceneSettings