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