Global scope constants and variables.
Global scope constants and variables. This is all that resides in the globals, constants regarding error codes, scancodes, property hints, etc.
Singletons are also documented here, since they can be accessed from anywhere.
The [ARVRServer] singleton.
The [AudioServer] singleton.
The [CameraServer] singleton.
The [ClassDB] singleton.
The [Engine] singleton.
The [Geometry] singleton.
The [IP] singleton.
The [Input] singleton.
The [InputMap] singleton.
The [JSON] singleton.
The [JavaScript] singleton.
The [Marshalls] singleton.
The [EditorNavigationMeshGenerator] singleton.
The [OS] singleton.
The [Performance] singleton.
The [Physics2DServer] singleton.
The [PhysicsServer] singleton.
The [ProjectSettings] singleton.
The [ResourceLoader] singleton.
The [ResourceSaver] singleton.
The [TranslationServer] singleton.
The [VisualScriptEditor] singleton.
The [VisualServer] singleton.
Left margin, usually used for [Control] or [StyleBox]-derived classes.
Top margin, usually used for [Control] or [StyleBox]-derived classes.
Right margin, usually used for [Control] or [StyleBox]-derived classes.
Bottom margin, usually used for [Control] or [StyleBox]-derived classes.
Top-left corner.
Top-right corner.
Bottom-right corner.
Bottom-left corner.
General vertical alignment, usually used for [Separator], [ScrollBar], [Slider], etc.
General horizontal alignment, usually used for [Separator], [ScrollBar], [Slider], etc.
Horizontal left alignment, usually for text-derived classes.
Horizontal center alignment, usually for text-derived classes.
Horizontal right alignment, usually for text-derived classes.
Vertical top alignment, usually for text-derived classes.
Vertical center alignment, usually for text-derived classes.
Vertical bottom alignment, usually for text-derived classes.
Scancodes with this bit applied are non-printable.
Escape key.
Tab key.
Shift+Tab key.
Backspace key.
Return key (on the main keyboard).
Enter key on the numeric keypad.
Insert key.
Delete key.
Pause key.
Print Screen key.
System Request key.
Clear key.
Home key.
End key.
Left arrow key.
Up arrow key.
Right arrow key.
Down arrow key.
Page Up key.
Page Down key.
Shift key.
Control key.
Meta key.
Alt key.
Caps Lock key.
Num Lock key.
Scroll Lock key.
F1 key.
F2 key.
F3 key.
F4 key.
F5 key.
F6 key.
F7 key.
F8 key.
F9 key.
F10 key.
F11 key.
F12 key.
F13 key.
F14 key.
F15 key.
F16 key.
Multiply (*) key on the numeric keypad.
Divide (/) key on the numeric keypad.
Subtract (-) key on the numeric keypad.
Period (.) key on the numeric keypad.
Add (+) key on the numeric keypad.
Number 0 on the numeric keypad.
Number 1 on the numeric keypad.
Number 2 on the numeric keypad.
Number 3 on the numeric keypad.
Number 4 on the numeric keypad.
Number 5 on the numeric keypad.
Number 6 on the numeric keypad.
Number 7 on the numeric keypad.
Number 8 on the numeric keypad.
Number 9 on the numeric keypad.
Left Super key (Windows key).
Right Super key (Windows key).
Context menu key.
Left Hyper key.
Right Hyper key.
Help key.
Left Direction key.
Right Direction key.
Back key.
Forward key.
Stop key.
Refresh key.
Volume down key.
Mute volume key.
Volume up key.
Bass Boost key.
Bass up key.
Bass down key.
Treble up key.
Treble down key.
Media play key.
Media stop key.
Previous song key.
Next song key.
Media record key.
Home page key.
Favorites key.
Search key.
Standby key.
Open URL / Launch Browser key.
Launch Mail key.
Launch Media key.
Launch Shortcut 0 key.
Launch Shortcut 1 key.
Launch Shortcut 2 key.
Launch Shortcut 3 key.
Launch Shortcut 4 key.
Launch Shortcut 5 key.
Launch Shortcut 6 key.
Launch Shortcut 7 key.
Launch Shortcut 8 key.
Launch Shortcut 9 key.
Launch Shortcut A key.
Launch Shortcut B key.
Launch Shortcut C key.
Launch Shortcut D key.
Launch Shortcut E key.
Launch Shortcut F key.
Unknown key.
Space key.
! key.
" key.
# key.
$ key.
% key.
& key.
' key.
( key.
) key.
* key.
+ key.
, key.
- key.
. key.
/ key.
Number 0.
Number 1.
Number 2.
Number 3.
Number 4.
Number 5.
Number 6.
Number 7.
Number 8.
Number 9.
: key.
; key.
< key.
= key.
> key.
? key.
@ key.
A key.
B key.
C key.
D key.
E key.
F key.
G key.
H key.
I key.
J key.
K key.
L key.
M key.
N key.
O key.
P key.
Q key.
R key.
S key.
T key.
U key.
V key.
W key.
X key.
Y key.
Z key.
[ key.
\ key.
] key.
^ key.
_ key.
Left Quote key.
{ key.
| key.
} key.
~ key.
Non-breakable space key.
¡ key.
¢ key.
£ key.
Yen key.
¦ key.
§ key.
¨ key.
© key.
« key.
» key.
‐ key.
® key.
Macron key.
° key.
± key.
² key.
³ key.
´ key.
µ key.
§ key.
· key.
¬ key.
¹ key.
♂ key.
» key.
¼ key.
½ key.
¾ key.
¿ key.
à key.
á key.
â key.
ã key.
ä key.
å key.
æ key.
ç key.
è key.
é key.
ê key.
ë key.
ì key.
í key.
î key.
ë key.
ð key.
ñ key.
ò key.
ó key.
ô key.
õ key.
ö key.
× key.
ø key.
ù key.
ú key.
û key.
ü key.
ý key.
þ key.
ß key.
÷ key.
ÿ key.
Key Code mask.
Modifier key mask.
Shift key mask.
Alt key mask.
Meta key mask.
Ctrl key mask.
Cmd key mask.
Keypad key mask.
Group Switch key mask.
Left mouse button.
Right mouse button.
Middle mouse button.
Extra mouse button 1 (only present on some mice).
Extra mouse button 2 (only present on some mice).
Mouse wheel up.
Mouse wheel down.
Mouse wheel left button (only present on some mice).
Mouse wheel right button (only present on some mice).
Left mouse button mask.
Right mouse button mask.
Middle mouse button mask.
Extra mouse button 1 mask.
Extra mouse button 2 mask.
Gamepad button 0.
Gamepad button 1.
Gamepad button 2.
Gamepad button 3.
Gamepad button 4.
Gamepad button 5.
Gamepad button 6.
Gamepad button 7.
Gamepad button 8.
Gamepad button 9.
Gamepad button 10.
Gamepad button 11.
Gamepad button 12.
Gamepad button 13.
Gamepad button 14.
Gamepad button 15.
Represents the maximum number of joystick buttons supported.
DualShock circle button.
DualShock X button.
DualShock square button.
DualShock triangle button.
Xbox controller B button.
Xbox controller A button.
Xbox controller X button.
Xbox controller Y button.
DualShock controller A button.
DualShock controller B button.
DualShock controller X button.
DualShock controller Y button.
Grip (side) buttons on a VR controller.
Push down on the touchpad or main joystick on a VR controller.
Trigger on a VR controller.
A button on the right Oculus Touch controller, X button on the left controller (also when used in OpenVR).
B button on the right Oculus Touch controller, Y button on the left controller (also when used in OpenVR).
Menu button on either Oculus Touch controller.
Menu button in OpenVR (Except when Oculus Touch controllers are used).
Gamepad button Select.
Gamepad button Start.
Gamepad DPad up.
Gamepad DPad down.
Gamepad DPad left.
Gamepad DPad right.
Gamepad left Shoulder button.
Gamepad left trigger.
Gamepad left stick click.
Gamepad right Shoulder button.
Gamepad right trigger.
Gamepad right stick click.
Gamepad left stick horizontal axis.
Gamepad left stick vertical axis.
Gamepad right stick horizontal axis.
Gamepad right stick vertical axis.
Gamepad left trigger analog axis.
Gamepad right trigger analog axis.
Represents the maximum number of joystick axes supported.
Gamepad left stick horizontal axis.
Gamepad left stick vertical axis.
Gamepad right stick horizontal axis.
Gamepad right stick vertical axis.
Gamepad left analog trigger.
Gamepad right analog trigger.
VR Controller analog trigger.
VR Controller analog grip (side buttons).
OpenVR touchpad X axis (Joystick axis on Oculus Touch and Windows MR controllers).
OpenVR touchpad Y axis (Joystick axis on Oculus Touch and Windows MR controllers).
Methods that return [enum Error] return [constant OK] when no error occurred. Note that many functions don't return an error code but will print error messages to standard output.
Since [constant OK] has value 0, and all other failure codes are positive integers, it can also be used in boolean checks, e.g.:
[codeblock]
var err = method_that_returns_error()
if (err != OK):
print("Failure!)
# Or, equivalent:
if (err):
print("Still failing!)
[/codeblock]
Generic error.
Unavailable error.
Unconfigured error.
Unauthorized error.
Parameter range error.
Out of memory (OOM) error.
File: Not found error.
File: Bad drive error.
File: Bad path error.
File: No permission error.
File: Already in use error.
File: Can't open error.
File: Can't write error.
File: Can't read error.
File: Unrecognized error.
File: Corrupt error.
File: Missing dependencies error.
File: End of file (EOF) error.
Can't open error.
Can't create error.
Query failed error.
Already in use error.
Locked error.
Timeout error.
Can't connect error.
Can't resolve error.
Connection error.
Can't acquire resource error.
Can't fork process error.
Invalid data error.
Invalid parameter error.
Already exists error.
Does not exist error.
Database: Read error.
Database: Write error.
Compilation failed error.
Method not found error.
Linking failed error.
Script failed error.
Cycling link (import cycle) error.
Invalid declaration error.
Duplicate symbol error.
Parse error.
Busy error.
Skip error.
Help error.
Bug error.
Printer on fire error. (This is an easter egg, no engine methods return this error code.)
No hint for the edited property.
Hints that the string is a range, defined as [code]"min,max"[/code] or [code]"min,max,step"[/code]. This is valid for integers and floats.
Hints that the string is an exponential range, defined as [code]"min,max"[/code] or [code]"min,max,step"[/code]. This is valid for integers and floats.
Property hint for an enumerated value, like [code]"Hello,Something,Else"[/code]. This is valid for integer, float and string properties.
Property hint for a bitmask description. For example, for bits 0, 1, 2, 3 and 5, the hint could be something like [code]"Bit0,Bit1,Bit2,Bit3,,Bit5"[/code]. This is only valid for integer properties.
String property is a file, will pop up a file dialog when edited. Hint string can be a set of wildcards like [code]"*.doc"[/code].
String property is a directory, will pop up a file dialog when edited.
String property is a resource, will open the resource popup menu when edited.
Hints that the image is compressed using lossy compression.
Hints that the image is compressed using lossless compression.
Property will be used as storage (default).
Property will be visible in editor (default).
Default usage (storage and editor).
Flag for a normal method.
Flag for an editor method.
Flag for a constant method.
Flag for a virtual method.
Flag for a method from a script.
Default method flags.
Variable is of type nil (only applied for [code]null[/code]).
Variable is of type [bool].
Variable is of type [int].
Variable is of type [float]/real.
Variable is of type [String].
Variable is of type [Vector2].
Variable is of type [Rect2].
Variable is of type [Vector3].
Variable is of type [Transform2D].
Variable is of type [Plane].
Variable is of type [Quat].
Variable is of type [AABB].
Variable is of type [Basis].
Variable is of type [Transform].
Variable is of type [Color].
Variable is of type [NodePath].
Variable is of type [RID].
Variable is of type [Object].
Variable is of type [Dictionary].
Variable is of type [Array].
Variable is of type [PoolByteArray].
Variable is of type [PoolIntArray].
Variable is of type [PoolRealArray].
Variable is of type [PoolStringArray].
Variable is of type [PoolVector2Array].
Variable is of type [PoolVector3Array].
Variable is of type [PoolColorArray].
Represents the size of the [enum Variant.Type] enum.
Represents the size of the [enum Variant.Operator] enum.