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
gamejamslive now

Game Jam III

Ends Fri 25 Sep
ThemeOne More Round

The jam is running. Build something, or play the entries.

£50,000
prizepool
View the jam
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
Api
Editor Classes
Application
chevron_left Editor Classes
class
Application

Static Properties

data_objectCursorDeltadata_objectCursorPositiondata_objectDpiScaledata_objectEditordata_objectFocusWidgetdata_objectHoveredWidgetdata_objectKeyboardModifiersdata_objectMouseButtonsdata_objectMouseWheelDeltadata_objectOnWidgetClickeddata_objectUnscaledCursorPosition

Static Methods

functionsIsKeyDownfunctionsKeyCodeToStringfunctionsSetStylesfunctionsSpin
Application
class Editor .
staticsealedabstractSandbox.Tools

data_object Static Properties 11

CursorDelta
Vector2
The cursor delta between this and previous frame.
CursorPosition
Vector2
Get/Set cursor position.
DpiScale
float
Editor
EditorSystem
Get the current editor if any. Will return null if we're not in the editor, or there is no active editor session.
FocusWidget
Widget
The Editor.Widget that has the keyboard input focus, or nullif no widget in this application has the focus.
HoveredWidget
Widget
The Widget that is currently hovered
KeyboardModifiers
KeyboardModifiers
Returns which keyboard modified keys are held down right at this point.
MouseButtons
MouseButtons
Returns the current state of the mouse buttons.
MouseWheelDelta
Vector2
The mouse wheel delta between this and previous frame
OnWidgetClicked
Action`2
Called when any widget is clicked. Can set MouseEvent.Accepted to true to prevent the Widget's OnMouseClick from firing.
UnscaledCursorPosition
Vector2
The cursor position, not scaled for DPI

functions Static Methods 4

IsKeyDown (code)
bool
Returns whether or not a key is currently being held down.
KeyCodeToString (code)
string
Converts an editor keycode to a string used by the game Qt::Key -> WindowsVirtualKey -> ButtonCode_t -> string
SetStyles (style)
Spin ()
Will process all of the UI events - allowing the UI to stay responsive during a blocking call.
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