From e53f18689927be0193b6c811f0de64ec6686860c Mon Sep 17 00:00:00 2001 From: George Marques Date: Tue, 21 Jun 2016 17:24:47 -0300 Subject: Sync classes.xml with the new sorting --- doc/base/classes.xml | 31424 +++++++++++++++++++++++++------------------------ 1 file changed, 15747 insertions(+), 15677 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index 5f7e995099..067d73034b 100644 --- a/doc/base/classes.xml +++ b/doc/base/classes.xml @@ -8,58 +8,37 @@ This contains the list of built-in gdscript functions. Mostly math functions and other utilities. Everything else is expanded by objects. - - + + - + - - Standard sine function. - - - - - - + - - Standard cosine function. - - - - - - + - - Standard tangent function. - - - - - - + - Hyperbolic sine. + Make a color from red, green, blue and alpha. Arguments can range from 0 to 255. - + - Hyperbolic cosine. + Remove sign (works for integer and float). - + - Hyperbolic tangent. + Arc-cosine. @@ -71,13 +50,13 @@ Arc-sine. - - + + - + - Arc-cosine. + Assert that the condition is true. If the condition is false, generates an error. @@ -100,125 +79,113 @@ Arc-tangent that takes a 2D vector as argument, returns the full -pi to +pi range. - - + + - + - Square root. + Decode a byte array back to a value. - + - - - + - Module (remainder of x/y). + Ceiling (rounds up to nearest integer). - + - + - + - - Module (remainder of x/y) that wraps equally in positive and negative. - - - - - - + - Floor (rounds down to nearest integer). + Clamp both values to a range. - - + + - + - - Ceiling (rounds up to nearest integer). - - - - - - + - Round to nearest integer. + Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in [@Global Scope]. - + - Remove sign (works for integer and float). + Standard cosine function. - + - Return sign (-1 or +1). + Hyperbolic cosine. - + - - - + - Power function, x elevate to y. + Convert from decibels to linear energy (audio). - + - + - Natural logarithm. + Return the amount of decimals in the floating point value. - + - + + + + + - Exponential logarithm. + Decreases time by a specified amount. - + - + + Convert from degrees to radians. - - + + - + + Convert a previously converted instances to dictionary back into an instance. Useful for deserializing. @@ -232,118 +199,111 @@ Easing function, based on exponent. 0 is constant, 1 is linear, 0 to 1 is ease-in, 1+ is ease out. Negative values are in-out/out in. - + - + - Return the amount of decimals in the floating point value. + Exponential logarithm. - + - - - Snap float value to a given step. + Floor (rounds down to nearest integer). - + - - - + - + - Linear interpolates between two values by a normalized value. + Module (remainder of x/y). - + - - - + - + - Decreases time by a specified amount. + Module (remainder of x/y) that wraps equally in positive and negative. - - + + + + + + - Reset the seed of the random number generator with a new, different one. + Return a reference to the specified function. - + + + - Random 32 bits value (integer). To obtain a value from 0 to N, you can use remainder, like (for random from 0 to 19): randi() % 20. - - - - - - - Random value (0 to 1 float). + Hash the variable passed and return an integer. - - + + - - - + - Random range, any floating point value between 'from' and 'to' + Convert a script class instance to a dictionary (useful for serializing). - - + + - + - Set seed for the random number generator. + Get an object by its ID. - - + + - + - Random from seed, pass a seed and an array with both number and new seed is returned. - + - + - Convert from degrees to radians. - + - + + + + + - Convert from radians to degrees. + Linear interpolates between two values by a normalized value. @@ -355,13 +315,22 @@ Convert from linear energy to decibels (audio). - + + + + + + + Load a resource from the filesystem, pass a valid path as argument. + + + - + - Convert from decibels to linear energy (audio). + Natural logarithm. @@ -386,19 +355,6 @@ Return the minimum of two values. - - - - - - - - - - - Clamp both values to a range. - - @@ -408,58 +364,56 @@ Return the nearest larger power of 2 for an integer. - - + + - + + + - Return a weak reference to an object. + Power function, x elevate to y. - - + + - - - + - Return a reference to the specified function. + Preload a resource from the filesystem. The resource is loaded during script parsing. - - + + - + - Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in [@Global Scope]. + Print one or more arguments to strings in the best way possible to a console line. - - + + - - - Return the internal type of the given Variant object, using the TYPE_* enum in [@Global Scope]. + Print a stack track at code location, only works when running with debugger turned on. - - + + - Convert one or more arguments to strings in the best way possible. + Print one or more arguments to strings in the best way possible to standard error line. - + @@ -467,10 +421,10 @@ - Print one or more arguments to strings in the best way possible to a console line. + Print one or more arguments to strings in the best way possible to console. No newline is added at the end. - + @@ -478,10 +432,10 @@ - Print one or more arguments to the console with a tab between each argument. + Print one or more arguments to the console with a space between each argument. - + @@ -489,65 +443,57 @@ - Print one or more arguments to the console with a space between each argument. + Print one or more arguments to the console with a tab between each argument. - - + + - - - + - Print one or more arguments to strings in the best way possible to standard error line. + Convert from radians to degrees. - - + + - + - + - Print one or more arguments to strings in the best way possible to console. No newline is added at the end. + Random range, any floating point value between 'from' and 'to' - - + + - + - Convert a value to a formatted string that can later be parsed using [method str2var]. + Random from seed, pass a seed and an array with both number and new seed is returned. - - + + - - - Convert a formatted string that was returned by [method var2str] to the original value. + Random value (0 to 1 float). - - + + - - - Encode a variable value to a byte array. + Random 32 bits value (integer). To obtain a value from 0 to N, you can use remainder, like (for random from 0 to 19): randi() % 20. - - + + - - - Decode a byte array back to a value. + Reset the seed of the random number generator with a new, different one. @@ -559,80 +505,151 @@ Return an array with the given range. Range can be 1 argument N (0 to N-1), two arguments (initial, final-1) or three arguments (initial, final-1, increment). - - + + - + - Load a resource from the filesystem, pass a valid path as argument. + Round to nearest integer. - - + + - + - Convert a script class instance to a dictionary (useful for serializing). + Set seed for the random number generator. - - + + - + - Convert a previously converted instances to dictionary back into an instance. Useful for deserializing. + Return sign (-1 or +1). - - + + - + - Hash the variable passed and return an integer. + Standard sine function. - - + + - + - + + Hyperbolic sine. + + + + + + - + + Square root. + + + + + + - + - Make a color from red, green, blue and alpha. Arguments can range from 0 to 255. + Snap float value to a given step. - - + + + + + + - Print a stack track at code location, only works when running with debugger turned on. + Convert one or more arguments to strings in the best way possible. - - + + - + - Get an object by its ID. + Convert a formatted string that was returned by [method var2str] to the original value. - - + + - + - Preload a resource from the filesystem. The resource is loaded during script parsing. + Standard tangent function. + + + + + + + + + Hyperbolic tangent. + + + + + + + + + + + + + + + + + Return the internal type of the given Variant object, using the TYPE_* enum in [@Global Scope]. + + + + + + + + + Encode a variable value to a byte array. + + + + + + + + + Convert a value to a formatted string that can later be parsed using [method str2var]. + + + + + + + + + Return a weak reference to an object. @@ -648,15 +665,6 @@ If passed an object and a signal, the execution is resumed when the object's signal is emmited. - - - - - - - Assert that the condition is true. If the condition is false, generates an error. - - @@ -675,38 +683,20 @@ - - [Performance] singleton - - - [Globals] singleton + + [AudioServer] singleton - - [IP] singleton + + [AudioServer] singleton [Geometry] singleton - - [ResourceLoader] singleton - - - [ResourceSaver] singleton - - - [PathRemap] singleton - - - [OS] singleton - - - [Marshalls] singleton - - - [TranslationServer] singleton + + [Globals] singleton - - [TranslationServer] singleton + + [IP] singleton [Input] singleton @@ -714,61 +704,171 @@ [InputMap] singleton - - [VisualServer] singleton + + [Marshalls] singleton - - [VisualServer] singleton + + [OS] singleton - - [AudioServer] singleton + + [PhysicsServer] singleton - - [AudioServer] singleton + + [Physics2DServer] singleton - - [PhysicsServer] singleton + + [PathRemap] singleton - - [PhysicsServer] singleton + + [Performance] singleton [Physics2DServer] singleton - - [Physics2DServer] singleton + + [PhysicsServer] singleton - - [SpatialSoundServer] singleton + + [ResourceLoader] singleton + + + [ResourceSaver] singleton [SpatialSoundServer] singleton - + [SpatialSound2DServer] singleton - + [SpatialSound2DServer] singleton + + [SpatialSoundServer] singleton + + + [TranslationServer] singleton + + + [TranslationServer] singleton + + + [VisualServer] singleton + + + [VisualServer] singleton + - - Left margin, used usually for [Control] or [StyleBox] derived classes. + + Left Mouse Button - - Top margin, used usually for [Control] or [StyleBox] derived classes. + - - Right margin, used usually for [Control] or [StyleBox] derived classes. + - - Bottom margin, used usually for [Control] or [StyleBox] derived classes. + + Right Mouse Button - - General vertical alignment, used usually for [Separator], [ScrollBar], [Slider], etc. + + Middle Mouse Button - - General horizontal alignment, used usually for [Separator], [ScrollBar], [Slider], etc. + + + + Mouse wheel up + + + Mouse wheel down + + + Mouse wheel left button + + + Mouse wheel right button + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Generic fail return error. Horizontal left alignment, usually for text-derived classes. @@ -779,17 +879,232 @@ Horizontal right alignment, usually for text-derived classes. - - Vertical top alignment, usually for text-derived classes. + + General horizontal alignment, used usually for [Separator], [ScrollBar], [Slider], etc. - - Vertical center alignment, usually for text-derived classes. + + Joystick Left Stick Horizontal Axis - - Vertical bottom alignment, usually for text-derived classes. + + Joystick Left Stick Horizontal Axis - - Scancodes with this bit applied are non printable. + + Joystick Button 0 + + + + + SEGA controller A button + + + Super Nintendo Entertaiment System controller B button + + + DUALSHOCK X button + + + XBOX controller A button + + + Joystick Left Stick Vertical Axis + + + Joystick Left Stick Vertical Axis + + + Joystick Button 1 + + + + + SEGA controller B button + + + Super Nintendo Entertaiment System controller A button + + + DUALSHOCK circle button + + + XBOX controller B button + + + Joystick Button 10 + + + Joystick Button Select + + + Joystick Button 11 + + + Joystick Button Start + + + Joystick Button 12 + + + Joystick DPad Up + + + Joystick Button 13 + + + Joystick DPad Down + + + Joystick Button 14 + + + Joystick DPad Left + + + Joystick Button 15 + + + Joystick DPad Right + + + Joystick Button 16 + + + Joystick Right Stick Horizontal Axis + + + Joystick Right Stick Horizontal Axis + + + Joystick Button 2 + + + + + SEGA controller X button + + + Super Nintendo Entertaiment System controller Y button + + + DUALSHOCK square button + + + XBOX controller X button + + + Joystick Right Stick Vertical Axis + + + Joystick Right Stick Vertical Axis + + + Joystick Button 3 + + + + + SEGA controller Y button + + + Super Nintendo Entertaiment System controller X button + + + DUALSHOCK triangle button + + + XBOX controller Y button + + + + + + + Joystick Button 4 + + + Joystick Left Shoulder Button + + + + + + + Joystick Button 5 + + + Joystick Right Shoulder Button + + + + + Joystick Left Trigger Analog Axis + + + Joystick Button 6 + + + Joystick Left Trigger + + + + + Joystick Right Trigger Analog Axis + + + Joystick Button 7 + + + Joystick Right Trigger + + + + + Joystick Button 8 + + + Joystick Left Stick Click + + + Joystick Button 9 + + + Joystick Right Stick Click + + + + + + + { key + + + | key + + + } key + + + ~ key + + + + + + + + + ¢ key + + + + + + + + + ¦ key + + + § key Escape Key @@ -917,54 +1232,6 @@ F16 Key - - Enter Key on Numpad - - - Multiply Key on Numpad - - - Divide Key on Numpad - - - Subtract Key on Numpad - - - Period Key on Numpad - - - Add Key on Numpad - - - Number 0 on Numpad - - - Number 1 on Numpad - - - Number 2 on Numpad - - - Number 3 on Numpad - - - Number 4 on Numpad - - - Number 5 on Numpad - - - Number 6 on Numpad - - - Number 7 on Numpad - - - Number 8 on Numpad - - - Number 9 on Numpad - Super Left key (windows key) @@ -1080,232 +1347,53 @@ - + + Enter Key on Numpad - - Space Key + + Multiply Key on Numpad - - ! key + + Divide Key on Numpad - - " key + + Subtract Key on Numpad - - # key + + Period Key on Numpad - - $ 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 - - - Lower than key - - - = key - - - Greater than 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 - - - - - { key - - - | key + + Add Key on Numpad - - } key + + Number 0 on Numpad - - ~ key + + Number 1 on Numpad - + + Number 2 on Numpad - + + Number 3 on Numpad - - ¢ key + + Number 4 on Numpad - + + Number 5 on Numpad - + + Number 6 on Numpad - + + Number 7 on Numpad - - ¦ key + + Number 8 on Numpad - - § key + + Number 9 on Numpad ¨ key @@ -1438,356 +1526,266 @@ - - - + - + - + + Space Key - + + ! key - + - + - + - + + " key - - Left Mouse Button + + # key - - Right Mouse Button + + $ key - - Middle Mouse Button + + % key - - Mouse wheel up + + & key - - Mouse wheel down + + ' key - - Mouse wheel left button + + ( key - - Mouse wheel right button + + ) key - + + * key - + + + key - + + , key - - Joystick Button 0 + + - key - - Joystick Button 1 + + . key - - Joystick Button 2 + + / key - - Joystick Button 3 + + Number 0 - - Joystick Button 4 + + Number 1 - - Joystick Button 5 + + Number 2 - - Joystick Button 6 + + Number 3 - - Joystick Button 7 + + Number 4 - - Joystick Button 8 + + Number 5 - - Joystick Button 9 + - - Joystick Button 10 + + Number 6 - - Joystick Button 11 + + Number 7 - - Joystick Button 12 + + Number 8 - - Joystick Button 13 + + Number 9 - - Joystick Button 14 + + : key - - Joystick Button 15 + + ; key - - Joystick Button 16 + + Lower than key - - Super Nintendo Entertaiment System controller A button + + = key - - Super Nintendo Entertaiment System controller B button + + Greater than key - - Super Nintendo Entertaiment System controller X button + + ? key - - Super Nintendo Entertaiment System controller Y button + + @ key - - DUALSHOCK circle button + + A Key - - DUALSHOCK X button + + B Key - - DUALSHOCK square button + + C Key - - DUALSHOCK triangle button + - - SEGA controller B button + + D Key - - SEGA controller A button + + E Key - - SEGA controller X button + + F Key - - SEGA controller Y button + + G Key - - XBOX controller B button + + H Key - - XBOX controller A button + + I Key - - XBOX controller X button + + J Key - - XBOX controller Y button + + K Key - + + L Key - + + M Key - + + N Key - + + O Key - - Joystick Button Select + + P Key - - Joystick Button Start + + Q Key - - Joystick DPad Up + + R Key - - Joystick DPad Down + + S Key - - Joystick DPad Left + + T Key - - Joystick DPad Right + + U Key - - Joystick Left Shoulder Button + + V Key - - Joystick Left Trigger + + W Key - - Joystick Left Stick Click + + X Key - - Joystick Right Shoulder Button + + Y Key - - Joystick Right Trigger + + Z Key - - Joystick Right Stick Click + + [ key - - Joystick Left Stick Horizontal Axis + + \ key - - Joystick Left Stick Vertical Axis + + ] key - - Joystick Right Stick Horizontal Axis + + ^ key - - Joystick Right Stick Vertical Axis + + _ key - + - + + Left margin, used usually for [Control] or [StyleBox] derived classes. - - Joystick Left Trigger Analog Axis + + Top margin, used usually for [Control] or [StyleBox] derived classes. - - Joystick Right Trigger Analog Axis + + Right margin, used usually for [Control] or [StyleBox] derived classes. - + + Bottom margin, used usually for [Control] or [StyleBox] derived classes. - - Joystick Left Stick Horizontal Axis + - - Joystick Left Stick Vertical Axis + - - Joystick Right Stick Horizontal Axis + - - Joystick Right Stick Vertical Axis + - + - + - + - + Functions that return Error return OK when everything went ok. Most functions don't return error anyway and/or just print errors to stdout. - - Generic fail return error. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - No hint for edited property. Hints that the string is a range, defined as "min,max" or "min,max,step". This is valid for integers and floats. - - Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats. - - - Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties. - - - - - - - - - Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers. - - - Property hint for a bitmask description that covers all 32 bits. Valid only for integers. + + Property will be used as storage (default). String property is a file (so pop up a file dialog when edited). Hint string can be a set of wildcards like "*.doc". + + String property is a directory (so pop up a file dialog when edited). + + @@ -1797,62 +1795,60 @@ + + - - Property will be used as storage (default). + + Hints that the string is an exponential range, defined as "min,max" or "min,max,step". This is valid for integers and floats. Property will be visible in editor (default). - + - + - + + Property hint for an enumerated value, like "Hello,Something,Else". This is valid for integer, float and string properties. - + - + - + - + - + - + - + - + Default usage (storage and editor). - - - - - - - - - + + Property hint for a bitmask description, for bits 0,1,2,3 and 5 the hint would be like "Bit0,Bit1,Bit2,Bit3,,Bit5". Valid only for integers. - + - + - + + Property hint for a bitmask description that covers all 32 bits. Valid only for integers. - + + Scancodes with this bit applied are non printable. Variable is of type nil (only applied for null). @@ -1860,30 +1856,6 @@ 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 [Matrix32]. - - - Variable is of type [Plane]. - Variable is of type [Quat]. @@ -1914,6 +1886,9 @@ Variable is of type [InputEvent]. + + Variable is of type [int]. + Variable is of type [Dictionary]. @@ -1930,11 +1905,44 @@ - + + + + + + + + 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 [Matrix32]. + + + Variable is of type [Plane]. + + + Vertical top alignment, usually for text-derived classes. + + + Vertical center alignment, usually for text-derived classes. - + + Vertical bottom alignment, usually for text-derived classes. - + + General vertical alignment, used usually for [Separator], [ScrollBar], [Slider], etc. @@ -1946,6 +1954,17 @@ AABB provides an 3D Axis-Aligned Bounding Box. It consists of a position, a size, and several utility functions. It is typically used for simple (fast) overlap tests. + + + + + + + + + Optional constructor, accepts position and size. + + @@ -2110,28 +2129,17 @@ Combine this [AABB] with another, a larger one is returned that contains both. - - - - - - - - - Optional constructor, accepts position and size. - - + + Ending corner. + Position (starting corner). Size from position to end. - - Ending corner. - @@ -2144,25 +2152,27 @@ This dialog is useful for small notifications to the user about an event. It can only be accepted or closed, with the same result. - - + + + + + + + + - Return the OK Button. + Add custom button to the dialog and return the created button. + The button titled with [i]text[/i] and the [i]action[/i] will be passed to [custom_action] signal when it is pressed. - - + + - - Return the label used for built-in text. - - - - + - Set whether the dialog is hidden when accepted (default true). + Add custom cancel button to the dialog and return the created button. @@ -2172,27 +2182,25 @@ Return true if the dialog will be hidden when accepted (default true). - - + + - - - - - - - Add custom button to the dialog and return the created button. - The button titled with [i]text[/i] and the [i]action[/i] will be passed to [custom_action] signal when it is pressed. + Return the label used for built-in text. - - + + - - - Add custom cancel button to the dialog and return the created button. + Return the OK Button. + + + + + + + Return the built-in label text. @@ -2204,18 +2212,18 @@ Register a [LineEdit] in the dialog. When the enter key is pressed, the dialog will be accepted. - - + + - Set the built-in label text. + Set whether the dialog is hidden when accepted (default true). - - - + + + - Return the built-in label text. + Set the built-in label text. @@ -2244,88 +2252,91 @@ Sprite node that can use multiple textures for animation. - - - + + + - Set the [SpriteFrames] resource, which contains all frames. - - + + - Get the [SpriteFrames] resource, which contains all frames. + Return the visible frame index. - - - + + + + Return the color modulation for this sprite. - - + + + Return the offset of the sprite in the node origin. - - - + + + + Get the [SpriteFrames] resource, which contains all frames. - + + + + Return true when centered. See [method set_centered]. - + + Return true if sprite is flipped horizontally. - - - + + + - When turned on, offset at (0,0) is the center of the sprite, when off, the top-left corner is. + Return true if sprite is flipped vertically. - + - Return true when centered. See [method set_centered]. - - + + - Set the offset of the sprite in the node origin. Position varies depending on whether it is centered or not. - - - + + + - Return the offset of the sprite in the node origin. - - + + - If true, sprite is flipped horizontally. + When turned on, offset at (0,0) is the center of the sprite, when off, the top-left corner is. - - - + + + - Return true if sprite is flipped horizontally. + If true, sprite is flipped horizontally. @@ -2335,13 +2346,6 @@ If true, sprite is flipped vertically. - - - - - Return true if sprite is flipped vertically. - - @@ -2349,13 +2353,6 @@ Set the visible sprite frame index (from the list of frames inside the [SpriteFrames] resource). - - - - - Return the visible frame index. - - @@ -2363,11 +2360,22 @@ Change the color modulation (multiplication) for this sprite. - - - + + + + + Set the offset of the sprite in the node origin. Position varies depending on whether it is centered or not. + + + + + + + Set the [SpriteFrames] resource, which contains all frames. + + + - Return the color modulation for this sprite. @@ -2387,26 +2395,26 @@ - - - + + + - - + + - - - + + + - - + + @@ -2417,25 +2425,25 @@ - + + + - - - + + + - - + + - - - + @@ -2469,148 +2477,140 @@ Add a track to the Animation. The track type must be specified as any of the values in the TYPE_* enumeration. - - - - - Remove a track by specifying the track index. - - - - - + - Return the amount of tracks in the animation. + Clear the animation (clear all tracks and reset all). - + - + - Get the type of a track. - - + + - - - Get the path of a track. for more information on the path format, see [method track_set_path] + Return the total length of the animation (in seconds). - - - - - + + + - Set the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ":". Example: "character/skeleton:ankle" or "character/mesh:transform/local" - + - - + Return the amount of tracks in the animation. - - - + + + - Move a track up. + Return whether the animation has the loop flag set. - - - + + + - Move a track down. - - + + - - - - - + - + - Insert a transform key for a transform track. + Return all the key indices of a method track, given a position and delta time. - + + + - - - - - + - Insert a generic key in a given track. + Return the method name of a method track. - + + + - Remove a key by index in a given track. + Return the arguments values to be called on a method track for a given key in a given track. - + - + + Remove a track by specifying the track index. + + + + - Remove a key by position (seconds) in a given track. + Set the total length of the animation (in seconds). Note that length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping. - - + + - + + Set a flag indicating that the animation must loop. This is uses for correct interpolation of animation cycles, and for hinting the player that it must restart the animation. + + + + - + + + + + - Set the value of an existing key. - + + + - + - + - Set the transition curve (easing) for a specific key (see built-in math function "ease"). + Find the key index by time in a given track. Optionally, only find it if the exact time is given. - - + + - - - Return the transition curve (easing) for a specific key (see built-in math function "ease"). + Return the interpolation type of a given track, from the INTERPOLATION_* enum. @@ -2622,16 +2622,18 @@ Return the amount of keys in a given track. - + + + - Return the value of a given key in a given track. + Return the time at which the key is located. - + @@ -2639,164 +2641,205 @@ - Return the time at which the key is located. + Return the transition curve (easing) for a specific key (see built-in math function "ease"). - - - + - - - + - Find the key index by time in a given track. Optionally, only find it if the exact time is given. + Return the value of a given key in a given track. - + + + - - - Set the interpolation type of a given track, from the INTERPOLATION_* enum. + Get the path of a track. for more information on the path format, see [method track_set_path] - + - Return the interpolation type of a given track, from the INTERPOLATION_* enum. + Get the type of a track. - - - + - + + + + + - Return the interpolated value of a transform track at a given time (in seconds). An array consisting of 3 elements: position ([Vector3]), rotation ([Quat]) and scale ([Vector3]). + Insert a generic key in a given track. - + + + - - - Enable or disable interpolation for a whole track. By default tracks are interpolated. - - - + - Return whether interpolation is enabled or disabled for a whole track. By default tracks are interpolated. + Move a track down. - - - + - + + Move a track up. + + + + - + - Return all the key indices of a value track, given a position and delta time. + Remove a key by index in a given track. - - - + - + - + + Remove a key by position (seconds) in a given track. + + + + + + - Return all the key indices of a method track, given a position and delta time. - - - + - + - Return the method name of a method track. + Set the interpolation type of a given track, from the INTERPOLATION_* enum. - - - + + + - Return the arguments values to be called on a method track for a given key in a given track. + Set the transition curve (easing) for a specific key (see built-in math function "ease"). - - + + + + + + - Set the total length of the animation (in seconds). Note that length is not delimited by the last key, as this one may be before or after the end to ensure correct interpolation and looping. + Set the value of an existing key. - - - + + + + + - Return the total length of the animation (in seconds). + Set the path of a track. Paths must be valid scene-tree paths to a node, and must be specified starting from the parent node of the node that will reproduce the animation. Tracks that control properties or bones must append their name after the path, separated by ":". Example: "character/skeleton:ankle" or "character/mesh:transform/local" - - + + + + + + + + + + + + - Set a flag indicating that the animation must loop. This is uses for correct interpolation of animation cycles, and for hinting the player that it must restart the animation. + Insert a transform key for a transform track. - - + + + + + + - Return whether the animation has the loop flag set. + Return the interpolated value of a transform track at a given time (in seconds). An array consisting of 3 elements: position ([Vector3]), rotation ([Quat]) and scale ([Vector3]). - - + + + + + + + + + Return all the key indices of a value track, given a position and delta time. - - + + + + - + + + + + - Clear the animation (clear all tracks and reset all). + + No interpolation (nearest value). + + + Linear interpolation. + + + Cubic interpolation. + Value tracks set values in node properties, but only those which can be Interpolated. @@ -2806,14 +2849,11 @@ Method tracks call functions with given arguments per key. - - No interpolation (nearest value). + - - Linear interpolation. + - - Cubic interpolation. + @@ -2836,29 +2876,46 @@ Add an animation resource to the player, which will be later referenced by the "name" argument. - - + + - Remove an animation from the player (by supplying the same name used to add it). + Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip. - - + + + + - + + + + + + + - Rename an existing animation. - - + + + The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again. + + + + + If animations are queued to play, clear them. + + + + - + - Request whether an [Animation] name exist within the player. + Find an animation name by resource. @@ -2877,49 +2934,50 @@ Get the list of names of the animations stored in the player. - - - - - + + + + Return the mode in which the animation player processes. See [method set_animation_process_mode]. - + - - + Return the name of the animation that will be automatically played when the scene is loaded. - + + + - - - Specify a blend time (in seconds) between two animations, referenced by their names. + Get the blend time between two animations, referenced by their names. - + + + + + Return the name of the animation being played. + + + - - - - - Get the blend time between two animations, referenced by their names. + Get the length (in seconds) of the currently being played animation. - - - + + + - Set the default blend time between animations. + Get the position (in seconds) of the currently being played animation. @@ -2929,38 +2987,41 @@ Return the default blend time between animations. - - - - - - - - - + + + - Play a given animation by the animation name. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being true can play the animation backwards. + Return the playback position (in seconds) in an animation channel (or channel 0 if none is provided). - - - - - + + + - Play a given animation by the animation name in reverse. + Return path to root node (see [method set_root]). - - + + + + + Get the speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling). + + + + + + - Stop the currently playing animation. + Request whether an [Animation] name exist within the player. - + + + - Stop playback of animations (deprecated). + Return true if the player is active. @@ -2970,18 +3031,26 @@ Return whether an animation is playing. - - + + + + + + + + - Set the current animation (even if no playback occurs). Using set_current_animation() and set_active() are similar to calling play(). + Play a given animation by the animation name. Custom speed and blend times can be set. If custom speed is negative (-1), 'from_end' being true can play the animation backwards. - - - + + + + + - Return the name of the animation being played. + Play a given animation by the animation name in reverse. @@ -2991,38 +3060,44 @@ Queue an animation for playback once the current one is done. - + + + - If animations are queued to play, clear them. + Remove an animation from the player (by supplying the same name used to add it). - - + + + + - Set the player as active (playing). If false, it - will do nothing. + Rename an existing animation. - - - + + + + + - Return true if the player is active. + Seek the animation to a given position in time (in seconds). If 'update' is true, the animation will be updated too, otherwise it will be updated at process time. - - + + - Set a speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling). + Set the player as active (playing). If false, it + will do nothing. - - - + + + - Get the speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling). + Set the mode in which the animation player processes. By default, it processes on idle time (framerate dependent), but using fixed time works well for animating static collision bodies in 2D and 3D. See enum ANIMATION_PROCESS_*. @@ -3032,101 +3107,59 @@ Set the name of the animation that will be automatically played when the scene is loaded. - - - - - Return the name of the animation that will be automatically played when the scene is loaded. - - - - + + - - AnimationPlayer resolves animation track paths from this node (which is relative to itself), by default root is "..", but it can be changed. - - - - - - - Return path to root node (see [method set_root]). - - - - + - + - Seek the animation to a given position in time (in seconds). If 'update' is true, the animation will be updated too, otherwise it will be updated at process time. - - - - - - - Return the playback position (in seconds) in an animation channel (or channel 0 if none is provided). + Specify a blend time (in seconds) between two animations, referenced by their names. - - - - + + - Find an animation name by resource. - - - - - The animation player creates caches for faster access to the nodes it will animate. However, if a specific node is removed, it may not notice it, so clear_caches will force the player to search for the nodes again. + Set the current animation (even if no playback occurs). Using set_current_animation() and set_active() are similar to calling play(). - - + + - Set the mode in which the animation player processes. By default, it processes on idle time (framerate dependent), but using fixed time works well for animating static collision bodies in 2D and 3D. See enum ANIMATION_PROCESS_*. + Set the default blend time between animations. - - - + + + - Return the mode in which the animation player processes. See [method set_animation_process_mode]. + AnimationPlayer resolves animation track paths from this node (which is relative to itself), by default root is "..", but it can be changed. - - - + + + - Get the position (in seconds) of the currently being played animation. + Set a speed scaling ratio in a given animation channel (or channel 0 if none is provided). Default ratio is [i]1[/i] (no scaling). - - - + + + - Get the length (in seconds) of the currently being played animation. + Stop the currently playing animation. - - - + - Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip. + Stop playback of animations (deprecated). - - - - - Notifies when an animation starts playing. - - @@ -3136,6 +3169,13 @@ If the currently being played animation changes, this signal will notify of such change. + + + + + Notifies when an animation starts playing. + + Notifies when an animation finished playing. @@ -3168,53 +3208,26 @@ Add a node of a given type in the graph with given id. - - - - - - - Check if a node exists (by name). - - - - - - - - - - - Rename a node in the graph. - - - - - - + + - Get the node type, will return from NODE_* enum. - - + + - Return the input count for a given node. Different types of nodes have different amount of inputs. - + - - - Return the input source for a given node input. @@ -3226,11 +3239,13 @@ Set the animation for an animation node. - - - + + + + + @@ -3242,33 +3257,33 @@ - - + + - + - - - + - + - + + + - + @@ -3276,63 +3291,93 @@ - + - + - - + + - + - + - + + + - + + + - + - + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - + + + + + + - + @@ -3340,61 +3385,80 @@ - + + + - - + + + + + Check if a node exists (by name). - - + + + Return the input count for a given node. Different types of nodes have different amount of inputs. - + + + - - - + + Return the input source for a given node input. - + + + - - - - + + + Get the node type, will return from NODE_* enum. + + + + + + + + + + + Rename a node in the graph. - + - + - + @@ -3402,25 +3466,23 @@ - + + + - - - - - + + + - - - + @@ -3428,241 +3490,219 @@ - + + + - - - - + + - + - - - - - - - - - + - + - + - + - + - - - + + + - + - + - + - + - - - + - - - + - - - - - - - + - + - - - - - - - + - - + + - + + + + + - - - - + + - - + + - - + + - - - - - - - + - - - + - + - + - - + + + + - - + + - - - - - + - - + + - - - - - + - - + + + + - - + + - - - - - + + + - - - + + + + + - - + + + + + + - + + + + + - + + + + + @@ -3698,44 +3738,34 @@ General purpose area detection for 3D physics. Areas can be used for detection of objects that enter/exit them, as well as overriding space parameters (changing gravity, damping, etc). For this, use any space override different from AREA_SPACE_OVERRIDE_DISABLE and point gravity at the center of mass. - - - + + + - Set the space override mode. This mode controls how an area affects gravity and damp. - AREA_SPACE_OVERRIDE_DISABLED: This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. - AREA_SPACE_OVERRIDE_COMBINE: This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. - AREA_SPACE_OVERRIDE_COMBINE_REPLACE: This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. - AREA_SPACE_OVERRIDE_REPLACE: This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. - AREA_SPACE_OVERRIDE_REPLACE_COMBINE: This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. + Return the angular damp rate. - + - Return the space override mode. - - - - - - - When overriding space parameters, this method sets whether this area has a center of gravity. To set/get the location of the center of gravity, use [method set_gravity_vector]/[method get_gravity_vector]. + Return the physics layers this area can scan for collisions. - + + + - Return whether gravity is a point. A point gravity will attract objects towards it, as opposed to a gravity vector, which moves them in a given direction. + Return an individual bit on the collision mask. - - - + + + - Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. + Return the gravity intensity. @@ -3745,14 +3775,6 @@ Return the falloff factor for point gravity. - - - - - Set the gravity vector. This vector does not have to be normalized. - If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - @@ -3760,94 +3782,109 @@ Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - + + + + + Return the physics layer this area is in. + + + + + + - Set the gravity intensity. This is useful to alter the force of gravity without altering its direction. - This value multiplies the gravity vector, whether it is the given vector ([method set_gravity_vector]), or a calculated one (when using a center of gravity). + Return an individual bit on the layer mask. - + - Return the gravity intensity. + Return the linear damp rate. - - - + + + - Set the rate at which objects stop spinning in this area, if there are not any other forces making it spin. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. - In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return a list of the areas that are totally or partially inside this area. - + + + + + Return a list of the bodies ([PhysicsBody]) that are totally or partially inside this area. + + + - Return the angular damp rate. + Return the processing order of this area. - - - + + + - Set the rate at which objects stop moving in this area, if there are not any other forces moving it. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. - In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return the space override mode. - - + + - Return the linear damp rate. + Return whether gravity is a point. A point gravity will attract objects towards it, as opposed to a gravity vector, which moves them in a given direction. - - - + + + - Set the order in which the area is processed. Greater values mean the area gets processed first. This is useful for areas which have an space override different from AREA_SPACE_OVERRIDE_DISABLED or AREA_SPACE_OVERRIDE_COMBINE, as they replace values, and are thus order-dependent. - Areas with the same priority value get evaluated in an unpredictable order, and should be differentiated if evaluation order is to be important. + Return whether this area can be detected by other, monitoring, areas. - - + + - Return the processing order of this area. + Return whether this area detects bodies/areas entering/exiting it. - - + + + + - Set the physics layers this area can scan for collisions. + Return whether the area passed is totally or partially inside this area. - - + + + + - Return the physics layers this area can scan for collisions. + Return whether the body passed is totally or partially inside this area. - - + + - Set the physics layers this area is in. - Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. - A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. + Set the rate at which objects stop spinning in this area, if there are not any other forces making it spin. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. - - - + + + - Return the physics layer this area is in. + Set the physics layers this area can scan for collisions. @@ -3859,123 +3896,126 @@ Set/clear individual bits on the collision mask. This makes selecting the areas scanned easier. - - - - + + - Return an individual bit on the collision mask. + Set whether this area can detect bodies/areas entering/exiting it. - - - - + + - Set/clear individual bits on the layer mask. This makes getting an area in/out of only one layer easier. + Set the gravity intensity. This is useful to alter the force of gravity without altering its direction. + This value multiplies the gravity vector, whether it is the given vector ([method set_gravity_vector]), or a calculated one (when using a center of gravity). - - - - + + - Return an individual bit on the layer mask. + Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. - + - Set whether this area can be detected by other, monitoring, areas. Only areas need to be marked as monitorable. Bodies are always so. + When overriding space parameters, this method sets whether this area has a center of gravity. To set/get the location of the center of gravity, use [method set_gravity_vector]/[method get_gravity_vector]. - - - + + + - Return whether this area can be detected by other, monitoring, areas. + Set the gravity vector. This vector does not have to be normalized. + If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - + + - Set whether this area can detect bodies/areas entering/exiting it. + Set the physics layers this area is in. + Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. + A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. - - - + + + + + - Return whether this area detects bodies/areas entering/exiting it. + Set/clear individual bits on the layer mask. This makes getting an area in/out of only one layer easier. - - - + + + - Return a list of the bodies ([PhysicsBody]) that are totally or partially inside this area. + Set the rate at which objects stop moving in this area, if there are not any other forces moving it. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. - - - + + + - Return a list of the areas that are totally or partially inside this area. + Set whether this area can be detected by other, monitoring, areas. Only areas need to be marked as monitorable. Bodies are always so. - - - - + + - Return whether the body passed is totally or partially inside this area. + Set the order in which the area is processed. Greater values mean the area gets processed first. This is useful for areas which have an space override different from AREA_SPACE_OVERRIDE_DISABLED or AREA_SPACE_OVERRIDE_COMBINE, as they replace values, and are thus order-dependent. + Areas with the same priority value get evaluated in an unpredictable order, and should be differentiated if evaluation order is to be important. - - - - + + - Return whether the area passed is totally or partially inside this area. + Set the space override mode. This mode controls how an area affects gravity and damp. + AREA_SPACE_OVERRIDE_DISABLED: This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. + AREA_SPACE_OVERRIDE_COMBINE: This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. + AREA_SPACE_OVERRIDE_COMBINE_REPLACE: This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. + AREA_SPACE_OVERRIDE_REPLACE: This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. + AREA_SPACE_OVERRIDE_REPLACE_COMBINE: This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. - - + + - This signal is triggered only once when a body enters this area. The only parameter passed is the body that entered this area. + This signal is triggered only once when an area enters this area. The only parameter passed is the area that entered this area. - - + + - + - + - This signal triggers only once when a body enters this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape of the body that entered this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when an area enters this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. - + - This signal is triggered only once when an area enters this area. The only parameter passed is the area that entered this area. + This signal is triggered only once when an area exits this area. The only parameter passed is the area that exited this area. - + @@ -3985,17 +4025,17 @@ - This signal triggers only once when an area enters this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when an area exits this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. - + - This signal is triggered only once when a body exits this area. The only parameter passed is the body that exited this area. + This signal is triggered only once when a body enters this area. The only parameter passed is the body that entered this area. - + @@ -4005,27 +4045,27 @@ - This signal triggers only once when a body exits this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape exiting this area, and the fourth one is the index of the shape in this area that reported the exit. + This signal triggers only once when a body enters this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape of the body that entered this area, and the fourth one is the index of the shape in this area that reported the entering. - - + + - This signal is triggered only once when an area exits this area. The only parameter passed is the area that exited this area. + This signal is triggered only once when a body exits this area. The only parameter passed is the body that exited this area. - - + + - + - + - This signal triggers only once when an area exits this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when a body exits this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape exiting this area, and the fourth one is the index of the shape in this area that reported the exit. @@ -4040,44 +4080,34 @@ General purpose area detection for 2D physics. Areas can be used for detection of objects that enter/exit them, as well as overriding space parameters (changing gravity, damping, etc). For this, use any space override different from AREA_SPACE_OVERRIDE_DISABLE and point gravity at the center of mass. - - - - - Set the space override mode. This mode controls how an area affects gravity and damp. - AREA_SPACE_OVERRIDE_DISABLED: This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. - AREA_SPACE_OVERRIDE_COMBINE: This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. - AREA_SPACE_OVERRIDE_COMBINE_REPLACE: This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. - AREA_SPACE_OVERRIDE_REPLACE: This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. - AREA_SPACE_OVERRIDE_REPLACE_COMBINE: This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. - - - - + + - Return the space override mode. + Return the angular damp rate. - - - + + + - When overriding space parameters, this method sets whether this area has a center of gravity. To set/get the location of the center of gravity, use [method set_gravity_vector]/[method get_gravity_vector]. + Return the physics layers this area can scan for collisions. - + + + - Return whether gravity is a point. A point gravity will attract objects towards it, as opposed to a gravity vector, which moves them in a given direction. + Return an individual bit on the collision mask. - - - + + + - Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. + Return the gravity intensity. @@ -4087,14 +4117,6 @@ Return the falloff factor for point gravity. - - - - - Set the gravity vector. This vector does not have to be normalized. - If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - @@ -4102,94 +4124,109 @@ Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - + + + + + Return the physics layer this area is in. + + + + + + - Set the gravity intensity. This is useful to alter the force of gravity without altering its direction. - This value multiplies the gravity vector, whether it is the given vector ([method set_gravity_vector]), or a calculated one (when using a center of gravity). + Return an individual bit on the layer mask. - + - Return the gravity intensity. + Return the linear damp rate. - - - + + + - Set the rate at which objects stop moving in this area, if there are not any other forces moving it. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. - In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return a list of the areas that are totally or partially inside this area. - + + + + + Return a list of the bodies ([PhysicsBody2D]) that are totally or partially inside this area. + + + - Return the linear damp rate. + Return the processing order of this area. - - - + + + - Set the rate at which objects stop spinning in this area, if there are not any other forces making it spin. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. - In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. + Return the space override mode. - - + + - Return the angular damp rate. + Return whether gravity is a point. A point gravity will attract objects towards it, as opposed to a gravity vector, which moves them in a given direction. - - - + + + - Set the order in which the area is processed. Greater values mean the area gets processed first. This is useful for areas which have an space override different from AREA_SPACE_OVERRIDE_DISABLED or AREA_SPACE_OVERRIDE_COMBINE, as they replace values, and are thus order-dependent. - Areas with the same priority value get evaluated in an unpredictable order, and should be differentiated if evaluation order is to be important. + Return whether this area can be detected by other, monitoring, areas. - - + + - Return the processing order of this area. + Return whether this area detects bodies/areas entering/exiting it. - - + + + + - Set the physics layers this area can scan for collisions. + Return whether the area passed is totally or partially inside this area. - - + + + + - Return the physics layers this area can scan for collisions. + Return whether the body passed is totally or partially inside this area. - - + + - Set the physics layers this area is in. - Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. - A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. + Set the rate at which objects stop spinning in this area, if there are not any other forces making it spin. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. - - - + + + - Return the physics layer this area is in. + Set the physics layers this area can scan for collisions. @@ -4201,123 +4238,126 @@ Set/clear individual bits on the collision mask. This makes selecting the areas scanned easier. - - - - + + - Return an individual bit on the collision mask. + Set whether this area can detect bodies/areas entering/exiting it. - - - - + + - Set/clear individual bits on the layer mask. This makes getting an area in/out of only one layer easier. + Set the gravity intensity. This is useful to alter the force of gravity without altering its direction. + This value multiplies the gravity vector, whether it is the given vector ([method set_gravity_vector]), or a calculated one (when using a center of gravity). - - - - + + - Return an individual bit on the layer mask. + Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. - + - Set whether this area can detect bodies/areas entering/exiting it. + When overriding space parameters, this method sets whether this area has a center of gravity. To set/get the location of the center of gravity, use [method set_gravity_vector]/[method get_gravity_vector]. - - - + + + - Return whether this area detects bodies/areas entering/exiting it. + Set the gravity vector. This vector does not have to be normalized. + If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - + + - Set whether this area can be detected by other, monitoring, areas. Only areas need to be marked as monitorable. Bodies are always so. + Set the physics layers this area is in. + Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. + A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. - - - + + + + + - Return whether this area can be detected by other, monitoring, areas. + Set/clear individual bits on the layer mask. This makes getting an area in/out of only one layer easier. - - - + + + - Return a list of the bodies ([PhysicsBody2D]) that are totally or partially inside this area. + Set the rate at which objects stop moving in this area, if there are not any other forces moving it. The value is a fraction of its current speed, lost per second. Thus, a value of 1.0 should mean stopping immediately, and 0.0 means the object never stops. + In practice, as the fraction of speed lost gets smaller with each frame, a value of 1.0 does not mean the object will stop in exactly one second. Only when the physics calculations are done at 1 frame per second, it does stop in a second. - - - + + + - Return a list of the areas that are totally or partially inside this area. + Set whether this area can be detected by other, monitoring, areas. Only areas need to be marked as monitorable. Bodies are always so. - - - - + + - Return whether the body passed is totally or partially inside this area. + Set the order in which the area is processed. Greater values mean the area gets processed first. This is useful for areas which have an space override different from AREA_SPACE_OVERRIDE_DISABLED or AREA_SPACE_OVERRIDE_COMBINE, as they replace values, and are thus order-dependent. + Areas with the same priority value get evaluated in an unpredictable order, and should be differentiated if evaluation order is to be important. - - - - + + - Return whether the area passed is totally or partially inside this area. + Set the space override mode. This mode controls how an area affects gravity and damp. + AREA_SPACE_OVERRIDE_DISABLED: This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. + AREA_SPACE_OVERRIDE_COMBINE: This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. + AREA_SPACE_OVERRIDE_COMBINE_REPLACE: This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. + AREA_SPACE_OVERRIDE_REPLACE: This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. + AREA_SPACE_OVERRIDE_REPLACE_COMBINE: This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. - - + + - This signal is triggered only once when a body enters this area. The only parameter passed is the body that entered this area. + This signal is triggered only once when an area enters this area. The only parameter passed is the area that entered this area. - - + + - + - + - This signal triggers only once when a body enters this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape of the body that entered this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when an area enters this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. - + - This signal is triggered only once when an area enters this area. The only parameter passed is the area that entered this area. + This signal is triggered only once when an area exits this area. The only parameter passed is the area that exited this area. - + @@ -4327,17 +4367,17 @@ - This signal triggers only once when an area enters this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when an area exits this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. - + - This signal is triggered only once when a body exits this area. The only parameter passed is the body that exited this area. + This signal is triggered only once when a body enters this area. The only parameter passed is the body that entered this area. - + @@ -4347,27 +4387,27 @@ - This signal triggers only once when a body exits this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape exiting this area, and the fourth one is the index of the shape in this area that reported the exit. + This signal triggers only once when a body enters this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape of the body that entered this area, and the fourth one is the index of the shape in this area that reported the entering. - - + + - This signal is triggered only once when an area exits this area. The only parameter passed is the area that exited this area. + This signal is triggered only once when a body exits this area. The only parameter passed is the body that exited this area. - - + + - + - + - This signal triggers only once when an area exits this area. The first parameter is the area's [RID]. The second one is the area as an object. The third one is the index of the shape entering this area, and the fourth one is the index of the shape in this area that reported the entering. + This signal triggers only once when a body exits this area. The first parameter is the body's [RID]. The second one is the body as an object. The third one is the index of the shape exiting this area, and the fourth one is the index of the shape in this area that reported the exit. @@ -4382,6 +4422,69 @@ Generic array, contains several elements of any type, accessible by numerical index starting at 0. Negative indices can be used to count from the right, like in Python. Arrays are always passed by reference. + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + + + + + + + + Construct an array from a [RawArray]. + + @@ -4535,69 +4638,6 @@ Sort the array using a custom method. The arguments are an object that holds the method and the name of such method. The custom method receives two arguments (a pair of elements from the array) and must return true if the first argument is less than the second, and return false otherwise. - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - - - - - - - - Construct an array from a [RawArray]. - - @@ -4608,21 +4648,15 @@ - - - - - - - - - + + + @@ -4632,15 +4666,21 @@ + + + + + + - - - + + + @@ -4656,123 +4696,100 @@ AudioServer is a low level server interface for audio access. It is in charge of creating sample data (playable audio) as well as its playback via a voice interface. - - - - - - - - - - - Create an audio sample, return a [RID] referencing it. The sample will be created with a given format (from the SAMPLE_FORMAT_* enum), a total length (in samples, not bytes), in either stereo or mono. - Even if a stereo sample consists of a left sample and a right sample, it still counts as one sample for length purposes. - - - - - - + + - Set the description of an audio sample. Mainly used for organization. + Free a [RID] resource. - - + + - - - Return the description of an audio sample. Mainly used for organization. + Return the global scale for event-based stream playback. - - + + - - - Return the format of the audio sample, in the form of the SAMPLE_FORMAT_* enum. + Return the global scale for all voices. - - + + - - - Return whether the sample is stereo (2 channels). + Return the global scale for stream playback. - - + + - + + + + + - Return the length in samples (not bytes) of the audio sample. Even if a stereo sample consists of a left sample and a right sample, it still counts as one sample for length purposes. + Create an audio sample, return a [RID] referencing it. The sample will be created with a given format (from the SAMPLE_FORMAT_* enum), a total length (in samples, not bytes), in either stereo or mono. + Even if a stereo sample consists of a left sample and a right sample, it still counts as one sample for length purposes. - + + + - - - Set the sample data for a given sample as an array of floats. The length must be equal to the sample length or an error will be produced. - For this method, a stereo sample is made from two samples. Thus, in case of a stereo sample, the array length must be twice the length returned by [method sample_get_length]. - Trying to alter a SAMPLE_FORMAT_IMA_ADPCM sample is not supported. It will throw an error to the console, but will not alter the sample data. + Return the sample data as an array of bytes. The length will be the expected length in bytes. - + + + - - - - - Set the sample data for a given sample as an array of bytes. The length must be equal to the sample length expected in bytes or an error will be produced. The byte length can be calculated as follows: - Get the sample length ([method sample_get_length]). - If the sample format is SAMPLE_FORMAT_PCM16, multiply it by 2. - If the sample format is SAMPLE_FORMAT_IMA_ADPCM, divide it by 2 (rounding any fraction up), then add 4. - If the sample is stereo ([method sample_is_stereo]), multiply it by 2. + + + Return the description of an audio sample. Mainly used for organization. - - + + - Return the sample data as an array of bytes. The length will be the expected length in bytes. + Return the format of the audio sample, in the form of the SAMPLE_FORMAT_* enum. - + + + - - - Change the default mix rate of a given sample. + Return the length in samples (not bytes) of the audio sample. Even if a stereo sample consists of a left sample and a right sample, it still counts as one sample for length purposes. - + - Return the mix rate of the given sample. + Return the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - + + + - - - Set the loop format for a sample from the SAMPLE_LOOP_* enum. As a warning, Ping Pong loops may not be available on some hardware-mixing platforms. + Return the final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. @@ -4784,167 +4801,146 @@ Return the loop format for a sample, as a value from the SAMPLE_LOOP_* enum. - + + + - - - Set the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. + Return the mix rate of the given sample. - - + + - Return the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. + Return whether the sample is stereo (2 channels). - + - + - Set the final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. + Set the sample data for a given sample as an array of bytes. The length must be equal to the sample length expected in bytes or an error will be produced. The byte length can be calculated as follows: + Get the sample length ([method sample_get_length]). + If the sample format is SAMPLE_FORMAT_PCM16, multiply it by 2. + If the sample format is SAMPLE_FORMAT_IMA_ADPCM, divide it by 2 (rounding any fraction up), then add 4. + If the sample is stereo ([method sample_is_stereo]), multiply it by 2. - - - + + + - Return the final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - - - - - - Allocate a voice for playback. Voices are persistent. A voice can play a single sample at the same time. See [method sample_create]. + Set the description of an audio sample. Mainly used for organization. - - + + - + - Start playback of a given voice using a given sample. If the voice was already playing it will be restarted. + Set the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - + + - + - Change the volume of a currently playing voice. Volume is expressed as linear gain where 0.0 is mute and 1.0 is default. + Set the final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - - - - - + + - + - Change the pan of a currently playing voice and, optionally, the depth and height for a positional/3D sound. Panning values are expressed within the -1 to +1 range. + Set the loop format for a sample from the SAMPLE_LOOP_* enum. As a warning, Ping Pong loops may not be available on some hardware-mixing platforms. - - - - - - - - + + - + - Set a resonant filter post processing for the voice. Filter type is a value from the FILTER_* enum. + Change the default mix rate of a given sample. - - + + - + - Set chorus send post processing for the voice (from 0 to 1). + Set the sample data for a given sample as an array of floats. The length must be equal to the sample length or an error will be produced. + For this method, a stereo sample is made from two samples. Thus, in case of a stereo sample, the array length must be twice the length returned by [method sample_get_length]. + Trying to alter a SAMPLE_FORMAT_IMA_ADPCM sample is not supported. It will throw an error to the console, but will not alter the sample data. - - - - - - + + - Set the reverb send post processing for the voice (from 0 to 1) and the reverb type, from the REVERB_* enum. + Set global scale for event-based stream ([EventStream]) playback. Default is 1.0. - - - - + + - Set a different playback mix rate for the given voice. + Set global scale for all voices (not including streams). Default is 1.0. - - - - + + - Set whether a given voice is positional. This is only interpreted as a hint and used for backends that may support binaural encoding. + Set global scale for stream playback. Default is 1.0. - - + + - - - Return the current volume for a given voice. + Allocate a voice for playback. Voices are persistent. A voice can play a single sample at the same time. See [method sample_create]. - + - Return the current pan for a given voice (-1 to +1 range). + Return the current chorus send for a given voice (0 to 1). - + - Return the current pan height for a given voice (-1 to +1 range). + Return the current filter cutoff (in hz) for a given voice. - + - Return the current pan depth for a given voice (-1 to +1 range). + Return the current filter resonance for a given voice. @@ -4956,40 +4952,40 @@ Return the current selected filter type for a given voice, from the FILTER_* enum. - - + + - Return the current filter cutoff (in hz) for a given voice. + Return the current mix rate for a given voice. - + - Return the current filter resonance for a given voice. + Return the current pan for a given voice (-1 to +1 range). - + - Return the current chorus send for a given voice (0 to 1). + Return the current pan depth for a given voice (-1 to +1 range). - - + + - Return the current reverb type for a given voice from the REVERB_* enum. + Return the current pan height for a given voice (-1 to +1 range). @@ -5001,13 +4997,22 @@ Return the current reverb send for a given voice (0 to 1). - + - Return the current mix rate for a given voice. + Return the current reverb type for a given voice from the REVERB_* enum. + + + + + + + + + Return the current volume for a given voice. @@ -5019,82 +5024,99 @@ Return whether the current voice is positional. See [method voice_set_positional]. - + + + - Stop a given voice. + Start playback of a given voice using a given sample. If the voice was already playing it will be restarted. - - + + + + - Free a [RID] resource. + Set chorus send post processing for the voice (from 0 to 1). - - + + + + + + + + + + - Set global scale for stream playback. Default is 1.0. + Set a resonant filter post processing for the voice. Filter type is a value from the FILTER_* enum. - - - + + + + + - Return the global scale for stream playback. + Set a different playback mix rate for the given voice. - - + + + + + + + + - Set global scale for all voices (not including streams). Default is 1.0. + Change the pan of a currently playing voice and, optionally, the depth and height for a positional/3D sound. Panning values are expressed within the -1 to +1 range. - - - + + + + + - Return the global scale for all voices. + Set whether a given voice is positional. This is only interpreted as a hint and used for backends that may support binaural encoding. - - + + + + + + - Set global scale for event-based stream ([EventStream]) playback. Default is 1.0. + Set the reverb send post processing for the voice (from 0 to 1) and the reverb type, from the REVERB_* enum. - - - + + + + + - Return the global scale for event-based stream playback. + Change the volume of a currently playing voice. Volume is expressed as linear gain where 0.0 is mute and 1.0 is default. + + + + + + + Stop a given voice. - - Sample format is 8 bits, signed. - - - Sample format is 16 bits, little-endian, signed. - - - Sample format is IMA-ADPCM compressed. - - - Sample does not loop. - - - Sample loops in forward mode. - - - Sample loops in a bidirectional way. - Filter is disabled. @@ -5125,6 +5147,24 @@ Large reverb room with long decay. + + Sample format is 8 bits, signed. + + + Sample does not loop. + + + Sample format is 16 bits, little-endian, signed. + + + Sample loops in forward mode. + + + Sample format is IMA-ADPCM compressed. + + + Sample loops in a bidirectional way. + @@ -5194,73 +5234,73 @@ - - - + + + - + + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + - - - + + + - - - + + + - - - + @@ -5288,11 +5328,11 @@ Node for back-buffering the currently displayed screen. The region defined in the BackBufferCopy node is bufferized with the content of the screen it covers, or the entire screen according to the copy mode set. Accessing this buffer is done with the texscreen() shader instruction. - - - + + + - Defines the area covered by the BackBufferCopy. + Return the copy mode currently applied to the BackBufferCopy (refer to constants section). @@ -5309,11 +5349,11 @@ Set the copy mode of the BackBufferCopy (refer to constants section). - - - + + + - Return the copy mode currently applied to the BackBufferCopy (refer to constants section). + Defines the area covered by the BackBufferCopy. @@ -5335,87 +5375,83 @@ - - + + + + - - - + - - + + - - + + - - - - - - - - + + - - + + + + - - + + - - - - - + + + - - - + + + - + + + - - - + + + - + - - - + + + @@ -5425,220 +5461,220 @@ - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - + - - - + + + + + + + + + - + - - - + + + - - - + + + - - + + - - - + + + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - - + + - - - - + + - - - - @@ -5649,6 +5685,10 @@ + + + + @@ -5657,12 +5697,6 @@ - - - - - - @@ -5675,6 +5709,12 @@ + + + + + + @@ -5691,19 +5731,25 @@ - + + + - - - - + + + + + + + + @@ -5713,12 +5759,6 @@ - - - - - - @@ -5753,53 +5793,59 @@ Called when button is toggled (only if toggle_mode is active). - - - + + + - Set the button to pressed state (only if toggle_mode is active). + Return the state of the click_on_press property (see [method set_click_on_press]). - - + + - If toggle_mode is active, return whether the button is toggled. If toggle_mode is not active, return whether the button is pressed down. + Return the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the DRAW_* enum. - - + + - Return true if mouse entered the button before it exit. + Returns focus access mode used when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]). - - - + + + - Set the button toggle_mode property. Toggle mode makes the button flip state between pressed and unpressed each time its area is clicked. - + - Return the toggle_mode property (see [method set_toggle_mode]). + Return whether the button is in disabled state (see [method set_disabled]). - - - + + + - Set the button into disabled state. When a button is disabled, it can't be clicked or toggled. + Return true if mouse entered the button before it exit. - + - Return whether the button is in disabled state (see [method set_disabled]). + If toggle_mode is active, return whether the button is toggled. If toggle_mode is not active, return whether the button is pressed down. + + + + + + + Return the toggle_mode property (see [method set_toggle_mode]). @@ -5809,18 +5855,11 @@ Set the button click_on_press mode. This mode generates click events when a mouse button or key is just pressed (by default events are generated when the button/keys are released and both press and release occur in the visual area of the Button). - - - - - Return the state of the click_on_press property (see [method set_click_on_press]). - - - - - + + + - Return the visual state used to draw the button. This is useful mainly when implementing your own draw code by either overriding _draw() or connecting to "draw" signal. The visual state of the button is defined by the DRAW_* enum. + Set the button into disabled state. When a button is disabled, it can't be clicked or toggled. @@ -5830,11 +5869,11 @@ Sets the focus access mode to use when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]). - - - + + + - Returns focus access mode used when switching between enabled/disabled (see [method Control.set_focus_mode] and [method set_disabled]). + Set the button to pressed state (only if toggle_mode is active). @@ -5843,14 +5882,20 @@ - - - + + + + Set the button toggle_mode property. Toggle mode makes the button flip state between pressed and unpressed each time its area is clicked. + + + This signal is emitted every time the button is pressed or toggled. + + This signal is emitted when the button was released. @@ -5863,11 +5908,6 @@ This signal is emitted when the button was just toggled between pressed and normal states (only if toggle_mode is active). The new state is contained in the [i]pressed[/i] argument. - - - This signal is emitted every time the button is pressed or toggled. - - @@ -5902,14 +5942,6 @@ - - - - - - - - @@ -5918,11 +5950,9 @@ - - - - - + + + @@ -5932,9 +5962,19 @@ - - - + + + + + + + + + + + + + @@ -5948,26 +5988,19 @@ - - - - + + - - - - - + - - Set the total font height (ascent plus descent) in pixels. - - - - + + + + + - Set the font ascent (number of pixels above the baseline). + Add a character to the font, where [i]character[/i] is the unicode value, [i]texture[/i] is the texture index, [i]rect[/i] is the region in the texture (in pixels!), [i]align[/i] is the (optional) alignment for the character and [i]advance[/i] is the (optional) advance. @@ -5981,17 +6014,6 @@ Add a kerning pair to the [BitmapFont] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. - - - - - - - - - Return a kerning pair as a difference. - - @@ -5999,25 +6021,45 @@ Add a texture to the [BitmapFont]. - - - - - - + + + Clear all the font data. + + + + + + - + + + + + + + - + - Add a character to the font, where [i]character[/i] is the unicode value, [i]texture[/i] is the texture index, [i]rect[/i] is the region in the texture (in pixels!), [i]align[/i] is the (optional) alignment for the character and [i]advance[/i] is the (optional) advance. + Return the size of a character, optionally taking kerning into account if the next character is provided. - + + + + + + + + + + + + Return a kerning pair as a difference. @@ -6028,26 +6070,23 @@ - - + + - - - - - Return the size of a character, optionally taking kerning into account if the next character is provided. - - + + + Set the font ascent (number of pixels above the baseline). - + + + - Clear all the font data. @@ -6056,10 +6095,11 @@ - - - + + + + Set the total font height (ascent plus descent) in pixels. @@ -6129,13 +6169,6 @@ Box shape resource, which can be set into a [PhysicsBody] or area. - - - - - Set the half extents for the shape. - - @@ -6143,6 +6176,13 @@ Return the half extents of the shape. + + + + + Set the half extents for the shape. + + @@ -6155,11 +6195,18 @@ Button is the standard themed button. It can contain text and an icon, and will display them according to the current [Theme]. - - - + + + - Set the button text, which will be displayed inside the button area. + Return the button icon. + + + + + + + Return the state of the [i]clip_text[/i] property (see [method set_clip_text]) @@ -6169,25 +6216,25 @@ Return the button text. - - - + + + - Set the icon that will be displayed next to the text inside the button area. + Return the text alignment policy. - - + + - Return the button icon. + Return the state of the [i]flat[/i] property (see [method set_flat]). - - + + - Set the [i]flat[/i] property of a Button. Flat buttons don't display decoration unless hovered or pressed. + Set the icon that will be displayed next to the text inside the button area. @@ -6197,32 +6244,25 @@ Set the [i]clip_text[/i] property of a Button. When this property is enabled, text that is too large to fit the button is clipped, when disabled (default) the Button will always be wide enough to hold the text. - - - - - Return the state of the [i]clip_text[/i] property (see [method set_clip_text]) - - - - + + - Set the text alignment policy, using one of the ALIGN_* constants. + Set the [i]flat[/i] property of a Button. Flat buttons don't display decoration unless hovered or pressed. - - - + + + - Return the text alignment policy. + Set the button text, which will be displayed inside the button area. - - - + + + - Return the state of the [i]flat[/i] property (see [method set_flat]). + Set the text alignment policy, using one of the ALIGN_* constants. @@ -6238,28 +6278,28 @@ - + - + + + + + - - - - - - - + + + @@ -6287,31 +6327,23 @@ Append a new button to the array, with the specified icon and text. - - - - - + - Define the text of the specified button. + Remove all buttons from the array. - + - - - Set the icon of the specified button. + Remove the specified button in the array. - - + + - - - Return the text of the specified button. + Return the amount of buttons in the array. @@ -6323,44 +6355,52 @@ Return the icon of the specified button. - - + + + + - Return the amount of buttons in the array. + Return the text of the specified button. - + - Return the index of the currently selected button in the array. + Return the index of the currently hovered button in the array. - + - Return the index of the currently hovered button in the array. + Return the index of the currently selected button in the array. - + + + - Select a button in the array based on the given index. + Set the icon of the specified button. - + + + - Remove the specified button in the array. + Define the text of the specified button. - + + + - Remove all buttons from the array. + Select a button in the array based on the given index. @@ -6399,32 +6439,32 @@ Group of [Button]. All direct and indirect children buttons become radios. Only one allows being pressed. - - + + - Return the pressed button. + Return the list of all the buttons in the group. - - + + - Return the index of the pressed button (by tree order). + Return the focused button. - + - Return the focused button. + Return the pressed button. - - + + - Return the list of all the buttons in the group. + Return the index of the pressed button (by tree order). @@ -6450,85 +6490,62 @@ Camera is a special node that displays what is visible from its current location. Cameras register themselves in the nearest [Viewport] node (when ascending the tree). Only one camera can be active per viewport. If no viewport is available ascending the tree, the Camera will register in the global viewport. In other words, a Camera just provides [i]3D[/i] display capabilities to a [Viewport], and, without one, a scene registered in that [Viewport] (or higher viewports) can't be displayed. - - - - - + - Return a normal vector in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - - + + - - + Get the camera transform. Subclassed cameras (such as CharacterCamera) may provide different transforms than the [Node] transform. - - + + - - - Return a 3D position in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - - + + - - - Return how a 3D point in worldspace maps to a 2D coordinate in the [Viewport] rectangle. - - + + - - - - + + - - - - - - - - - + + + - Set the camera projection to perspective mode, by specifying a [i]FOV[/i] Y angle in degrees (FOV means Field of View), and the [i]near[/i] and [i]far[/i] clip planes in worldspace units. - - - - - - - + + + - Set the camera projection to orthogonal mode, by specifying a width and the [i]near[/i] and [i]far[/i] clip planes in worldspace units. (As a hint, 2D games often use this projection, with values specified in pixels) - + + + - Make this camera the current Camera for the [Viewport] (see class description). If the Camera Node is outside the scene tree, it will attempt to become current once it's added. - + + + @@ -6539,91 +6556,114 @@ Return whether the Camera is the current one in the [Viewport], or plans to become current (if outside the scene tree). - - + + + + - Get the camera transform. Subclassed cameras (such as CharacterCamera) may provide different transforms than the [Node] transform. - - - + + Make this camera the current Camera for the [Viewport] (see class description). If the Camera Node is outside the scene tree, it will attempt to become current once it's added. - - + + + + - - + + + + - - + + + + + Return a normal vector in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - - + + + + + Return a 3D position in worldspace, that is the result of projecting a point on the [Viewport] rectangle by the camera projection. This is useful for casting rays in the form of (origin,normal) for object intersection or picking. - - + + - - - + + + - - + + + + + + + Set the camera projection to orthogonal mode, by specifying a width and the [i]near[/i] and [i]far[/i] clip planes in worldspace units. (As a hint, 2D games often use this projection, with values specified in pixels) - - - + + + + + + + + Set the camera projection to perspective mode, by specifying a [i]FOV[/i] Y angle in degrees (FOV means Field of View), and the [i]near[/i] and [i]far[/i] clip planes in worldspace units. - - + + - - + + + + + Return how a 3D point in worldspace maps to a 2D coordinate in the [Viewport] rectangle. + + + + Perspective Projection (object's size on the screen becomes smaller when far away). Orthogonal Projection (objects remain the same size on the screen no matter how far away they are). - - - - @@ -6635,24 +6675,13 @@ This node is intended to be a simple helper get get things going quickly and it may happen often that more functionality is desired to change how the camera works. To make your own custom camera node, simply inherit from [Node2D] and change the transform of the canvas by calling get_viewport().set_canvas_transform(m) in [Viewport]. - - - - - Set the scroll offset. Useful for looking around or camera shake animations. - - - - - + - Return the scroll offset. - - - + + Force the camera to update scroll immediately. @@ -6661,159 +6690,73 @@ - - - - - - - - + + + Return the camera position. - - - Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene. - - - - - - - - + + - Return true of this is the current camera (see [method make_current]). - - - - - - - - - Set the scrolling limit in pixels. - - + + - Return the scrolling limit in pixels. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + Return the margins needed to drag the camera (see [method set_drag_margin]). - + - - - - - - - - - - - - - Set the margins needed to drag the camera (relative to the screen size). Margin uses the MARGIN_* enum. Drag margins of 0,0,0,0 will keep the camera at the center of the screen, while drag margins of 1,1,1,1 will only move when the camera is at the edges. - - - - + + - Return the margins needed to drag the camera (see [method set_drag_margin]). + Return the scrolling limit in pixels. - + - Return the camera position. + Return the scroll offset. - - + + - - - - - - - - - - - - - - + + - - - - - - + Return true of this is the current camera (see [method make_current]). @@ -6822,195 +6765,172 @@ - - - Force the camera to update scroll immediately. - - - - - - - - - - - - - Base class of anything 2D. - - - Base class of anything 2D. Canvas items are laid out in a tree and children inherit and extend the transform of their parent. CanvasItem is extended by [Control], for anything GUI related, and by [Node2D] for anything 2D engine related. - Any CanvasItem can draw. For this, the "update" function must be called, then NOTIFICATION_DRAW will be received on idle time to request redraw. Because of this, canvas items don't need to be redraw on every frame, improving the performance significantly. Several functions for drawing on the CanvasItem are provided (see draw_* functions). They can only be used inside the notification, signal or _draw() overrides function, though. - Canvas items are draw in tree order. By default, children are on top of their parents so a root CanvasItem will be drawn behind everything (this can be changed per item though). - Canvas items can also be hidden (hiding also their subtree). They provide many means for changing standard parameters such as opacity (for it and the subtree) and self opacity, blend mode. - Ultimately, a transform notification can be requested, which will notify the node that its global position changed in case the parent tree changed. - - - - - Called (if exists) to draw the canvas item. - - - - - - - Used for editing, returns an opaque value representing the transform state. - - - - - - - - - - - - - - - - - Used for editing, handle rotation. - - - - - - - Return a rect containing the editable contents of the item. - - - - + + - - + + - Return the canvas item RID used by [VisualServer] for this item. - + - Return true if this CanvasItem is visible. It may be invisible because itself or a parent canvas item is hidden. - - - + - Return true if this CanvasItem is hidden. Note that the CanvasItem may not be visible, but as long as it's not hidden ([method hide] called) the function will return false. + Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene. - + + + - Show the CanvasItem currently hidden. - + + + + + - Hide the CanvasItem currently visible. + Set the margins needed to drag the camera (relative to the screen size). Margin uses the MARGIN_* enum. Drag margins of 0,0,0,0 will keep the camera at the center of the screen, while drag margins of 1,1,1,1 will only move when the camera is at the edges. - - + + - + + + - Queue the CanvasItem for update. NOTIFICATION_DRAW will be called on idle time to request redraw. - - + + - Set as toplevel. This means that it will not inherit transform from parent canvas items. - - - + + + - Return if set as toplevel. See [method set_as_toplevel]. - - + + + + - Set the blending mode from enum BLEND_MODE_*. + Set the scrolling limit in pixels. - - - + + + - Return the current blending mode from enum BLEND_MODE_*. + Set the scroll offset. Useful for looking around or camera shake animations. - - + + - - - + + + - - + + - Set canvas item opacity. This will affect the canvas item and all the children. - - - + + + - Return the canvas item opacity. This affects the canvas item and all the children. - - - + + + + + + + + + + + Base class of anything 2D. + + + Base class of anything 2D. Canvas items are laid out in a tree and children inherit and extend the transform of their parent. CanvasItem is extended by [Control], for anything GUI related, and by [Node2D] for anything 2D engine related. + Any CanvasItem can draw. For this, the "update" function must be called, then NOTIFICATION_DRAW will be received on idle time to request redraw. Because of this, canvas items don't need to be redraw on every frame, improving the performance significantly. Several functions for drawing on the CanvasItem are provided (see draw_* functions). They can only be used inside the notification, signal or _draw() overrides function, though. + Canvas items are draw in tree order. By default, children are on top of their parents so a root CanvasItem will be drawn behind everything (this can be changed per item though). + Canvas items can also be hidden (hiding also their subtree). They provide many means for changing standard parameters such as opacity (for it and the subtree) and self opacity, blend mode. + Ultimately, a transform notification can be requested, which will notify the node that its global position changed in case the parent tree changed. + + + - Set canvas item self-opacity. This does not affect the opacity of children items. + Called (if exists) to draw the canvas item. - + + + + + + + + + + + - Return the canvas item self-opacity. + Draw a string character using a custom font. Returns the advance, depending on the char width and kerning with an optional next char. - - + + + + + + - Sets whether the canvas item is drawn behind its parent. + Draw a colored circle. - - - + + + + + + + + + - Return whether the item is drawn behind its parent. + Draw a colored polygon of any amount of points, convex or concave. @@ -7026,6 +6946,34 @@ Draw a line from a 2D point to another, with a given color and width. + + + + + + + + + + + Draw a polygon of any amount of points, convex or concave. + + + + + + + + + + + + + + + Draw a custom primitive, 1 point for a point, 2 points for a line, 3 points for a triangle and 4 points for a quad. + + @@ -7035,15 +6983,39 @@ Draw a colored rectangle. - + - + - + - Draw a colored circle. + Set a custom transform for drawing. Anything drawn afterwards will be transformed by this. + + + + + + + + + + + + + + + Draw a string using a custom font. + + + + + + + + + Draw a styled rectangle. @@ -7087,105 +7059,62 @@ Draw a textured rectangle region at a given position, optionally modulated by a color. Transpose swaps the x and y coordinates when reading the texture. - - - - - + - Draw a styled rectangle. - - - - - - - - - - + + - Draw a custom primitive, 1 point for a point, 2 points for a line, 3 points for a triangle and 4 points for a quad. + Used for editing, handle rotation. - - - - - - - - + + - Draw a polygon of any amount of points, convex or concave. - - - - - - - - + + - Draw a colored polygon of any amount of points, convex or concave. + Used for editing, returns an opaque value representing the transform state. - - - - - - - - - - - + + + - Draw a string using a custom font. + Return the current blending mode from enum BLEND_MODE_*. - - + + - - - - - - - - - - - Draw a string character using a custom font. Returns the advance, depending on the char width and kerning with an optional next char. - - - - - - - + + + - Set a custom transform for drawing. Anything drawn afterwards will be transformed by this. + Return the canvas item RID used by [VisualServer] for this item. - + + + + + + + @@ -7198,20 +7127,21 @@ - - + + - + + Return a rect containing the editable contents of the item. - - + + @@ -7222,14 +7152,46 @@ - - + + - - + + + + + Return the canvas item opacity. This affects the canvas item and all the children. + + + + + + + Return the canvas item self-opacity. + + + + + + + + + + + + + + + + + + + + + + @@ -7240,28 +7202,37 @@ - - - + + Hide the CanvasItem currently visible. - - + + + Return whether the item is drawn behind its parent. - - - + + + + Return true if this CanvasItem is hidden. Note that the CanvasItem may not be visible, but as long as it's not hidden ([method hide] called) the function will return false. - + + + + + Return if set as toplevel. See [method set_as_toplevel]. + + + + Return true if this CanvasItem is visible. It may be invisible because itself or a parent canvas item is hidden. @@ -7272,26 +7243,95 @@ + + + + + Set as toplevel. This means that it will not inherit transform from parent canvas items. + + + + + + + Set the blending mode from enum BLEND_MODE_*. + + + + + + + Sets whether the canvas item is drawn behind its parent. + + + + + + + + + + + + + + + + + + + + + + + + + Set canvas item opacity. This will affect the canvas item and all the children. + + + + + + + Set canvas item self-opacity. This does not affect the opacity of children items. + + + + + + + + + + + Show the CanvasItem currently hidden. + + + + + Queue the CanvasItem for update. NOTIFICATION_DRAW will be called on idle time to request redraw. + + - + - Emitted when the item rect has changed. + Emitted when the CanvasItem must redraw. This can only be connected realtime, as deferred will not allow drawing. - + - Emitted when the CanvasItem must redraw. This can only be connected realtime, as deferred will not allow drawing. + Emitted when becoming hidden. - + - Emitted when the visibility (hidden/visible) changes. + Emitted when the item rect has changed. - + - Emitted when becoming hidden. + Emitted when the visibility (hidden/visible) changes. @@ -7311,6 +7351,9 @@ Mix blending mode. Colors are assumed to be premultiplied by the alpha (opacity) value. + + Canvas item transform has changed. Only received if requested. + CanvasItem is requested to draw. @@ -7323,9 +7366,6 @@ Canvas item has exited the canvas. - - Canvas item transform has changed. Only received if requested. - @@ -7334,29 +7374,35 @@ - - - - - - - + - + + + + + + + + + + + - + + + @@ -7366,12 +7412,6 @@ - - - - - - @@ -7410,13 +7450,6 @@ Canvas Item layer. [CanvasItem] nodes that are direct or indirect children of a [CanvasLayer] will be drawn in that layer. The layer is a numeric index that defines the draw order. The default 2D scene renders with index 0, so a [CanvasLayer] with index -1 will be drawn below, and one with index 1 will be drawn above. This is very useful for HUDs (in layer 1+ or above), or backgrounds (in layer -1 or below). - - - - - Set the layer index, determines the draw order, a lower value will be below a higher one. - - @@ -7424,88 +7457,95 @@ Return the layer index, determines the draw order, a lower value will be below a higher one. - - - + + + - Set the base transform for this layer. + Return the base offset for this layer (helper). - - + + - Return the base transform for this layer. + Return the base rotation for this layer (helper). - - - + + + - Set the base offset for this layer (helper). + Get rotation of the layer in degree. - + - Return the base offset for this layer (helper). + Return the base scale for this layer (helper). - - - + + + - Set the base rotation for this layer (helper). + Return the base transform for this layer. - - + + - Return the base rotation for this layer (helper). + Return the viewport RID for this layer. - - - + + + - Set rotation of the layer in degree. + Return the [World2D] used by this layer. - - - + + + - Get rotation of the layer in degree. + Set the layer index, determines the draw order, a lower value will be below a higher one. - - + + - Set the base scale for this layer (helper). + Set the base offset for this layer (helper). - - - + + + - Return the base scale for this layer (helper). + Set the base rotation for this layer (helper). - - - + + + - Return the [World2D] used by this layer. + Set rotation of the layer in degree. - - - + + + + + Set the base scale for this layer (helper). + + + + + - Return the viewport RID for this layer. + Set the base transform for this layer. @@ -7520,13 +7560,6 @@ CanvasModulate tints the canvas elements using its asigned color - - - - - Sets the canvas tint color - - @@ -7534,6 +7567,13 @@ Gets the canvas tint color + + + + + Sets the canvas tint color + + @@ -7546,11 +7586,11 @@ Capsule shape resource, which can be set into a [PhysicsBody] or area. - - - + + + - Set the capsule radius. + Return the capsule height. @@ -7567,11 +7607,11 @@ Set the capsule height. - - - + + + - Return the capsule height. + Set the capsule radius. @@ -7586,11 +7626,11 @@ Capsule 2D shape resource for physics. A capsule (or sometimes called "pill") is like a line grown in all directions. It has a radius and a height, and is often useful for modeling biped characters. - - - + + + - Set the radius of the [CapsuleShape2D]. + Return the height of the [CapsuleShape2D]. @@ -7607,11 +7647,11 @@ Set the height of the [CapsuleShape2D]. - - - + + + - Return the height of the [CapsuleShape2D]. + Set the radius of the [CapsuleShape2D]. @@ -7626,13 +7666,6 @@ CenterContainer Keeps children controls centered. This container keeps all children to their minimum size, in the center. - - - - - This function will anchor the container children to the top left corner of the the container boundaries, moving all its children to that position, (the children new center will be the top left corner of the container). - - @@ -7640,6 +7673,13 @@ Should put children to the top left corner instead of center of the container. + + + + + This function will anchor the container children to the top left corner of the the container boundaries, moving all its children to that position, (the children new center will be the top left corner of the container). + + @@ -7658,35 +7698,35 @@ - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -7704,31 +7744,31 @@ - + - + + + + + - - - - - - - + - + - + - + + + @@ -7740,13 +7780,6 @@ Circular Shape for 2D Physics. This shape is useful for modeling balls or small characters and it's collision detection with everything else is very fast. - - - - - Set the radius of the circle shape. - - @@ -7754,6 +7787,13 @@ Return the radius of the circle shape. + + + + + Set the radius of the circle shape. + + @@ -7786,54 +7826,52 @@ - - + + + + + + - - - - - + + + - + + + - - - - - - - + + + - - + + - - + + - - - - + + @@ -7846,7 +7884,9 @@ - + + + @@ -7856,36 +7896,32 @@ - - - - - - - - + + + + - - - + + + + + - - - + + + + + - - - - @@ -7900,6 +7936,10 @@ + + + + @@ -7936,38 +7976,16 @@ Add a [Shape2D] to the collision body, with a given custom transform. - - - - - Return the amount of shapes in the collision body. Because a [CollisionPolygon2D] can generate more than one [Shape2D], the amount returned does not have to match the sum of [CollisionShape2D] and [CollisionPolygon2D]. - - - - - - - - - Change a shape in the collision body. - - - - - - - + - Change the shape transform in the collision body. + Remove all shapes. - - - - - + + + - Set whether a shape is a trigger. A trigger shape detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). + Return the RID of this object. @@ -7979,6 +7997,13 @@ Return the shape in the given index. + + + + + Return the amount of shapes in the collision body. Because a [CollisionPolygon2D] can generate more than one [Shape2D], the amount returned does not have to match the sum of [CollisionShape2D] and [CollisionPolygon2D]. + + @@ -7988,6 +8013,13 @@ Return the shape transform in the given index. + + + + + Return whether this object is pickable. + + @@ -8004,39 +8036,42 @@ Remove the shape in the given index. - + + + - Remove all shapes. + Set whether this object is pickable. A pickable object can detect the mouse pointer enter/leave it and, if the mouse is inside it, report input events. - - - + + + + + - Return the RID of this object. + Change a shape in the collision body. - - + + + + - Set whether this object is pickable. A pickable object can detect the mouse pointer enter/leave it and, if the mouse is inside it, report input events. + Set whether a shape is a trigger. A trigger shape detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). - - - + + + + + - Return whether this object is pickable. + Change the shape transform in the collision body. - - - This event fires only once when the mouse pointer enters any shape of this object. - - @@ -8048,6 +8083,11 @@ This signal triggers when an input event fires over a shape. The first parameter is the viewport where the event took place. The second holds the input event received, and the third the shape of this object where it happened. + + + This event fires only once when the mouse pointer enters any shape of this object. + + This event fires only once when the mouse pointer exits all shapes of this object. @@ -8063,21 +8103,21 @@ - - - + + + - + - - - + + + @@ -8087,27 +8127,27 @@ - - - - - - - - - + + + - - - + + + + + + + + + @@ -8123,40 +8163,34 @@ Editor-only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. This class is for editing custom shape polygons. - - - - - Set the array of points forming the polygon. - When editing the point list via the editor, depending on [method get_build_mode], it has to be a list of points (for [code]build_mode==0[/code]), or a list of lines (for [code]build_mode==1[/code]). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point. - - - - + + - Return the list of points that define the polygon. + Return whether the polygon is a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). - - - + + + - Set whether the polygon is to be a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). + Return the index of the first shape generated by the editor. + When [code]build_mode[/code] is set to generate convex polygons, the shape shown in the editor may be decomposed into many convex polygons. In that case, a range of indexes is needed to directly access the [Shape2D]. + When [code]build_mode[/code] is set to generate concave polygons, there is only one [Shape2D] generated, so the start index and the end index are the same. - + - Return whether the polygon is a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). + Return the index of the last shape generated by the editor. - - - + + + - Set whether this polygon is a trigger. A trigger polygon detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). + Return the list of points that define the polygon. @@ -8166,20 +8200,26 @@ Return whether this polygon is a trigger. - - - + + + - Return the index of the first shape generated by the editor. - When [code]build_mode[/code] is set to generate convex polygons, the shape shown in the editor may be decomposed into many convex polygons. In that case, a range of indexes is needed to directly access the [Shape2D]. - When [code]build_mode[/code] is set to generate concave polygons, there is only one [Shape2D] generated, so the start index and the end index are the same. + Set whether the polygon is to be a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). - - - + + + - Return the index of the last shape generated by the editor. + Set the array of points forming the polygon. + When editing the point list via the editor, depending on [method get_build_mode], it has to be a list of points (for [code]build_mode==0[/code]), or a list of lines (for [code]build_mode==1[/code]). In the second case, the even elements of the array define the start point of the line, and the odd elements the end point. + + + + + + + Set whether this polygon is a trigger. A trigger polygon detects collisions, but is otherwise unaffected by physics (i.e. colliding objects will not get blocked). @@ -8192,15 +8232,9 @@ - - - - - - - - - + + + @@ -8210,12 +8244,6 @@ - - - - - - @@ -8226,9 +8254,21 @@ - - - + + + + + + + + + + + + + + + @@ -8244,11 +8284,11 @@ Editor-only class. This is not present when running the game. It's used in the editor to properly edit and position collision shapes in [CollisionObject2D]. This is not accessible from regular code. - - - + + + - Set this shape's [Shape2D]. This will not appear as a node, but can be directly edited as a property. + Return the index of this shape inside its container [CollisionObject2D]. This can be used to directly access the underlying [Shape2D]. @@ -8258,6 +8298,20 @@ Return this shape's [Shape2D]. + + + + + Return whether this shape is a trigger. + + + + + + + Set this shape's [Shape2D]. This will not appear as a node, but can be directly edited as a property. + + @@ -8265,32 +8319,64 @@ Set whether this shape is a trigger. A trigger shape detects collisions, but is otherwise unaffected by physics (i.e. will not block movement of colliding objects). - - + + + + + + + Color in RGBA format. + + + A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate() ) may accept values > 1. + + + + + + + + + + + + + + + Construct the color from an RGBA profile. + + + + + + + + + + + + + Construct the color from an RGBA profile. + + + + + + - Return whether this shape is a trigger. + Construct the color from an RGBA profile. - - + + + + - Return the index of this shape inside its container [CollisionObject2D]. This can be used to directly access the underlying [Shape2D]. + Construct the color from an RGBA profile. - - - - - - - Color in RGBA format. - - - A color is represented as red, green and blue (r,g,b) components. Additionally, "a" represents the alpha component, often used for transparency. Values are in floating point and usually range from 0 to 1. Some methods (such as set_modulate() ) may accept values > 1. - - @@ -8355,86 +8441,40 @@ Return the HTML hexadecimal color string. - - - - - - - - - - - - - Construct the color from an RGBA profile. - - - - - - - - - - - - - Construct the color from an RGBA profile. - - - - - - - - - Construct the color from an RGBA profile. - - - - - - - - - Construct the color from an RGBA profile. - - - - Red (0 to 1) + + Alpha (0 to 1) - - Green (0 to 1) + + Alpha (0 to 255) Blue (0 to 1) - - Alpha (0 to 1) + + Blue (0 to 255) + + + Green (0 to 1) + + + Green (0 to 255) Hue (0 to 1) - - Saturation (0 to 1) - - - Value (0 to 1) + + Red (0 to 1) Red (0 to 255) - - Green (0 to 255) - - - Blue (0 to 255) + + Saturation (0 to 1) - - Alpha (0 to 255) + + Value (0 to 1) @@ -8448,6 +8488,15 @@ Array of Color, can only contains colors. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -8478,15 +8527,6 @@ Return the array size. - - - - - - - Create from a generic array. - - @@ -8499,11 +8539,11 @@ This is a simple color picker [Control]. It's useful for selecting a color from an RGB/RGBA colorspace. - - + + - Select the current color. + Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker. @@ -8513,11 +8553,11 @@ Return the current (edited) color. - - - + + + - When set to true, every color channel will be represented as a value from 0 to 1, insetead of 0, 255. + Returns whether the color has transparency or not. @@ -8527,25 +8567,25 @@ Returns whether this color picker is in raw mode or not - - + + - Set true if you want the color to have an alpha channel (transparency), or false if you want a solid color. + Select the current color. - - - + + + - Returns whether the color has transparency or not. + Set true if you want the color to have an alpha channel (transparency), or false if you want a solid color. - - + + - Adds the current selected to color to a list of colors (presets), the presets will be displayed in the color picker and the user will be able to select them, notice that the presets list is only for this color picker. + When set to true, every color channel will be represented as a value from 0 to 1, insetead of 0, 255. @@ -8561,20 +8601,20 @@ - - - + - - - + + + + + @@ -8585,13 +8625,6 @@ Encapsulates a [ColorPicker] making it accesible by pressing a button, pressing the button will toggle the [ColorPicker] visibility - - - - - Sets the current color - - @@ -8599,11 +8632,10 @@ Gets the current color - - - + + + - See [method ColorPicker.set_edit_alpha] @@ -8613,6 +8645,20 @@ See [method ColorPicker.is_edit_alpha] + + + + + Sets the current color + + + + + + + See [method ColorPicker.set_edit_alpha] + + @@ -8626,28 +8672,28 @@ - + - + + + + + - - - - - - - + + + @@ -8667,20 +8713,20 @@ Adds the specified color to the end of the ramp, with the specified offset - - + + + + - Removes the color at the index [i]offset[/i] + Returns the color of the ramp color at index [i]point[/i] - - - - - + + + - Sets the offset for the ramp color at index [i]point[/i] + Returns the colors in the ramp @@ -8692,22 +8738,18 @@ Returns the offset of the ramp color at index [i]point[/i] - - - - - + + + - Sets the color of the ramp color at index [i]point[/i] + Returns the offsets for the colors in this ramp - - + + - - - Returns the color of the ramp color at index [i]point[/i] + Returns the number of colors in the ramp @@ -8719,25 +8761,20 @@ Returns the interpolated color specified by [i]offset[/i] - - - - - Returns the number of colors in the ramp - - - - + + - Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default. + Removes the color at the index [i]offset[/i] - - - + + + + + - Returns the offsets for the colors in this ramp + Sets the color of the ramp color at index [i]point[/i] @@ -8747,11 +8784,20 @@ Sets the colors for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements. - - - + + + + + - Returns the colors in the ramp + Sets the offset for the ramp color at index [i]point[/i] + + + + + + + Sets the offset for the specified amount of elements. Calling this function with a different number of elements than previously defined causes the ramp to resize its colors and offsets array to accomodate the new elements, all new colors will be black by default. @@ -8766,13 +8812,6 @@ Concave polygon shape resource, which can be set into a [PhysicsBody] or area. This shape is created by feeding a list of triangles. - - - - - Set the faces (an array of triangles). - - @@ -8780,6 +8819,13 @@ Return the faces (an array of triangles). + + + + + Set the faces (an array of triangles). + + @@ -8793,13 +8839,6 @@ The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection. - - - - - Set the array of segments. - - @@ -8807,6 +8846,13 @@ Return the array of segments. + + + + + Set the array of segments. + + @@ -8817,19 +8863,19 @@ - + + + - - - - - + + + @@ -8870,15 +8916,20 @@ [/codeblock] - + + + - - - - - Assign a value to the specified key of the the specified section. If the section and/or the key do not exist, they are created. Passing a [code]NULL[/code] value deletes the specified key if it exists (and deletes the section if it ends up empty once the key has been removed). + Return an array of all defined key identifiers in the specified section. + + + + + + + Return an array of all defined section identifiers. @@ -8914,22 +8965,6 @@ Check if the specified section-key pair exists. - - - - - Return an array of all defined section identifiers. - - - - - - - - - Return an array of all defined key identifiers in the specified section. - - @@ -8949,6 +8984,17 @@ The return value is one of the OK, FAILED or ERR_* constants listed in [@Global Scope] (if the save was successful, it returns OK). + + + + + + + + + Assign a value to the specified key of the the specified section. If the section and/or the key do not exist, they are created. Passing a [code]NULL[/code] value deletes the specified key if it exists (and deletes the section if it ends up empty once the key has been removed). + + @@ -8981,11 +9027,6 @@ A Control can inherit this to create custom container classes. - - - Queue resort of the contained children. This is called automatically anyway, but can be called upon request. - - @@ -8995,6 +9036,11 @@ Fit a child control in a given rect. This is mainly a helper for creating custom container classes. + + + Queue resort of the contained children. This is called automatically anyway, but can be called upon request. + + @@ -9030,221 +9076,197 @@ Called when an input event reaches the control. - - - - - - - + + Handles the event, no other control will receive it and it will not be sent to nodes waiting on [method Node._unhandled_input] or [method Node._unhandled_key_input]. - - + + - + - - - - + + + + + Override a single constant (integer) in the theme of this Control. If constant equals Theme.INVALID_CONSTANT, override is cleared. - - - - - Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. - - - - - Handles the event, no other control will receive it and it will not be sent to nodes waiting on [method Node._unhandled_input] or [method Node._unhandled_key_input]. - - - - - - - Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. - - - - - - - - - - - - + + - + - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Changing the anchor mode converts the current margin offset from the previous anchor mode to the new one, so margin offsets ([method set_margin]) must be done after setting anchors, or at the same time ([method set_anchor_and_margin]) - - Additionally, [code]keep_margin[/code] controls whether margins should be left the same, or changed to keep the same position and size on-screen. + Override a single font (font) in the theme of this Control. If font is empty, override is cleared. - - - - + + + + - Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). + Override a single icon ([Texture]) in the theme of this Control. If texture is empty, override is cleared. - - + + - + - Set a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being set depends on the anchor mode. - - - - + + - + - Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM), and also set its offset. This is a helper (see [method set_anchor] and [method set_margin]). + Override a single stylebox ([Stylebox]) in the theme of this Control. If stylebox is empty, override is cleared. - + + + - - Sets MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - - - - + - Sets MARGIN_RIGHT and MARGIN_BOTTOM at the same time. This is a helper (see [method set_margin]). - + - - Move the Control to a new position, relative to the top-left corner of the parent Control, changing all margins if needed and without changing current anchor mode. This is a helper (see [method set_margin]). - - - - + - Changes MARGIN_RIGHT and MARGIN_BOTTOM to fit a given size. This is a helper (see [method set_margin]). - - + + + + - - + + + + - Move the Control to a new position, relative to the top-left corner of the [i]window[/i] Control, and without changing current anchor mode. (see [method set_margin]). + Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). - - - + + + - - + + + + + + - - - + + + - - + + - + + + - Return a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being returned depends on the anchor mode. - - + + + + + Return the cursor shape at a certain position in the control. - + - Returns MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - - + + - Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode. + Return the default cursor shape for this control. See enum CURSOR_* for the list of shapes. - - + + + + - Returns the size of the Control, computed from all margins, however the size returned will [b]never be smaller than the minimum size reported by [method get_minimum_size][/b]. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, [method get_minimum_size], [method set_margin], [method set_anchor]). - - + + + Returns MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - - + + + Returns the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL) (see [method set_focus_mode]). - - + + + + + Return the forced neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function. - - + + + Return which control is owning the keyboard focus, or null if no one. - - + + + + + + @@ -9255,13 +9277,6 @@ Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode. - - - - - Return position and size of the Control, relative to the top-left corner of the parent Control. This is a helper (see [method get_pos], [method get_size]). - - @@ -9269,105 +9284,112 @@ Return position and size of the Control, relative to the top-left corner of the [i]window[/i] Control. This is a helper (see [method get_global_pos], [method get_size]). - - - + + + - Change all margins and anchors, so this Control always takes up the same area as the parent Control. This is a helper (see [method set_anchor], [method set_margin]). + Hint for containers, return horizontal positioning flags. - - + + + + + + - Display a Control as modal. Control must be a subwindow. Modal controls capture the input signals until closed or the area outside them is accessed. When a modal control loses focus, or the ESC key is pressed, they automatically hide. Modal controls are used extensively for popup dialogs and menus. - - + + + + - Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals. + Return a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being returned depends on the anchor mode. - - + + - Returns the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL) (see [method set_focus_mode]). + Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. - - + + - Return whether the Control is the current focused control (see [method set_focus_mode]). + Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. - + + + - Steal the focus from another control and become the focused control (see [method set_focus_mode]). - + + + - Give up the focus, no other control will be able to receive keyboard input. - - + + - Return which control is owning the keyboard focus, or null if no one. + Returns the Control position, relative to the top-left corner of the parent Control and independent of the anchor mode. - - - + + + - Hint for containers, set horizontal positioning flags. + Return position and size of the Control, relative to the top-left corner of the parent Control. This is a helper (see [method get_pos], [method get_size]). - - + + - Hint for containers, return horizontal positioning flags. - - - + + + - Hint for containers, set the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big. - - + + - Hint for containers, return the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big. - - - + + + - Hint for containers, set vertical positioning flags. + Returns the size of the Control, computed from all margins, however the size returned will [b]never be smaller than the minimum size reported by [method get_minimum_size][/b]. This means that even if end position of the Control rectangle is smaller than the begin position, the Control will still display and interact correctly. (see description, [method get_minimum_size], [method set_margin], [method set_anchor]). - - + + - Hint for containers, return vertical positioning flags. + Hint for containers, return the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big. - - + + + + + + - Override whole the [Theme] for this Control and all its children controls. @@ -9377,60 +9399,51 @@ Return a [Theme] override, if one exists (see [method set_theme]). - - - - + + + + - Override a single icon ([Texture]) in the theme of this Control. If texture is empty, override is cleared. + Return the tooltip, which will appear when the cursor is resting over this control. - - - - - + + + + Hint for containers, return vertical positioning flags. - - - - - + - Override a single stylebox ([Stylebox]) in the theme of this Control. If stylebox is empty, override is cleared. - - - - - + - Override a single font (font) in the theme of this Control. If font is empty, override is cleared. + Steal the focus from another control and become the focused control (see [method set_focus_mode]). - + + + - + - + + + - - - Override a single constant (integer) in the theme of this Control. If constant equals Theme.INVALID_CONSTANT, override is cleared. - - + + @@ -9439,28 +9452,23 @@ - - + + - - - - + + - - - - + Return whether the Control is the current focused control (see [method set_focus_mode]). - - + + @@ -9469,25 +9477,25 @@ - - + + - - - + + + - + @@ -9495,15 +9503,17 @@ - + + + - + @@ -9511,84 +9521,70 @@ - + - - + Return if the control is ignoring mouse events (even touchpad events send mouse events). - + - - - - - - - - - - - + - - - - - - - + + Give up the focus, no other control will be able to receive keyboard input. - - - - + + - + + + + Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Changing the anchor mode converts the current margin offset from the previous anchor mode to the new one, so margin offsets ([method set_margin]) must be done after setting anchors, or at the same time ([method set_anchor_and_margin]) + + Additionally, [code]keep_margin[/code] controls whether margins should be left the same, or changed to keep the same position and size on-screen. - - - - + + - + + + + Change the anchor (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) type for a margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM), and also set its offset. This is a helper (see [method set_anchor] and [method set_margin]). - - - + + + + Change all margins and anchors, so this Control always takes up the same area as the parent Control. This is a helper (see [method set_anchor], [method set_margin]). - - + + - Set a tooltip, which will appear when the cursor is resting over this control. + Sets MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). - - - - + + - Return the tooltip, which will appear when the cursor is resting over this control. @@ -9598,20 +9594,30 @@ Set the default cursor shape for this control. See enum CURSOR_* for the list of shapes. - - - + + + - Return the default cursor shape for this control. See enum CURSOR_* for the list of shapes. - - - - + + - Return the cursor shape at a certain position in the control. + + + + + + + Sets MARGIN_RIGHT and MARGIN_BOTTOM at the same time. This is a helper (see [method set_margin]). + + + + + + + Set the focus access mode for the control (FOCUS_NONE, FOCUS_CLICK, FOCUS_ALL). Only one Control can be focused at the same time, and it will receive keyboard signals. @@ -9623,13 +9629,18 @@ Force a neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function. - - - - + + - Return the forced neighbour for moving the input focus to. When pressing TAB or directional/joypad directions focus is moved to the next control in that direction. However, the neighbour to move to can be forced with this function. + Move the Control to a new position, relative to the top-left corner of the [i]window[/i] Control, and without changing current anchor mode. (see [method set_margin]). + + + + + + + Hint for containers, set horizontal positioning flags. @@ -9639,19 +9650,45 @@ Ignore mouse events on this control (even touchpad events send mouse events). - - - + + + + + - Return if the control is ignoring mouse events (even touchpad events send mouse events). + Set a margin offset. Margin can be one of (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). Offset value being set depends on the anchor mode. - - + + - + + Move the Control to a new position, relative to the top-left corner of the parent Control, changing all margins if needed and without changing current anchor mode. This is a helper (see [method set_margin]). + + + + + + + + + + + + + + + + + + + + + + + Changes MARGIN_RIGHT and MARGIN_BOTTOM to fit a given size. This is a helper (see [method set_margin]). @@ -9660,35 +9697,44 @@ - - - + + + + Hint for containers, set the stretch ratio. This value is relative to other stretch ratio, so if this control has 2 and another has 1, this one will be twice as big. - + + + + Override whole the [Theme] for this Control and all its children controls. - - + + + Set a tooltip, which will appear when the cursor is resting over this control. - - + + + Hint for containers, set vertical positioning flags. - - + + + Display a Control as modal. Control must be a subwindow. Modal controls capture the input signals until closed or the area outside them is accessed. When a modal control loses focus, or the ESC key is pressed, they automatically hide. Modal controls are used extensively for popup dialogs and menus. - + + + @@ -9699,14 +9745,16 @@ Emitted when keyboard focus is gained. - + - Emitted when the mouse enters the control area. + Emitted when the keyboard focus is lost. - + + + - Emitted when the control changed size. + Emitted when an input event is received. Connecting in realtime is recommended for accepting the events. @@ -9714,30 +9762,28 @@ Emitted when the minimum size of the control changed. - + - Emitted when the size flags changed. - + - Emitted when the keyboard focus is lost. + Emitted when the mouse enters the control area. - - - + - Emitted when an input event is received. Connecting in realtime is recommended for accepting the events. + Emitted when the mouse left the control area. - + + Emitted when the control changed size. - + - Emitted when the mouse left the control area. + Emitted when the size flags changed. @@ -9745,13 +9791,47 @@ X is relative to MARGIN_LEFT, Y is relative to MARGIN_TOP. - - X is relative to -MARGIN_RIGHT, Y is relative to -MARGIN_BOTTOM. + + X is relative to -MARGIN_RIGHT, Y is relative to -MARGIN_BOTTOM. + + + X and Y are a ratio (0 to 1) relative to the parent size 0 is left/top, 1 is right/bottom. + + + + + + + + + + + + + + + + + + + + - - X and Y are a ratio (0 to 1) relative to the parent size 0 is left/top, 1 is right/bottom. + - + + + + + + + + + + + + + Control can't acquire focus. @@ -9783,40 +9863,6 @@ Modal control was closed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9833,18 +9879,18 @@ Convex polygon shape resource, which can be set into a [PhysicsBody] or area. - - - - - - + + + + + + @@ -9858,6 +9904,13 @@ The main difference between a [ConvexPolygonShape2D] and a [ConcavePolygonShape2D] is that a concave polygon assumes it is concave and uses a more complex method of collision detection, and a convex one forces itself to be convex in order to speed up collision detection. + + + + + Return a list of points in either clockwise or counter clockwise order, forming a convex polygon. + + @@ -9872,13 +9925,6 @@ Set a list of points in either clockwise or counter clockwise order, forming a convex polygon. - - - - - Return a list of points in either clockwise or counter clockwise order, forming a convex polygon. - - @@ -9889,7 +9935,7 @@ - + @@ -9901,32 +9947,18 @@ - - + + - - - - - - - - + + - - - - - - - - @@ -9935,37 +9967,53 @@ - - - + + + - + + + + + + + - - - + + + + + + + + + + + - + - + - + + + @@ -9979,13 +10027,11 @@ - - - + - + - + @@ -9998,13 +10044,6 @@ It keeps a cache of precalculated points along the curve, to speed further calculations up. - - - - - Returns the number of points describing the curve. - - @@ -10019,49 +10058,41 @@ It keeps a cache of precalculated points along the curve, to speed further calcu If "atpos" is given, the point is inserted before the point number "atpos", moving that point (and every point after) after the inserted point. If "atpos" is not given, or is an illegal value (atpos <0 or atpos >= [method get_point_count]), the point will be appended at the end of the point list. - - - - - + + + - Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the distance between two adjacent cached points. - - + + - - - Returns the position of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). + Returns the total length of the curve, based on the cached points. Given enough density (see [method set_bake_interval]), it should be approximate enough. - - - - - + + + - Sets the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the cache of points as a [Vector2Array]. - - + + - - - Returns the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). + Returns the number of points describing the curve. - + + + - - - Sets the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). @@ -10073,11 +10104,13 @@ If "atpos" is given, the point is inserted before the point number "atpos", movi Returns the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). - + + + - Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. + Returns the position of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). @@ -10092,6 +10125,19 @@ If "atpos" is given, the point is inserted before the point number "atpos", movi If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0). + + + + + + + + + Returns a point within the curve at position "offset", where "offset" is measured as a pixel distance along the curve. +To do that, it finds the two cached points where the "offset" lies between, then interpolates the values. This interpolation is cubic if "cubic" is set to true, or linear if set to false. +Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). + + @@ -10101,45 +10147,45 @@ If "idx" is out of bounds it is truncated to the first or last vertex, and "t" i Returns the position at the vertex "fofs". It calls [method interpolate] using the integer part of fofs as "idx", and its fractional part as "t". - - + + - Sets the distance in pixels between two adjacent cached points. Changing it forces the cache to be recomputed the next time a xxx_baked_xxx function is called. The less distance, the more points the cache will have, and the more memory it will consume, so use with care. + Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. - - - + + + - Returns the distance between two adjacent cached points. + Sets the distance in pixels between two adjacent cached points. Changing it forces the cache to be recomputed the next time a xxx_baked_xxx function is called. The less distance, the more points the cache will have, and the more memory it will consume, so use with care. - - - + + + + + - Returns the total length of the curve, based on the cached points. Given enough density (see [method set_bake_interval]), it should be approximate enough. + Sets the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console. - - - - + + - + - Returns a point within the curve at position "offset", where "offset" is measured as a pixel distance along the curve. -To do that, it finds the two cached points where the "offset" lies between, then interpolates the values. This interpolation is cubic if "cubic" is set to true, or linear if set to false. -Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). + Sets the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console. - - - + + + + + - Returns the cache of points as a [Vector2Array]. + Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. @@ -10169,13 +10215,6 @@ This approximation makes straight segments between each point, then subdivides t It keeps a cache of precalculated points along the curve, to speed further calculations up. - - - - - Returns the number of points describing the curve. - - @@ -10190,50 +10229,39 @@ It keeps a cache of precalculated points along the curve, to speed further calcu If "atpos" is given, the point is inserted before the point number "atpos", moving that point (and every point after) after the inserted point. If "atpos" is not given, or is an illegal value (atpos <0 or atpos >= [method get_point_count]), the point will be appended at the end of the point list. - - - - - + + + - Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the distance between two adjacent cached points. - - + + - - - Returns the position of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0, 0). + Returns the total length of the curve, based on the cached points. Given enough density (see [method set_bake_interval]), it should be approximate enough. - - - - - + + + - Sets the tilt angle in radians for the point "idx". If the index is out of bounds, the function sends an error to the console. -The tilt controls the rotation along the look-at axis an object traveling the path would have. In the case of a curve controlling a [PathFollow], this tilt is an offset over the natural tilt the PathFollow calculates. + Returns the cache of points as a [Vector3Array]. - - + + - - - Returns the tilt angle in radians for the point "idx". If the index is out of bounds, the function sends an error to the console, and returns 0. + Returns the cache of tilts as a [RealArray]. - - - - - + + + - Sets the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the number of points describing the curve. @@ -10245,29 +10273,31 @@ The tilt controls the rotation along the look-at axis an object traveling the pa Returns the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0, 0). - + + + - - - Sets the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console. + Returns the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0, 0). - + - Returns the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0, 0). + Returns the position of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0, 0). - + + + - Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. + Returns the tilt angle in radians for the point "idx". If the index is out of bounds, the function sends an error to the console, and returns 0. @@ -10282,6 +10312,19 @@ The tilt controls the rotation along the look-at axis an object traveling the pa If "idx" is out of bounds it is truncated to the first or last vertex, and "t" is ignored. If the curve has no points, the function sends an error to the console, and returns (0, 0, 0). + + + + + + + + + Returns a point within the curve at position "offset", where "offset" is measured as a distance in 3D units along the curve. +To do that, it finds the two cached points where the "offset" lies between, then interpolates the values. This interpolation is cubic if "cubic" is set to true, or linear if set to false. +Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). + + @@ -10291,52 +10334,55 @@ If "idx" is out of bounds it is truncated to the first or last vertex, and "t" i Returns the position at the vertex "fofs". It calls [method interpolate] using the integer part of fofs as "idx", and its fractional part as "t". - - + + - Sets the distance in 3D units between two adjacent cached points. Changing it forces the cache to be recomputed the next time a xxx_baked_xxx function is called. The less distance, the more points the cache will have, and the more memory it will consume, so use with care. + Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. - - - + + + - Returns the distance between two adjacent cached points. + Sets the distance in 3D units between two adjacent cached points. Changing it forces the cache to be recomputed the next time a xxx_baked_xxx function is called. The less distance, the more points the cache will have, and the more memory it will consume, so use with care. - - - + + + + + - Returns the total length of the curve, based on the cached points. Given enough density (see [method set_bake_interval]), it should be approximate enough. + Sets the position of the control point leading to the vertex "idx". If the index is out of bounds, the function sends an error to the console. - - - - + + - + - Returns a point within the curve at position "offset", where "offset" is measured as a distance in 3D units along the curve. -To do that, it finds the two cached points where the "offset" lies between, then interpolates the values. This interpolation is cubic if "cubic" is set to true, or linear if set to false. -Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). + Sets the position of the control point leading out of the vertex "idx". If the index is out of bounds, the function sends an error to the console. - - - + + + + + - Returns the cache of points as a [Vector3Array]. + Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. - - - + + + + + - Returns the cache of tilts as a [RealArray]. + Sets the tilt angle in radians for the point "idx". If the index is out of bounds, the function sends an error to the console. +The tilt controls the rotation along the look-at axis an object traveling the path would have. In the case of a curve controlling a [PathFollow], this tilt is an offset over the natural tilt the PathFollow calculates. @@ -10365,11 +10411,11 @@ This approximation makes straight segments between each point, then subdivides t Damped spring constraint for 2D physics. This resembles a spring joint that always wants to go back to a given length. - - - + + + - Set the maximum length of the spring joint. + Return the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). @@ -10379,13 +10425,6 @@ This approximation makes straight segments between each point, then subdivides t Return the maximum length of the spring joint. - - - - - Set the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. - - @@ -10393,13 +10432,6 @@ This approximation makes straight segments between each point, then subdivides t Return the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. - - - - - Set the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. - - @@ -10414,11 +10446,25 @@ This approximation makes straight segments between each point, then subdivides t Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). - - - + + + - Return the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). + Set the maximum length of the spring joint. + + + + + + + Set the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. + + + + + + + Set the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. @@ -10526,31 +10572,31 @@ This approximation makes straight segments between each point, then subdivides t A DirectionalLight is a type of [Light] node that emits light constantly in one direction (the negative z axis of the node). It is used lights with strong intensity that are located far away from the scene to model sunlight or moonlight. The worldspace location of the DirectionalLight transform (origin) is ignored, only the basis is used do determine light direction. - - - - - - - + + + - + + + + + - - - + + + @@ -10558,18 +10604,18 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - + + + + + + @@ -10596,41 +10642,67 @@ This approximation makes straight segments between each point, then subdivides t [/codeblock] - + + + + + + + Change the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]). + The method returns one of the error code constants defined in [@Global Scope] (OK or ERR_*). + + + + + + + + + Copy the [i]from[/i] file to the [i]to[/i] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. + Returns one of the error code constants defined in [@Global Scope] (OK, FAILED or ERR_*). + + + + + + + Return whether the current item processed with the last [method get_next] call is a directory ([code].[/code] and [code]..[/code] are considered directories). + + + + + - Open an existing directory of the filesystem. The [i]path[/i] argument can be within the project tree ([code]res://folder[/code]), the user directory ([code]user://folder[/code]) or an absolute path of the user filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\tmp\folder[/code]). - The method returns one of the error code constants defined in [@Global Scope] (OK or ERR_*). + Return whether the target directory exists. The argument can be relative to the current directory, or an absolute path. - + + + - Initialise the stream used to list all files and directories using the [method get_next] function, closing the current opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end]. - Return false if the stream could not be initialised. + Return whether the target file exists. The argument can be relative to the current directory, or an absolute path. - + - Return the next element (file or directory) in the current directory (including [code].[/code] and [code]..[/code]). The name of the file or directory is returned (and not its full path). Once the stream has been fully processed, the method returns an empty String and closes the stream automatically (i.e. [method list_dir_end] would not be mandatory in such a case). + Return the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]). - - + + + + - Return whether the current item processed with the last [method get_next] call is a directory ([code].[/code] and [code]..[/code] are considered directories). - - - - - Close the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] or not does not matter). + On Windows, return the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not existed, the method returns an empty String. @@ -10640,30 +10712,31 @@ This approximation makes straight segments between each point, then subdivides t On Windows, return the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0. - + - - - On Windows, return the name of the drive (partition) passed as an argument (e.g. [code]C:[/code]). On other platforms, or if the requested drive does not existed, the method returns an empty String. + Return the next element (file or directory) in the current directory (including [code].[/code] and [code]..[/code]). The name of the file or directory is returned (and not its full path). Once the stream has been fully processed, the method returns an empty String and closes the stream automatically (i.e. [method list_dir_end] would not be mandatory in such a case). - - + + - - - Change the currently opened directory to the one passed as an argument. The argument can be relative to the current directory (e.g. [code]newdir[/code] or [code]../newdir[/code]), or an absolute path (e.g. [code]/tmp/newdir[/code] or [code]res://somedir/newdir[/code]). - The method returns one of the error code constants defined in [@Global Scope] (OK or ERR_*). + On Unix desktop systems, return the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1. - - + + - Return the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]). + Initialise the stream used to list all files and directories using the [method get_next] function, closing the current opened stream if needed. Once the stream has been processed, it should typically be closed with [method list_dir_end]. + Return false if the stream could not be initialised. + + + + + Close the current stream opened with [method list_dir_begin] (whether it has been fully processed with [method get_next] or not does not matter). @@ -10686,41 +10759,24 @@ This approximation makes straight segments between each point, then subdivides t Returns one of the error code constants defined in [@Global Scope] (OK, FAILED or ERR_*). - - - - - - - Return whether the target file exists. The argument can be relative to the current directory, or an absolute path. - - - - + + - Return whether the target directory exists. The argument can be relative to the current directory, or an absolute path. - - - - - - - On Unix desktop systems, return the available space on the current directory's disk. On other platforms, this information is not available and the method returns 0 or -1. + Open an existing directory of the filesystem. The [i]path[/i] argument can be within the project tree ([code]res://folder[/code]), the user directory ([code]user://folder[/code]) or an absolute path of the user filesystem (e.g. [code]/tmp/folder[/code] or [code]C:\tmp\folder[/code]). + The method returns one of the error code constants defined in [@Global Scope] (OK or ERR_*). - + - - - + - Copy the [i]from[/i] file to the [i]to[/i] destination. Both arguments should be paths to files, either relative or absolute. If the destination file exists and is not access-protected, it will be overwritten. - Returns one of the error code constants defined in [@Global Scope] (OK, FAILED or ERR_*). + Delete the target file or an empty directory. The argument can be relative to the current directory, or an absolute path. If the target directory is not empty, the operation will fail. + Returns one of the error code constants defined in [@Global Scope] (OK or FAILED). @@ -10735,16 +10791,6 @@ This approximation makes straight segments between each point, then subdivides t Returns one of the error code constants defined in [@Global Scope] (OK or FAILED). - - - - - - - Delete the target file or an empty directory. The argument can be relative to the current directory, or an absolute path. If the target directory is not empty, the operation will fail. - Returns one of the error code constants defined in [@Global Scope] (OK or FAILED). - - @@ -10755,21 +10801,29 @@ This approximation makes straight segments between each point, then subdivides t - + - + + + - - - + + + + + + + + + @@ -10779,8 +10833,8 @@ This approximation makes straight segments between each point, then subdivides t - - + + @@ -10793,26 +10847,18 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + - - + + - - - - - - @@ -10823,6 +10869,18 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + @@ -10874,13 +10932,19 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + - - - + + + @@ -10902,38 +10966,36 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - - - + + + - - - + + + - - - + - - + + - - + + @@ -10944,21 +11006,27 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - - + + - - - + + + + + + + + + @@ -10968,24 +11036,20 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - + + + - - - - - - @@ -10998,8 +11062,20 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + @@ -11010,12 +11086,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - @@ -11054,6 +11124,14 @@ This approximation makes straight segments between each point, then subdivides t instead. + + + + + + + + @@ -11149,14 +11227,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -11171,6 +11241,105 @@ This approximation makes straight segments between each point, then subdivides t resource type, import plugins and export plugins. + + + + + + + Add a control to the bottom panel (together with + Output, Debug, Animation, etc). + + If your plugin is being removed, also make sure to + remove your control by calling [method + remove_control_from_bottom_panel]. + + + + + + + + + Add a custom control to a container (see + CONTAINER_* enum). There are many locations where + custom controls can be added in the editor UI. + + Please remember that you have to manage the + visibility of your custom controls yourself (and likely + hide it after adding it). + + If your plugin is being removed, also make sure to + remove your custom controls too. + + + + + + + + + Add the control to a specific dock slot (see DOCK_* + enum for options). + + If the dock is repositioned and as long as the + plugin is active, the editor will save the dock + position on further sessions. + + If your plugin is being removed, also make sure to + remove your control by calling [method + remove_control_from_docks]. + + + + + + + + + + + + + Add a custom type, which will appear in the list of + nodes or resources. An icon can be optionally + passed. + + When given node or resource is selected, the base + type will be instanced (ie, "Spatial", "Control", + "Resource"), then the script will be loaded and set + to this object. + + You can use the [EditorPlugin.handles] to check if + your custom object is being edited by checking the + script or using 'extends' keyword. + + During run-time, this will be a simple object with a + script so this function does not need to be called + then. + + + + + + + Add an export plugin. Plugins of this kind can + change files being exported. On exit don't forget to + call [method remove_export_plugin]. + + + + + + + Add an import plugin. These plugins manage importing + external content (from outside the project) into + formats the engine can understand. + + On exit, don't forget to remove the plugin by + calling [method remove_import_plugin] + + This method is called when the editor is about to @@ -11247,6 +11416,16 @@ This approximation makes straight segments between each point, then subdivides t otherwise false. + + + + + Get a base control where it's safe to place dialogs. + Many plugins open dialogs and they need a control as + a base to make sure they use the editor icons and + theme. + + @@ -11256,6 +11435,14 @@ This approximation makes straight segments between each point, then subdivides t (script:line), for example: res://path_to_script.gd:25 + + + + + Get the general settings for the editor (the same + window that appears in the Settings menu). + + @@ -11265,6 +11452,14 @@ This approximation makes straight segments between each point, then subdivides t (which by default is 2D, 3D, Script). + + + + + Get the object that handles the selection of nodes + in the Scene Tree editor. + + @@ -11275,6 +11470,15 @@ This approximation makes straight segments between each point, then subdivides t restored when the tab returns). + + + + + Get the undo/redo object. Most actions in the editor + can be undoable, so use this object to make sure + this happens when it's worth it. + + @@ -11309,144 +11513,30 @@ This approximation makes straight segments between each point, then subdivides t all your editor controls manually. - - - - - Restore the state saved by [EditorPlugin.get_state]. - - - - - - - - - Add a custom control to a container (see - CONTAINER_* enum). There are many locations where - custom controls can be added in the editor UI. - - Please remember that you have to manage the - visibility of your custom controls yourself (and likely - hide it after adding it). - - If your plugin is being removed, also make sure to - remove your custom controls too. - - - - - - - - - Add a control to the bottom panel (together with - Output, Debug, Animation, etc). - - If your plugin is being removed, also make sure to - remove your control by calling [method - remove_control_from_bottom_panel]. - - - - - - - - - Add the control to a specific dock slot (see DOCK_* - enum for options). - - If the dock is repositioned and as long as the - plugin is active, the editor will save the dock - position on further sessions. - - If your plugin is being removed, also make sure to - remove your control by calling [method - remove_control_from_docks]. - - - - - - - Remove the control from the dock. Don't forget to - call this if you added one, so the editor can save - the layout and remove it cleanly. - - - - Remove the control from the bottom panel. Don't forget - to call this if you added one, so the editor can - remove it cleanly. - - - - - - - - - - - - - Add a custom type, which will appear in the list of - nodes or resources. An icon can be optionally - passed. - - When given node or resource is selected, the base - type will be instanced (ie, "Spatial", "Control", - "Resource"), then the script will be loaded and set - to this object. - - You can use the [EditorPlugin.handles] to check if - your custom object is being edited by checking the - script or using 'extends' keyword. - - During run-time, this will be a simple object with a - script so this function does not need to be called - then. - - - - - - - Remove a custom type added by - [EditorPlugin.add_custom_type] - - - - - - - Add an import plugin. These plugins manage importing - external content (from outside the project) into - formats the engine can understand. - - On exit, don't forget to remove the plugin by - calling [method remove_import_plugin] + + Remove the control from the bottom panel. Don't forget + to call this if you added one, so the editor can + remove it cleanly. - - + + - Remove the import plugin, don't forget to call this - on exit. + Remove the control from the dock. Don't forget to + call this if you added one, so the editor can save + the layout and remove it cleanly. - - + + - Add an export plugin. Plugins of this kind can - change files being exported. On exit don't forget to - call [method remove_export_plugin]. + Remove a custom type added by + [EditorPlugin.add_custom_type] @@ -11457,39 +11547,19 @@ This approximation makes straight segments between each point, then subdivides t on exit. - - - - - Get a base control where it's safe to place dialogs. - Many plugins open dialogs and they need a control as - a base to make sure they use the editor icons and - theme. - - - - - - - Get the undo/redo object. Most actions in the editor - can be undoable, so use this object to make sure - this happens when it's worth it. - - - - - + + + - Get the object that handles the selection of nodes - in the Scene Tree editor. + Remove the import plugin, don't forget to call this + on exit. - - - + + + - Get the general settings for the editor (the same - window that appears in the Settings menu). + Restore the state saved by [EditorPlugin.get_state]. @@ -11589,11 +11659,6 @@ This approximation makes straight segments between each point, then subdivides t This object manages the SceneTree selection in the editor. - - - Clear the selection. - - @@ -11601,11 +11666,9 @@ This approximation makes straight segments between each point, then subdivides t Add a node to the selection. - - - + - Remove a node from the selection. + Clear the selection. @@ -11615,6 +11678,13 @@ This approximation makes straight segments between each point, then subdivides t Get the list of selectes nodes. + + + + + Remove a node from the selection. + + @@ -11651,17 +11721,12 @@ This approximation makes straight segments between each point, then subdivides t Erase a given setting (pass full property path). - - + + - Get the global settings path for the engine. Inside - this path you can find some standard paths such as: - - settings/tmp - used for temporary storage of files - - settings/templates - where export templates are - located + Get the list of favorite directories for this + project. @@ -11673,35 +11738,40 @@ This approximation makes straight segments between each point, then subdivides t path where project specific settings are saved. - - - + + + - Set the list of favorite directories for this - project. + Get the list of recently visited folders in the file + dialog for this project. - - + + - Get the list of favorite directories for this - project. + Get the global settings path for the engine. Inside + this path you can find some standard paths such as: + + settings/tmp - used for temporary storage of files + + settings/templates - where export templates are + located - + - Set the list of recently visited folders in the file - dialog for this project. + Set the list of favorite directories for this + project. - - - + + + - Get the list of recently visited folders in the file + Set the list of recently visited folders in the file dialog for this project. @@ -11725,66 +11795,38 @@ This approximation makes straight segments between each point, then subdivides t [method EditorPlugin.create_spatial_gizmo]. - - - - - - + + - Commit a handle being edited (handles must have been - prevously added by [method add_handles]). - - If the cancel parameter is true, an option to - restore the edited value to the original is - provided. - - - - + + - Get the name of an edited handle (handles must have - been previously added by [method add_handles]). + Add collision triangles to the gizmo for picking. A + [TriangleMesh] can be generated from a regular + [Mesh] too. - Handles can be named for reference to the user when editing. - - - - - - - - - Get actual value of a handle. This value can be - anything and used for eventually undoing the motion - when calling [method commit_handle] - - - - - This function is called when the Spatial this gizmo - refers to changes (the [method Spatial.update_gizmo] - is called). + Call this function during [method redraw]. - - + + - + - + - This function is used when the user drags a gizmo - handle (previously added with [method add_handles]) - in screen coordinates. + Add a list of handles (points) which can be used to + deform the object being edited. - The [Camera] is also provided - so screen coordinates can be converted to raycasts. + There are virtual functions which will be called + upon editing of these handles. + + Call this function during [method redraw]. @@ -11816,49 +11858,77 @@ This approximation makes straight segments between each point, then subdivides t Call this function during [method redraw]. - - + + + + + Add an unscaled billboard for visualization. + + Call this function during [method redraw]. - - + + + + + + - Add collision triangles to the gizmo for picking. A - [TriangleMesh] can be generated from a regular - [Mesh] too. + Commit a handle being edited (handles must have been + prevously added by [method add_handles]). - Call this function during [method redraw]. + If the cancel parameter is true, an option to + restore the edited value to the original is + provided. - - - - + + + + - Add an unscaled billboard for visualization. + Get the name of an edited handle (handles must have + been previously added by [method add_handles]). - Call this function during [method redraw]. + Handles can be named for reference to the user when editing. - - + + + + - + + Get actual value of a handle. This value can be + anything and used for eventually undoing the motion + when calling [method commit_handle] + + + + + This function is called when the Spatial this gizmo + refers to changes (the [method Spatial.update_gizmo] + is called). + + + + - + + + - Add a list of handles (points) which can be used to - deform the object being edited. - - There are virtual functions which will be called - upon editing of these handles. + This function is used when the user drags a gizmo + handle (previously added with [method add_handles]) + in screen coordinates. - Call this function during [method redraw]. + The [Camera] is also provided + so screen coordinates can be converted to raycasts. @@ -11881,19 +11951,13 @@ This approximation makes straight segments between each point, then subdivides t - - + + - - - - - - - + @@ -11901,16 +11965,14 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - - - - + + @@ -11923,7 +11985,13 @@ This approximation makes straight segments between each point, then subdivides t - + + + + + + + @@ -11931,8 +11999,10 @@ This approximation makes straight segments between each point, then subdivides t - - + + + + @@ -11941,83 +12011,47 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - + - + @@ -12039,12 +12073,20 @@ This approximation makes straight segments between each point, then subdivides t - + + + + + + + + + @@ -12055,6 +12097,34 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -12066,71 +12136,71 @@ This approximation makes straight segments between each point, then subdivides t Currently, only MOD, S3M, IT, and XM music is supported. - - + + + + - Set the [EventStream] this player will play. + Return the time at which the last note of a given channel in the stream plays. - - + + + + - Return the currently assigned stream. - - - - - Play the currently assigned stream. + Return the volume scale for an individual channel of the stream. - + + + - Stop playing. + Return the song length. May be in seconds, but depends on the stream type. - - + + - Return whether this player is playing. + Return the number of times the playback has looped. - - - + + + - Pause stream playback. + Return the pitch scale factor for this player. - - + + - Return whether the playback is currently paused. + Return the playback position. May be in seconds, but depends on the stream type. - - - + + + - Set whether the stream will be restarted at the end. + Return the currently assigned stream. - - + + - Return whether this player will be restart the playback at the end. + Return the name of the currently assigned stream. This is not the file name, but a field inside the file. If no stream is assigned, if returns "<No Stream>". - - - + + + - Set the playback volume for this player. This is a float between 0.0 (silent) and 1.0 (full volume). Values over 1.0 may amplify sound even more, but may introduce distortion. Negative values may just invert the output waveform, which produces no audible difference. - The effect of these special values ultimately depends on the low-level implementation of the file format being played. + Return the tempo multiplier. @@ -12140,67 +12210,44 @@ This approximation makes straight segments between each point, then subdivides t Return the playback volume for this player. - - - - - Set the pitch multiplier for all sounds coming from this stream. A value of 2.0 shifts all pitches one octave up, and a value of 0.5 shifts pitches one octave down. - - - + - Return the pitch scale factor for this player. - - - - - - - Set the tempo multiplier. This allows to slow down or speed up the music, without affecting its pitch. + Return the playback volume for this player, in decibels. - - + + - Return the tempo multiplier. - - - - - - - Set the playback volume for this player, in decibels. This is a float between -80.0 (silent) and 0.0 (full volume). Values under -79.0 get truncated to -80, but values over 0.0 do not, so the warnings for over amplifying (see [method set_volume]) still apply. + Return whether this player will start playing as soon as it enters the scene tree. - - + + - Return the playback volume for this player, in decibels. + Return whether this player will be restart the playback at the end. - - + + - Return the name of the currently assigned stream. This is not the file name, but a field inside the file. If no stream is assigned, if returns "<No Stream>". + Return whether the playback is currently paused. - - + + - Return the number of times the playback has looped. + Return whether this player is playing. - - - + - Return the playback position. May be in seconds, but depends on the stream type. + Play the currently assigned stream. @@ -12210,13 +12257,6 @@ This approximation makes straight segments between each point, then subdivides t Set the playback position. May be in seconds, but depends on the stream type. - - - - - Return the song length. May be in seconds, but depends on the stream type. - - @@ -12224,13 +12264,6 @@ This approximation makes straight segments between each point, then subdivides t Set whether this player will start playing as soon as it enters the scene tree. - - - - - Return whether this player will start playing as soon as it enters the scene tree. - - @@ -12241,22 +12274,59 @@ This approximation makes straight segments between each point, then subdivides t Many stream formats are multichannel, so this allows to affect only a part of the music. - - - - + + - Return the volume scale for an individual channel of the stream. + Set whether the stream will be restarted at the end. - - - - + + - Return the time at which the last note of a given channel in the stream plays. + Pause stream playback. + + + + + + + Set the pitch multiplier for all sounds coming from this stream. A value of 2.0 shifts all pitches one octave up, and a value of 0.5 shifts pitches one octave down. + + + + + + + Set the [EventStream] this player will play. + + + + + + + Set the tempo multiplier. This allows to slow down or speed up the music, without affecting its pitch. + + + + + + + Set the playback volume for this player. This is a float between 0.0 (silent) and 1.0 (full volume). Values over 1.0 may amplify sound even more, but may introduce distortion. Negative values may just invert the output waveform, which produces no audible difference. + The effect of these special values ultimately depends on the low-level implementation of the file format being played. + + + + + + + Set the playback volume for this player, in decibels. This is a float between -80.0 (silent) and 0.0 (full volume). Values under -79.0 get truncated to -80, but values over 0.0 do not, so the warnings for over amplifying (see [method set_volume]) still apply. + + + + + Stop playing. @@ -12318,116 +12388,99 @@ This approximation makes straight segments between each point, then subdivides t [/codeblock] - - - - - - - - - + - Open an encrypted file in write or read mode. You need to pass a binary key to encrypt/decrypt it. + Close the currently opened file. - - + + - - - - - - - Open an encrypted file in write or read mode. You need to pass a password to encrypt/decrypt it. + Return whether the file cursor reached the end of the file. - - + + - - - - Open the file for writing or reading, depending on the flags. - - - - Close the currently opened file. + Get whether or not the file in the specified path exists. - - + + - Return whether the file is currently opened. + Get the next 16 bits from the file as an integer. - - - + + + - Change the file reading/writing cursor to the specified position (in bytes from the beginning of the file). + Get the next 32 bits from the file as an integer. - - - + + + - Change the file reading/writing cursor to the specified position (in bytes from the end of the file). Note that this is an offset, so you should use negative numbers or the cursor will be at the end of the file. + Get the next 64 bits from the file as an integer. - + - Return the file cursor position. + Get the next 8 bits from the file as an integer. - - + + - Return the size of the file in bytes. + Get the whole file as a [String]. - - + + + + - Return whether the file cursor reached the end of the file. + Get next len bytes of the file as a [RawArray]. - - + + + + - Get the next 8 bits from the file as an integer. + Get the next value of the file in CSV (Comma Separated Values) format. You can pass a different delimiter to use other than the default "," (comma). - - + + - Get the next 16 bits from the file as an integer. + Get the next 64 bits from the file as a floating point number. - - + + - Get the next 32 bits from the file as an integer. + Get whether endian swap is enabled for this file. - - + + - Get the next 64 bits from the file as an integer. + Get the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [@Global Scope]. @@ -12437,50 +12490,48 @@ This approximation makes straight segments between each point, then subdivides t Get the next 32 bits from the file as a floating point number. - - + + - Get the next 64 bits from the file as a floating point number. + Return the size of the file in bytes. - - + + - Get the next bits from the file as a floating point number. + Get the next line of the file as a [String]. - - + + - + - Get next len bytes of the file as a [RawArray]. + Return a md5 String representing the file at the given path or an empty [String] on failure. - + - Get the next line of the file as a [String]. + Get a [String] saved in Pascal format from the file. - - + + - Get the whole file as a [String]. + Return the file cursor position. - - + + - - - Return a md5 String representing the file at the given path or an empty [String] on failure. + Get the next bits from the file as a floating point number. @@ -12492,48 +12543,76 @@ This approximation makes straight segments between each point, then subdivides t Return a sha256 String representing the file at the given path or an empty [String] on failure. - + + + Get the next Variant value from the file. + + + - Get whether endian swap is enabled for this file. + Return whether the file is currently opened. - - + + + + + + - Set whether to swap the endianess of the file. Enable this if you're dealing with files written in big endian machines. - - Note that this is about the file format, not CPU type. This is always reseted to [code]false[/code] whenever you open the file. + Open the file for writing or reading, depending on the flags. - - + + + + + + + + - Get the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [@Global Scope]. + Open an encrypted file in write or read mode. You need to pass a binary key to encrypt/decrypt it. - + + + + + + + + + - Get the next Variant value from the file. + Open an encrypted file in write or read mode. You need to pass a password to encrypt/decrypt it. - - - - + + - Get the next value of the file in CSV (Comma Separated Values) format. You can pass a different delimiter to use other than the default "," (comma). + Change the file reading/writing cursor to the specified position (in bytes from the beginning of the file). - - + + - Store an integer as 8 bits in the file. + Change the file reading/writing cursor to the specified position (in bytes from the end of the file). Note that this is an offset, so you should use negative numbers or the cursor will be at the end of the file. + + + + + + + Set whether to swap the endianess of the file. Enable this if you're dealing with files written in big endian machines. + + Note that this is about the file format, not CPU type. This is always reseted to [code]false[/code] whenever you open the file. @@ -12557,32 +12636,32 @@ This approximation makes straight segments between each point, then subdivides t Store an integer as 64 bits in the file. - - + + - Store a floating point number as 32 bits in the file. + Store an integer as 8 bits in the file. - - + + - Store a floating point number as 64 bits in the file. + Store the given array of bytes in the file. - + - Store a floating point number in the file. + Store a floating point number as 64 bits in the file. - - + + - Store the given array of bytes in the file. + Store a floating point number as 32 bits in the file. @@ -12592,41 +12671,32 @@ This approximation makes straight segments between each point, then subdivides t Store the given [String] as a line in the file. - + - Store the given [String] in the file. + Store the given [String] as a line in the file in Pascal format (i.e. also store the length of the string). - - + + - Store any Variant value in the file. + Store a floating point number in the file. - + - Store the given [String] as a line in the file in Pascal format (i.e. also store the length of the string). - - - - - - - Get a [String] saved in Pascal format from the file. + Store the given [String] in the file. - - - - + + - Get whether or not the file in the specified path exists. + Store any Variant value in the file. @@ -12634,12 +12704,12 @@ This approximation makes straight segments between each point, then subdivides t Open the file for reading. - - Open the file for writing. Create it if the file not exists and truncate if it exists. - Open the file for reading and writing, without truncating the file. + + Open the file for writing. Create it if the file not exists and truncate if it exists. + Open the file for reading and writing. Create it if the file not exists and truncate if it exists. @@ -12653,16 +12723,23 @@ This approximation makes straight segments between each point, then subdivides t FileDialog is a preset dialog used to choose files and directories in the filesystem. It supports filter masks. + + + + + Add a custom filter. Filter format is: "mask ; description", example (C++): dialog->add_filter("*.png ; PNG Images"); + + Clear all the added filters in the dialog. - - - + + + - Add a custom filter. Filter format is: "mask ; description", example (C++): dialog->add_filter("*.png ; PNG Images"); + Return the file access permission of the dialog. @@ -12686,34 +12763,6 @@ This approximation makes straight segments between each point, then subdivides t Get the current selected path (directory and file) of the file dialog (empty if none). - - - - - Set the current working directory of the file dialog. - - - - - - - Set the current selected file name of the file dialog. - - - - - - - Set the current selected file path of the file dialog. - - - - - - - Set the file dialog mode from the MODE_* enum. - - @@ -12728,6 +12777,18 @@ This approximation makes straight segments between each point, then subdivides t Return the vertical box container of the dialog, custom controls can be added to it. + + + Invalidate and update the current dialog content list. + + + + + + + Return true if the diaog allows show hidden files. + + @@ -12735,41 +12796,43 @@ This approximation makes straight segments between each point, then subdivides t Set the file access permission of the dialog(Must be one of [ACCESS_RESOURCES], [ACCESS_USERDATA] or [ACCESS_FILESYSTEM]). - - - + + + - Return the file access permission of the dialog. + Set the current working directory of the file dialog. - - + + - Set the dialog should show hidden files. + Set the current selected file name of the file dialog. - - - + + + - Return true if the diaog allows show hidden files. + Set the current selected file path of the file dialog. - + + + - Invalidate and update the current dialog content list. + Set the file dialog mode from the MODE_* enum. - - - - + + - Event emitted when the user selects multiple files. + Set the dialog should show hidden files. - + + + @@ -12784,8 +12847,24 @@ This approximation makes straight segments between each point, then subdivides t Event emitted when the user selects a file (double clicks it or presses the OK button). + + + + + Event emitted when the user selects multiple files. + + + + The dialog allows the selection of file and directory. + + + The dialog allows ascess files under [Resource] path(res://) . + + + The dialog allows ascess files in whole file system. + The dialog allows the selection of one, and only one file. @@ -12801,15 +12880,6 @@ This approximation makes straight segments between each point, then subdivides t The dialog will warn when a file exists. - - The dialog allows the selection of file and directory. - - - The dialog allows ascess files under [Resource] path(res://) . - - - The dialog allows ascess files in whole file system. - @@ -12828,13 +12898,18 @@ This approximation makes straight segments between each point, then subdivides t FixedMaterial is a simple type of material [Resource], which contains a fixed amount of parameters. It is the only type of material supported in fixed-pipeline devices and APIs. It is also an often a better alternative to [ShaderMaterial] for most simple use cases. - - - - + + + + - Set a parameter, parameters are defined in the PARAM_* enum. The type of each parameter may change, so it's best to check the enum. + + + + + + @@ -12844,40 +12919,35 @@ This approximation makes straight segments between each point, then subdivides t Return a parameter, parameters are defined in the PARAM_* enum. The type of each parameter may change, so it's best to check the enum. - - - - - + + + - Set a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). - - + + - Return a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). + Return the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. - + + + - - - Set the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. + Return a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). - - + + - - - Return the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. + Returns the special transform used to post-transform UV coordinates of the uv_xform texcoord mode: TEXCOORD_UV_TRANSFORM. @@ -12888,54 +12958,70 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + - - + + + + - Sets a special transform used to post-transform UV coordinates of the uv_xform texcoord mode: TEXCOORD_UV_TRANSFORM. - - - - - - - Returns the special transform used to post-transform UV coordinates of the uv_xform texcoord mode: TEXCOORD_UV_TRANSFORM. + Set a parameter, parameters are defined in the PARAM_* enum. The type of each parameter may change, so it's best to check the enum. - - + + - - - + + + + + + Set the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. - - + + + + + Set a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). - - - + + + + Sets a special transform used to post-transform UV coordinates of the uv_xform texcoord mode: TEXCOORD_UV_TRANSFORM. + + + + + + + + + + + + + + + + Diffuse Lighting (light scattered from surface). @@ -12962,8 +13048,6 @@ This approximation makes straight segments between each point, then subdivides t Maximum amount of parameters. - - Read texture coordinates from the UV array. @@ -12973,21 +13057,7 @@ This approximation makes straight segments between each point, then subdivides t Read texture coordinates from the UV2 array. - - - - - - - - - - - - - - - + @@ -13014,6 +13084,23 @@ This approximation makes straight segments between each point, then subdivides t Draw "string" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally clipping the width. "pos" specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. + + + + + + + + + + + + + + + Draw character "char" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally kerning if "next" is passed. clipping the width. "pos" specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character. + + @@ -13035,12 +13122,6 @@ This approximation makes straight segments between each point, then subdivides t Return the total font height (ascent plus descent) in pixels. - - - - - - @@ -13050,21 +13131,10 @@ This approximation makes straight segments between each point, then subdivides t Return the size of a string, taking kerning and advance into account. - - + + - - - - - - - - - - - Draw character "char" into a canvas item using the font at a given "pos" position, with "modulate" color, and optionally kerning if "next" is passed. clipping the width. "pos" specifies the baseline, not the top. To draw from the top, [i]ascent[/i] must be added to the Y axis. The width used by the character is returned, making this function useful for drawing strings character by character. @@ -13101,14 +13171,14 @@ This approximation makes straight segments between each point, then subdivides t - - + + - - + + @@ -13123,19 +13193,19 @@ This approximation makes straight segments between each point, then subdivides t - - + + - - + Should put children to the top left corner instead of center of the container. - - + + + + - Should put children to the top left corner instead of center of the container. @@ -13162,16 +13232,16 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + @@ -13182,31 +13252,31 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + - - + + - + - - - - + + + + - + @@ -13214,11 +13284,11 @@ This approximation makes straight segments between each point, then subdivides t - + + + - - @@ -13238,15 +13308,15 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - + @@ -13254,51 +13324,43 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + - - + + - + - - - - + + + + - - - - - - - - - + - + - + - + - + - + @@ -13310,13 +13372,21 @@ This approximation makes straight segments between each point, then subdivides t - + - + - + - + + + + + + + + + @@ -13334,7 +13404,7 @@ This approximation makes straight segments between each point, then subdivides t - + @@ -13343,12 +13413,14 @@ This approximation makes straight segments between each point, then subdivides t - + + + - + @@ -13357,35 +13429,33 @@ This approximation makes straight segments between each point, then subdivides t - - - + - - + + - - - + - + - + - - + + + + - + - + - + @@ -13404,36 +13474,32 @@ This approximation makes straight segments between each point, then subdivides t - - + + - - - - - - - + - - + + - - - - - + - - + + - + + + + + + + @@ -13452,30 +13518,28 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + - + - + - + - + - - - + @@ -13494,28 +13558,42 @@ This approximation makes straight segments between each point, then subdivides t - + + + + + + + + + + + + + - + + + - - - - + + - + - + - + + + @@ -13528,14 +13606,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -13548,81 +13618,72 @@ This approximation makes straight segments between each point, then subdivides t Base node for geometry based visual instances. Shares some common functionality like visibility and custom materials. - - - - - Set the material override for the whole geometry. - - - - + + - Return the material override for the whole geometry. - - - - - + + + - - + + - - - - - + + + - - + + - - + + + + - - + + + Return the material override for the whole geometry. - - + + - - - + + + - - + + - - - + + + @@ -13632,24 +13693,33 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + + + + + + + + + + Set the material override for the whole geometry. - - - - + + + + @@ -13674,74 +13744,80 @@ This approximation makes straight segments between each point, then subdivides t Contains global variables accessible from everywhere. Use the normal [Object] API, such as "Globals.get(variable)", "Globals.set(variable,value)" or "Globals.has(variable)" to access them. Variables stored in engine.cfg are also loaded into globals, making this object very useful for reading custom game configuration options. - - - + - Return true if a configuration value is present. + Clear the whole configuration (not recommended, may break things). - + + + - - - Set the order of a configuration value (influences when saved to the config file). + Return the order of a configuration value (influences when saved to the config file). - - + + - Return the order of a configuration value (influences when saved to the config file). - - + + + + - + + Convert a localized path (res://) to a full native OS path. + + + + + + - If set to true, this value can be saved to the configuration file. This is useful for editors. + Return true if a configuration value is present. - + - If returns true, this value can be saved to the configuration file. This is useful for editors. - + + + - Clear the whole configuration (not recommended, may break things). + If returns true, this value can be saved to the configuration file. This is useful for editors. - - + + - + - Convert a path to a localized path (res:// path). - + - Convert a localized path (res://) to a full native OS path. + Convert a path to a localized path (res:// path). @@ -13750,36 +13826,30 @@ This approximation makes straight segments between each point, then subdivides t - - + + - + - - - + - - - - - - - + + Set the order of a configuration value (influences when saved to the config file). - - - - + + + + + If set to true, this value can be saved to the configuration file. This is useful for editors. @@ -13810,21 +13880,6 @@ This approximation makes straight segments between each point, then subdivides t Create a connection between 'from_port' slot of 'from' GraphNode and 'to_port' slot of 'to' GraphNode. If the connection already exists, no connection is created. - - - - - - - - - - - - - Return true if the 'from_port' slot of 'from' GraphNode is connected to the 'to_port' slot of 'to' GraphNode. - - @@ -13852,13 +13907,6 @@ This approximation makes straight segments between each point, then subdivides t Return the scroll offset. - - - - - Set the zoom value of the GraphEdit. Zoom value is between [0.01; 1.728]. - - @@ -13866,11 +13914,19 @@ This approximation makes straight segments between each point, then subdivides t Return the current zoom value. - - + + + + + + + + + + - Enable the disconnection of existing connections in the visual GraphEdit by left-clicking a connection and releasing into the void. + Return true if the 'from_port' slot of 'from' GraphNode is connected to the 'to_port' slot of 'to' GraphNode. @@ -13880,31 +13936,33 @@ This approximation makes straight segments between each point, then subdivides t Return true is the disconnection of connections is enable in the visual GraphEdit. False otherwise. - - - - - Signal sent when a GraphNode is attempted to be removed from the GraphEdit. - - - + + + - Signal sent when a GraphNode is attempted to be duplicated in the GraphEdit. + Enable the disconnection of existing connections in the visual GraphEdit by left-clicking a connection and releasing into the void. - - - + + + - Signal sent when a popup is requested. Happens on right-clicking in the GraphEdit. 'p_position' is the position of the mouse pointer when the signal is sent. + Set the zoom value of the GraphEdit. Zoom value is between [0.01; 1.728]. - + + + Signal sent at the beginning of a GraphNode movement. - + + + Signal sent at the end of a GraphNode movement. + + + @@ -13914,10 +13972,15 @@ This approximation makes straight segments between each point, then subdivides t - Signal sent to the GraphEdit when the connection between 'from_slot' slot of 'from' GraphNode and 'to_slot' slot of 'to' GraphNode is attempted to be removed. + Signal sent to the GraphEdit when the connection between 'from_slot' slot of 'from' GraphNode and 'to_slot' slot of 'to' GraphNode is attempted to be created. - + + + Signal sent when a GraphNode is attempted to be removed from the GraphEdit. + + + @@ -13927,25 +13990,32 @@ This approximation makes straight segments between each point, then subdivides t - Signal sent to the GraphEdit when the connection between 'from_slot' slot of 'from' GraphNode and 'to_slot' slot of 'to' GraphNode is attempted to be created. + Signal sent to the GraphEdit when the connection between 'from_slot' slot of 'from' GraphNode and 'to_slot' slot of 'to' GraphNode is attempted to be removed. - + - Signal sent at the end of a GraphNode movement. + Signal sent when a GraphNode is attempted to be duplicated in the GraphEdit. + + + + + + + Signal sent when a popup is requested. Happens on right-clicking in the GraphEdit. 'p_position' is the position of the mouse pointer when the signal is sent. - - - + - + + + @@ -13957,110 +14027,84 @@ This approximation makes straight segments between each point, then subdivides t A GraphNode is a container defined by a title. It can have 1 or more input and output slots, which can be enabled (shown) or disabled (not shown) and have different (incompatible) types. Colors can also be assigned to slots. A tuple of input and output slots is defined for each GUI element included in the GraphNode. Input and output connections are left and right slots, but only enabled slots are counted as connections. - - - - - Set the title of the GraphNode. - - - - - + - Return the title of the GraphNode. + Disable all input and output slots of the GraphNode. - + - - - - - - - - - - - - - Set the tuple of input/output slots defined by 'idx' ID. 'left' slots are input, 'right' are output. 'type' is an integer defining the type of the slot. Refer to description for the compatibility between slot types. + Disable input and output slot whose index is 'idx'. - + + + - Disable input and output slot whose index is 'idx'. + Return the color of the input connection 'idx'. - + + + - Disable all input and output slots of the GraphNode. + Return the number of enabled input slots (connections) to the GraphNode. - - + + - Return true if left (input) slot 'idx' is enabled. False otherwise. + Return the position of the input connection 'idx'. - + - Return the (integer) type of left (input) 'idx' slot. + Return the type of the input connection 'idx'. - + - Return the color set to 'idx' left (input) slot. + Return the color of the output connection 'idx'. - - + + - - - Return true if right (output) slot 'idx' is enabled. False otherwise. + Return the number of enabled output slots (connections) of the GraphNode. - - + + - Return the (integer) type of right (output) 'idx' slot. + Return the position of the output connection 'idx'. - - + + - Return the color set to 'idx' right (output) slot. - - - - - - - Set the offset of the GraphNode. + Return the type of the output connection 'idx'. @@ -14070,72 +14114,79 @@ This approximation makes straight segments between each point, then subdivides t Return the offset of the GraphNode. - - + + + + - Return the number of enabled output slots (connections) of the GraphNode. + Return the color set to 'idx' left (input) slot. - - + + + + - Return the number of enabled input slots (connections) to the GraphNode. + Return the color set to 'idx' right (output) slot. - - + + - Return the position of the output connection 'idx'. + Return the (integer) type of left (input) 'idx' slot. - + - Return the type of the output connection 'idx'. + Return the (integer) type of right (output) 'idx' slot. - - + + - - - Return the color of the output connection 'idx'. + Return the title of the GraphNode. - - + + - - - Return the position of the input connection 'idx'. + Returns true if the close button is shown. False otherwise. - - + + - Return the type of the input connection 'idx'. + Return true if left (input) slot 'idx' is enabled. False otherwise. - - + + - Return the color of the input connection 'idx'. + Return true if right (output) slot 'idx' is enabled. False otherwise. + + + + + + + Set the offset of the GraphNode. @@ -14145,20 +14196,34 @@ This approximation makes straight segments between each point, then subdivides t Show the close button on the GraphNode if 'show' is true (disabled by default). If enabled, a connection on the signal close_request is needed for the close button to work. - - - + + + + + + + + + + + + + + + - Returns true if the close button is shown. False otherwise. + Set the tuple of input/output slots defined by 'idx' ID. 'left' slots are input, 'right' are output. 'type' is an integer defining the type of the slot. Refer to description for the compatibility between slot types. - - - + + + - Signal sent when the GraphNode is requested to be displayed over other ones. Happens on focusing (clicking into) the GraphNode. + Set the title of the GraphNode. - + + + Signal sent on closing the GraphNode. @@ -14178,33 +14243,38 @@ This approximation makes straight segments between each point, then subdivides t Signal sent when the GraphNode is moved. + + + Signal sent when the GraphNode is requested to be displayed over other ones. Happens on focusing (clicking into) the GraphNode. + + - + - + - + - + - + - + - + - + - + - + @@ -14216,13 +14286,6 @@ This approximation makes straight segments between each point, then subdivides t Grid container will arrange its children in a grid like structure, the grid columns are specified using the [method set_columns] method and the number of rows will be equal to the number of children in the container divided by the number of columns, for example: if the container has 5 children, and 2 columns, there will be 3 rows in the container. Notice that grid layout will preserve the columns and rows for every size of the container. - - - - - Sets the numbers of columns in the container, then reorder its children to accommodate the new layout - - @@ -14230,14 +14293,21 @@ This approximation makes straight segments between each point, then subdivides t Returns the number of columns in this container + + + + + Sets the numbers of columns in the container, then reorder its children to accommodate the new layout + + - - + + @@ -14246,64 +14316,98 @@ This approximation makes straight segments between each point, then subdivides t - - + + + + - - + + + + - - + + + + - - + + + + - - + + + + - - - + + + + + - - + + + + - - - + + + + + - - + + - + - + + + + + + + + + + + + + + + - + - + + + + + @@ -14332,15 +14436,9 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - + + + @@ -14350,153 +14448,125 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - + + - - - - - - - + + + - - - - - + + + - - + + - - - - - - + + - - - - + + - - - - + + + + + + + + + + - - - - + + - - - - + + - - + + - - - + + + - + + + + + + + + + - - + + - - - + + + - + + + @@ -14514,11 +14584,11 @@ This approximation makes straight segments between each point, then subdivides t Groove constraint for 2D physics. This is useful for making a body "slide" through a segment placed in another. - - - + + + - Set the length of the groove. + Set the final offset of the groove on body A. @@ -14535,11 +14605,11 @@ This approximation makes straight segments between each point, then subdivides t Set the initial offset of the groove on body A. - - - + + + - Set the final offset of the groove on body A. + Set the length of the groove. @@ -14576,24 +14646,24 @@ This approximation makes straight segments between each point, then subdivides t - + - + - + - + - - - + + + @@ -14608,22 +14678,22 @@ This approximation makes straight segments between each point, then subdivides t - + - - - + - + - + + + @@ -14656,17 +14726,17 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - + @@ -14684,11 +14754,11 @@ This approximation makes straight segments between each point, then subdivides t - + - + @@ -14701,6 +14771,11 @@ This approximation makes straight segments between each point, then subdivides t Can be reused to connect to different hosts and make many requests. + + + Cloces the current connection, allows for reusal of [HTTPClient]. + + @@ -14718,13 +14793,6 @@ This approximation makes straight segments between each point, then subdivides t verify_host will check the SSL identity of the host if set to true. - - - - - Set connection to use, for this client. - - @@ -14732,67 +14800,41 @@ This approximation makes straight segments between each point, then subdivides t Return current connection. - + - - - - - - - - - Sends a raw request to the connected host. The url is what is normally behind the hostname, i.e. in [code]http://somehost.com/index.php[/code], url would be "index.php". - Headers are HTTP request headers. - Sends body raw, as a byte array, does not encode it in any way. + Return the response's body length. - + - - - - - - - - - Sends a request to the connected host. The url is what is normally behind the hostname, i.e. in [code]http://somehost.com/index.php[/code], url would be "index.php". - Headers are HTTP request headers. - To create a POST request with query strings to push to the server, do: - [codeblock] - var fields = {"username" : "user", "password" : "pass"} - var queryString = httpClient.query_string_from_dict(fields) - var headers = ["Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())] - var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, queryString) - [/codeblock] + Return the HTTP status code of the response. - - + + - - - Stub function + Return the response headers. - - + + - - - Stub function + Returns all response headers as dictionary where the case-sensitivity of the keys and values is kept like the server delivers it. A value is a simple String, this string can have more than one value where "; " is used as separator. +Structure: ("key":"value1; value2") +Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - Cloces the current connection, allows for reusal of [HTTPClient]. + Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. @@ -14802,41 +14844,39 @@ This approximation makes straight segments between each point, then subdivides t Return whether this [HTTPClient] has a response available. - + - Return whether this [HTTPClient] has a response that is chunked. - - - - - - - Return the HTTP status code of the response. + Return whether blocking mode is enabled. - - + + - Return the response headers. + Return whether this [HTTPClient] has a response that is chunked. - - + + - Returns all response headers as dictionary where the case-sensitivity of the keys and values is kept like the server delivers it. A value is a simple String, this string can have more than one value where "; " is used as separator. -Structure: ("key":"value1; value2") -Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + This needs to be called in order to have any request processed. Check results with [method get_status] - - + + + + - Return the response's body length. + Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary, e.g.: + [codeblock] + var fields = {"username": "user", "password": "pass"} + String queryString = httpClient.query_string_from_dict(fields) + returns:= "username=user&password=pass" + [/codeblock] @@ -14846,53 +14886,83 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Reads one chunk from the response. - - + + + + + + + + + + - Sets the size of the buffer used and maximum bytes to read per iteration. see [method read_response_body_chunk] + Sends a request to the connected host. The url is what is normally behind the hostname, i.e. in [code]http://somehost.com/index.php[/code], url would be "index.php". + Headers are HTTP request headers. + To create a POST request with query strings to push to the server, do: + [codeblock] + var fields = {"username" : "user", "password" : "pass"} + var queryString = httpClient.query_string_from_dict(fields) + var headers = ["Content-Type: application/x-www-form-urlencoded", "Content-Length: " + str(queryString.length())] + var result = httpClient.request(httpClient.METHOD_POST, "index.php", headers, queryString) + [/codeblock] - - + + + + + + + + + + - If set to true, execution will block until all data is read from the response. + Sends a raw request to the connected host. The url is what is normally behind the hostname, i.e. in [code]http://somehost.com/index.php[/code], url would be "index.php". + Headers are HTTP request headers. + Sends body raw, as a byte array, does not encode it in any way. - - + + + + - Return whether blocking mode is enabled. + Stub function - + + + - Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. + Stub function - - - + + + - This needs to be called in order to have any request processed. Check results with [method get_status] + If set to true, execution will block until all data is read from the response. - - - - + + - Generates a GET/POST application/x-www-form-urlencoded style query string from a provided dictionary, e.g.: - [codeblock] - var fields = {"username": "user", "password": "pass"} - String queryString = httpClient.query_string_from_dict(fields) - returns:= "username=user&password=pass" - [/codeblock] + Set connection to use, for this client. + + + + + + + Sets the size of the buffer used and maximum bytes to read per iteration. see [method read_response_body_chunk] @@ -14915,26 +14985,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - @@ -15033,6 +15083,26 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + @@ -15044,101 +15114,101 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Can be used to make HTTP requests or download files via HTTP. - - - - - - - - - + - Make a HTTP GET request. The url is the complete url including "http://" or "https://" which will be parsed for a host and a port. - The custom_headers are HTTP request headers which will be used. If User-Agent is not specified a Godot specific will be used. - The ssl_validate_domain specifies if in case of HTTPS the server certificate should be verified. + Cancel the current request. - + + + - Cancel the current request. + Return the response body length. - + - Return the current status of the underlying [HTTPClient]. + Return current body size limit. - - - + + + - Make this HTTPRequest use threads. + Return the file this request will download into. - - + + - Whether this request is using threads. + Return the amount of bytes this HTTPRequest downloaded. - - - + + + - Set the response body size limit. + Return the current status of the underlying [HTTPClient]. - + - Return current body size limit. + Return the maximum amount of redirects that will be followed. - - - + + + - Set the maximum amount of redirects the request will follow. + Whether this request is using threads. - + + + + + + + - Return the maximum amount of redirects that will be followed. + Make a HTTP GET request. The url is the complete url including "http://" or "https://" which will be parsed for a host and a port. + The custom_headers are HTTP request headers which will be used. If User-Agent is not specified a Godot specific will be used. + The ssl_validate_domain specifies if in case of HTTPS the server certificate should be verified. - - + + - Set the file to download into. Outputs the response body into the file. + Set the response body size limit. - - - + + + - Return the file this request will download into. + Set the file to download into. Outputs the response body into the file. - - - + + + - Return the amount of bytes this HTTPRequest downloaded. + Set the maximum amount of redirects the request will follow. - - - + + + - Return the response body length. + Make this HTTPRequest use threads. @@ -15163,6 +15233,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + HTTPRequest couldn't write to the download file. + + + Request reached it's maximum redirect limit, see [method set_max_redirects]. + Request failed while connecting. @@ -15187,12 +15263,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) HTTPRequest couldn't open the download file. - - HTTPRequest couldn't write to the download file. - - - Request reached it's maximum redirect limit, see [method set_max_redirects]. - @@ -15201,10 +15271,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + @@ -15225,16 +15295,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + + + + + + + @@ -15253,12 +15329,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - @@ -15269,22 +15339,26 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) IP contains some support functions for the IPv4 protocol. TCP/IP support is in different classes (see [StreamPeerTCP] and [TCP_Server]). IP provides hostname resolution support, both blocking and threaded. - - - - + + - Resolve a given hostname, blocking. Resolved hostname is returned as an IP. + Erase a queue ID, removing it from the queue if needed. This should be used after a queue is completed to free it and enable more queries to happen. + + + + + + - - + + - + - Create a queue item for resolving a given hostname. The queue ID is returned, or RESOLVER_INVALID_ID on error. + Return a resolved item address, or an empty string if an error happened or resolution didn't happen yet (see [method get_resolve_item_status]). @@ -15296,30 +15370,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the status of hostname queued for resolving, given it's queue ID. Returned status can be any of the RESOLVER_STATUS_* enumeration. - + - - - - Return a resolved item address, or an empty string if an error happened or resolution didn't happen yet (see [method get_resolve_item_status]). - - - - + - Erase a queue ID, removing it from the queue if needed. This should be used after a queue is completed to free it and enable more queries to happen. + Resolve a given hostname, blocking. Resolved hostname is returned as an IP. - - + + + + + Create a queue item for resolving a given hostname. The queue ID is returned, or RESOLVER_INVALID_ID on error. + + @@ -15330,8 +15402,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - @@ -15352,6 +15422,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Built in native image datatype. Contains image data, which can be converted to a texture, and several functions to interact with it. + + + + + + + + + + + + + Create an empty image of a specific size and format. + + @@ -15524,21 +15609,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Save this [Image] as a png. - - - - - - - - - - - - - Create an empty image of a specific size and format. - - @@ -15553,22 +15623,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - @@ -15589,12 +15643,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + @@ -15635,25 +15705,8 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Create a new [ImageTexture] from an [Image] with "flags" from [Texture].FLAG_*. - - - - - Return the format of the [ImageTexture], one of [Image].FORMAT_*. - - - - - - - Load an [ImageTexure]. - - - - - + - Set the [Image] of this [ImageTexture]. @@ -15663,11 +15716,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the [Image] of this [ImageTexture]. - - - + + + - Set the storage type. One of [ImageTexture].STORAGE_*. + Return the format of the [ImageTexture], one of [Image].FORMAT_*. + + + + + + + Return the storage quality for [ImageTexture].STORAGE_COMPRESS_LOSSY. @@ -15677,21 +15737,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the storage type. One of [ImageTexture].STORAGE_*. - - + + - Set the storage quality in case of [ImageTexture].STORAGE_COMPRESS_LOSSY. - - - - - - - Return the storage quality for [ImageTexture].STORAGE_COMPRESS_LOSSY. + Load an [ImageTexure]. - + @@ -15699,12 +15752,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + Set the [Image] of this [ImageTexture]. - + + + + Set the storage quality in case of [ImageTexture].STORAGE_COMPRESS_LOSSY. @@ -15713,6 +15772,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + Set the storage type. One of [ImageTexture].STORAGE_*. + + + + + + @@ -15732,65 +15802,65 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - + + + - - + + - - + + + + - - - + - - - + - - + + - - + + - - - - - - + + - + + + - + + + @@ -15806,42 +15876,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) A Singleton that deals with inputs. This includes key presses, mouse buttons and movement, joysticks, and input actions. - - - - - - - Returns true or false depending on whether the key is pressed or not. You can pass KEY_*, which are pre-defined constants listed in [@Global Scope]. - - - - - - - - - Returns true or false depending on whether mouse button is pressed or not. You can pass BUTTON_*, which are pre-defined constants listed in [@Global Scope]. - - - - - - - - + + - Returns if the joystick button at the given index is currently pressed. (see JOY_* constants in [@Global Scope]) + This will simulate pressing the specificed action. - - - + - Returns true or false depending on whether the action event is pressed. Actions and their events can be set in the Project Settings / Input Map tab. Or be set with [InputMap]. + If the specified action is already pressed, this will release it. @@ -15853,20 +15899,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Add a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. - - - - - Removes all mappings from the internal db that match the given uid. - - - - + + - - - Returns if the specified device is known by the system. This means that it sets all button and axis indices exactly as defined in the JOY_* constants (see [@Global Scope]). Unknown joysticks are not expected to match these constants, but you can still retrieve events from them. + If the device has an accelerometer, this will return the movement. @@ -15880,15 +15917,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the current value of the joystick axis at given index (see JOY_* constants in [@Global Scope]) - - - - - - - Returns the name of the joystick at the specified device index - - @@ -15898,13 +15926,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns a SDL2 compatible device guid on platforms that use gamepad remapping. Returns "Default Gamepad" otherwise. - - + + - Returns the strength of the joystick vibration: x is the strength of the weak motor, and y is the strength of the strong motor. + Returns the name of the joystick at the specified device index @@ -15916,38 +15944,34 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the duration of the current vibration effect in seconds. - + + + - - - - - - - Starts to vibrate the joystick. Joysticks usually come with two rumble motors, a strong and a weak one. weak_magnitude is the strength of the weak motor (between 0 and 1) and strong_magnitude is the strength of the strong motor (between 0 and 1). duration is the duration of the effect in seconds (a duration of 0 will play the vibration indefinitely). + Returns the strength of the joystick vibration: x is the strength of the weak motor, and y is the strength of the strong motor. - - - + + + - Stops the vibration of the joystick. + If the device has a magnetometer, this will return the magnetic field strength in micro-Tesla for all axes. - - + + - If the device has an accelerometer, this will return the movement. + Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at the same time the bits are added together. - - + + - If the device has a magnetometer, this will return the magnetic field strength in micro-Tesla for all axes. + Return the mouse mode. See the constants for more information. @@ -15957,46 +15981,58 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the mouse speed. - - + + + + - Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at the same time the bits are added together. + Returns true or false depending on whether the action event is pressed. Actions and their events can be set in the Project Settings / Input Map tab. Or be set with [InputMap]. - - + + + + + + - Set the mouse mode. See the constants for more information. + Returns if the joystick button at the given index is currently pressed. (see JOY_* constants in [@Global Scope]) - - + + + + - Return the mouse mode. See the constants for more information. + Returns if the specified device is known by the system. This means that it sets all button and axis indices exactly as defined in the JOY_* constants (see [@Global Scope]). Unknown joysticks are not expected to match these constants, but you can still retrieve events from them. - - + + + + - Sets the mouse position to the specified vector. + Returns true or false depending on whether the key is pressed or not. You can pass KEY_*, which are pre-defined constants listed in [@Global Scope]. - - + + + + - This will simulate pressing the specificed action. + Returns true or false depending on whether mouse button is pressed or not. You can pass BUTTON_*, which are pre-defined constants listed in [@Global Scope]. - - + + - If the specified action is already pressed, this will release it. + Removes all mappings from the internal db that match the given uid. @@ -16008,6 +16044,40 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set a custom mouse cursor image, which is only visible inside the game window. The hotspot can also be specified. + + + + + Set the mouse mode. See the constants for more information. + + + + + + + + + + + + + Starts to vibrate the joystick. Joysticks usually come with two rumble motors, a strong and a weak one. weak_magnitude is the strength of the weak motor (between 0 and 1) and strong_magnitude is the strength of the strong motor (between 0 and 1). duration is the duration of the effect in seconds (a duration of 0 will play the vibration indefinitely). + + + + + + + Stops the vibration of the joystick. + + + + + + + Sets the mouse position to the specified vector. + + @@ -16099,16 +16169,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - - Empty input event. + + + + Joystick motion event. + + + Joystick button event. Key event. @@ -16119,18 +16194,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Mouse button event. - - Joystick motion event. - - - Joystick button event. + + Empty input event. - - @@ -16185,15 +16255,19 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + + + + + @@ -16201,19 +16275,101 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + @@ -16265,122 +16421,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - + - + - + + + - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - @@ -16435,31 +16505,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - + + + + - - + + + + - + + + + + @@ -16467,16 +16541,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -16531,43 +16601,47 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - + - + - + - + + + - + - + - + + + + + + + - + + + + + @@ -16575,16 +16649,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -16639,49 +16709,53 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - + - + - + - + + + + + - + + + - + + + + + - + + + + + @@ -16689,16 +16763,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -16753,35 +16823,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - + + - + - + + + + + - + + + + + @@ -16789,16 +16863,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -16853,25 +16923,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - + + + + + + - + + + + + @@ -16879,16 +16953,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -16899,38 +16969,33 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Singleton that manages actions. InputMap has a list of the actions used in InputEvent, which can be modified. - - - + + + - Whether this InputMap has an action with name "action". + Add an [InputEvent] to action. This [InputEvent] will trigger the action. - - - + - - Return the id of an action. - - - - - - + - Return the action from an id. + Remove an [InputEvent] from an action. - - + + + + + + - Return an [Array] of all actions in the [InputMap]. + Whether an action has an [InputEvent] associated with it. @@ -16947,33 +17012,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Remove an action from the [InputMap]. - - + + + + - + - Add an [InputEvent] to action. This [InputEvent] will trigger the action. - - + + - - - + - Whether an action has an [InputEvent] associated with it. + Return the action from an id. - + + + - - - Remove an [InputEvent] from an action. + Return the id of an action. @@ -16985,14 +17049,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return an [Array] of [InputEvent]s associated with an action. - + + + + + Return an [Array] of all actions in the [InputMap]. + + + - - - + + Whether this InputMap has an action with name "action". @@ -17010,18 +17080,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - + + + + + + @@ -17034,6 +17104,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Integer Array. Array of integers. Can only contain integers. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -17064,15 +17143,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the array size. - - - - - - - Create from a generic array. - - @@ -17083,9 +17153,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -17095,33 +17165,33 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + - - - + + + - - + + - - - + + + @@ -17135,21 +17205,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - + + + @@ -17159,39 +17223,45 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + + + + + + + @@ -17205,6 +17275,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + @@ -17215,99 +17293,81 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - + - - - - - + - - + + - - - - - - - + + + - - + + - - - - - - - + + + - - + + - - - - + + + + - + - - + + - - - + + + - - - - + + - + + + - - @@ -17317,53 +17377,49 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - - - - + + - - - - - + + + - - + + - - - - - - - + + + - + + + - + @@ -17371,148 +17427,162 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + - + + + - + + + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + + + - - + + + + - - - + + + + + - - + + + + - - - + + + + + - - + + + + - - - + + + + + - - + + + + - - - + + + - - + + - - - + + + - - + + - - - + - - - - - - + + - - - - @@ -17521,25 +17591,25 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + - - - + + + @@ -17555,33 +17625,33 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - + - + - + - + - + - + - + - + - + - + + + @@ -17591,9 +17661,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -17603,24 +17673,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - @@ -17633,9 +17691,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + + + + + + + @@ -17651,25 +17721,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Base node for all joint constraints in 2D physics. Joints take 2 bodies and apply a custom constraint. - - - + + + - Set the path to the A node for the joint. Must be of type [PhysicsBody2D]. - - + + - Return the path to the A node for the joint. - - - + + + - Set the path to the B node for the joint. Must be of type [PhysicsBody2D]. + Return the path to the A node for the joint. @@ -17685,22 +17753,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + + Set the path to the A node for the joint. Must be of type [PhysicsBody2D]. - - - + + + + Set the path to the B node for the joint. Must be of type [PhysicsBody2D]. @@ -17717,52 +17787,55 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Kinematic Characters: KinematicBody also has an api for moving objects (the [method move] method) while performing collision tests. This makes them really useful to implement characters that collide against a world, but that don't require advanced physics. - - + + - - - Move the body in the given direction, stopping if there is an obstacle. The returned vector is how much movement was remaining before being stopped. + Return if this body can collide with character bodies. - - + + - - - Move the body to the given position. This is not a teleport, and the body will stop if there is an obstacle. The returned vector is how much movement was remaining before being stopped. + Return if this body can collide with kinematic bodies. - + - - - Returns whether the KinematicBody can be teleported to the destination given as an argument, checking all collision shapes of the body against potential colliders at the destination. + Return if this body can collide with rigid bodies. - + - Return whether the body is colliding with another. + Return if this body can collide with static bodies. - - + + + + - Return the point in space where the body is touching another. If there is no collision, this method will return (0,0,0), so collisions must be checked first with [method is_colliding]. + Returns whether the KinematicBody can be teleported to the destination given as an argument, checking all collision shapes of the body against potential colliders at the destination. - - + + - Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. + Return the body that collided with this one. + + + + + + + Return the shape index from the body that collided with this one. If there is no collision, this method will return 0, so collisions must be checked first with [method is_colliding]. @@ -17772,74 +17845,78 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the velocity of the body that collided with this one. - - + + - Return the body that collided with this one. + Return the collision margin for this object. - - + + - Return the shape index from the body that collided with this one. If there is no collision, this method will return 0, so collisions must be checked first with [method is_colliding]. + Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. - - - + + + - Set if this body should collide with static bodies. + Return the point in space where the body is touching another. If there is no collision, this method will return (0,0,0), so collisions must be checked first with [method is_colliding]. - + - Return if this body can collide with static bodies. + Return whether the body is colliding with another. - - + + + + - Set if this body should collide with kinematic bodies. + Move the body in the given direction, stopping if there is an obstacle. The returned vector is how much movement was remaining before being stopped. - - + + + + - Return if this body can collide with kinematic bodies. + Move the body to the given position. This is not a teleport, and the body will stop if there is an obstacle. The returned vector is how much movement was remaining before being stopped. - + - Set if this body should collide with rigid bodies. + Set if this body should collide with character bodies. - - - + + + - Return if this body can collide with rigid bodies. + Set if this body should collide with kinematic bodies. - + - Set if this body should collide with character bodies. + Set if this body should collide with rigid bodies. - - - + + + - Return if this body can collide with character bodies. + Set if this body should collide with static bodies. @@ -17849,13 +17926,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the collision margin for this object. A collision margin is an amount that all shapes will grow when computing collisions, to account for numerical imprecision. - - - - - Return the collision margin for this object. - - @@ -17870,50 +17940,46 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Kinematic Characters: KinematicBody2D also has an api for moving objects (the [method move] method) while performing collision tests. This makes them really useful to implement characters that collide against a world, but that don't require advanced physics. - - + + - - - Move the body in the given direction, stopping if there is an obstacle. The returned vector is how much movement was remaining before being stopped. + Return the body that collided with this one. - - + + - - - Move the body to the given position. This is not a teleport, and the body will stop if there is an obstacle. The returned vector is how much movement was remaining before being stopped. + Return the metadata of the shape that collided with this body. If there is no collision, it will return 0, so collisions must be checked first with [method is_colliding]. Additionally, this metadata can not be set with [method Object.set_meta], it must be set with [method Physics2DServer.body_set_shape_metadata]. - - + + - - - Return true if there would be a collision if the body moved in the given direction. + Return the shape index from the body that collided with this one. If there is no collision, this method will return 0, so collisions must be checked first with [method is_colliding]. - + - Return the last movement done by the body. + Return the velocity of the body that collided with this one. - + + + - Undo the last movement done by the body. + Return the collision margin for this object. - - + + - Return whether the body is colliding with another. + Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. @@ -17923,39 +17989,41 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the point in space where the body is touching another. If there is no collision, this method will return (0,0), so collisions must be checked first with [method is_colliding]. - + - Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. + Return the last movement done by the body. - - + + - Return the velocity of the body that collided with this one. + Return whether the body is colliding with another. - - + + + + - Return the body that collided with this one. + Move the body in the given direction, stopping if there is an obstacle. The returned vector is how much movement was remaining before being stopped. - - + + + + - Return the shape index from the body that collided with this one. If there is no collision, this method will return 0, so collisions must be checked first with [method is_colliding]. + Move the body to the given position. This is not a teleport, and the body will stop if there is an obstacle. The returned vector is how much movement was remaining before being stopped. - - - + - Return the metadata of the shape that collided with this body. If there is no collision, it will return 0, so collisions must be checked first with [method is_colliding]. Additionally, this metadata can not be set with [method Object.set_meta], it must be set with [method Physics2DServer.body_set_shape_metadata]. + Undo the last movement done by the body. @@ -17965,11 +18033,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the collision margin for this object. A collision margin is an amount (in pixels) that all shapes will grow when computing collisions, to account for numerical imprecision. - - + + + + - Return the collision margin for this object. + Return true if there would be a collision if the body moved in the given direction. @@ -17984,39 +18054,46 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Label is a control that displays formatted text, optionally autowrapping it to the [Control] area. It inherits from range to be able to scroll wrapped text vertically. - - - + + + - Sets the alignment mode to any of the ALIGN_* enumeration values. + Return the alignment mode (any of the ALIGN_* enumeration values). - + - Return the alignment mode (any of the ALIGN_* enumeration values). + Return the amount of lines. - - - + + + - Sets the vertical alignment mode to any of the VALIGN_* enumeration values. + Return the height of a line. - + - Return the vertical alignment mode (any of the VALIGN_* enumeration values). + Return the the number of lines to skipped before displaying. - - - + + + - Set the label text. Text can contain newlines. + Return the restricted number of lines to display. Returns -1 if unrestricted. + + + + + + + Return the restricted number of characters to display (as a percentage of the total text). @@ -18026,39 +18103,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the label text. Text can contain newlines. - - - + + + - Set [i]autowrap[/i] mode. When enabled, autowrap will fit text to the control width, breaking sentences when they exceed the available horizontal space. When disabled, the label minimum width becomes the width of the longest row, and the minimum height large enough to fit all rows. + Return the total length of the text. - - + + - Return the state of the [i]autowrap[/i] mode (see [method set_autowrap]). + Return the vertical alignment mode (any of the VALIGN_* enumeration values). - - - + + + - Cuts off the rest of the text if it is too wide. + Return the restricted number of characters to display. Returns -1 if unrestricted. - + - Return true if text would be cut off if it is too wide. + Return the state of the [i]autowrap[/i] mode (see [method set_autowrap]). - - - + + + - Display text in all capitals. + Return true if text would be cut off if it is too wide. @@ -18068,39 +18145,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if text is displayed in all capitals. - - - + + + - Return the height of a line. + Sets the alignment mode to any of the ALIGN_* enumeration values. - - - + + + - Return the amount of lines. + Set [i]autowrap[/i] mode. When enabled, autowrap will fit text to the control width, breaking sentences when they exceed the available horizontal space. When disabled, the label minimum width becomes the width of the longest row, and the minimum height large enough to fit all rows. - - - + + + - Return the total length of the text. + Cuts off the rest of the text if it is too wide. - - + + - Restricts the number of characters to display. Set to -1 to disable. + Sets the number of lines to skip before displaying. Useful for scrolling text. - - - + + + - Return the restricted number of characters to display. Returns -1 if unrestricted. + Restricts the number of lines to display. Set to -1 to disable. @@ -18110,39 +18187,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Restricts the number of characters to display (as a percentage of the total text). - - - - - Return the restricted number of characters to display (as a percentage of the total text). - - - - + + - Sets the number of lines to skip before displaying. Useful for scrolling text. + Set the label text. Text can contain newlines. - - - + + + - Return the the number of lines to skipped before displaying. + Display text in all capitals. - - + + - Restricts the number of lines to display. Set to -1 to disable. + Sets the vertical alignment mode to any of the VALIGN_* enumeration values. - - - + + + - Return the restricted number of lines to display. Returns -1 if unrestricted. + Restricts the number of characters to display. Set to -1 to disable. @@ -18173,19 +18243,19 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + - + - + - + - + @@ -18209,31 +18279,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Add another [Texture] to this [LargeTexture], starting on offset "ofs". - - - - - - - Set the offset of the piece with index "idx" to "ofs". - - - - - - - - - Set the [Texture] of the piece with index "idx" to "ofs". - - - - - - - Set the size of this [LargeTexture]. - - Clear the [LargeTexture]. @@ -18264,6 +18309,31 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the [Texture] of the piece with index "idx". + + + + + + + Set the offset of the piece with index "idx" to "ofs". + + + + + + + + + Set the [Texture] of the piece with index "idx" to "ofs". + + + + + + + Set the size of this [LargeTexture]. + + @@ -18276,41 +18346,37 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Light is the abstract base class for light nodes, so it shouldn't be used directly (It can't be instanced). Other types of light nodes inherit from it. Light contains the common variables and parameters used for lighting. - - - - - + + + - - + + - + - - - - - + + + - - + + - + - - - + + + @@ -18320,39 +18386,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + - - + + - - - - - - - - + + + + - - - + + + @@ -18362,51 +18424,59 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + + + - - - + + + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -18418,95 +18488,95 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Node that casts light in a 2D environment. Light is defined by a (usually grayscale) texture, a color, an energy value, a mode (see constants), and various other parameters (range and shadows-related). Note that Light2D can be used as a mask. - - - + + + - Switches the Light2D on or off, depending on the 'enabled' parameter. + Return the color of the Light2D. - - + + - Return true if the Light2D is enabled, false if it is not. + Return the energy value of the Light2D. - - - + + + - Set the texture of the Light2D. + Return the height of the Light2D. Used with 2D normalmapping. - - + + - Return the texture of the Light2D. + Return the item mask of the Light2D. - - - + + + - Set the offset of the light texture. + Return the item shadow mask of the Light2D. - - + + - Return the offset of the light texture. + Set the maximum layer value of objects of the scene that are affected by the Light2D. - - - + + + - Set the color of the Light2D. + Get the minimum layer value of objects of the scene that are affected by the Light2D. - - + + - Return the color of the Light2D. + Return the current mode set to the Light2D. - - - + + + - Set the height of the Light2D. Used with 2D normalmapping. + Return the shadow buffer size. - - + + - Return the height of the Light2D. Used with 2D normalmapping. + Return the color of casted shadows for this Light2D. - - - + + + - Set the energy value of the Light2D. The bigger the value, the stronger the light. + Return the Exponential Shadow Multiplier (ESM) value of the Light2D. - - + + - Return the energy value of the Light2D. + Return the texture of the Light2D. - - - + + + - Set the scale value of the light texture. + Return the offset of the light texture. @@ -18516,11 +18586,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the scale value of the light texture. - - - + + + - Set the minimum Z value that objects of the scene have to be in order to be affected by the Light2D. + Get the maximum Z value that objects of the scene can be in order to be affected by the Light2D. @@ -18530,46 +18600,46 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Get the minimum Z value that objects of the scene have to be in order to be affected by the Light2D. - - - + + + - Set the maximum Z value that objects of the scene can be in order to be affected by the Light2D. + Return true if the Light2D is enabled, false if it is not. - - + + - Get the maximum Z value that objects of the scene can be in order to be affected by the Light2D. + Return true if shadow casting is enabled for this Light2D, else return false. - - + + - Set the minimum layer value of objects of the scene that are affected by the Light2D. + Set the color of the Light2D. - - - + + + - Get the minimum layer value of objects of the scene that are affected by the Light2D. + Switches the Light2D on or off, depending on the 'enabled' parameter. - - + + - Set the maximum layer value of objects of the scene that are affected by the Light2D. + Set the energy value of the Light2D. The bigger the value, the stronger the light. - - - + + + - Set the maximum layer value of objects of the scene that are affected by the Light2D. + Set the height of the Light2D. Used with 2D normalmapping. @@ -18579,13 +18649,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the item mask of the Light2D to 'item_mask' value. - - - - - Return the item mask of the Light2D. - - @@ -18593,11 +18656,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the item shadow mask to 'item_shadow_mask' value. - - - + + + - Return the item shadow mask of the Light2D. + Set the maximum layer value of objects of the scene that are affected by the Light2D. + + + + + + + Set the minimum layer value of objects of the scene that are affected by the Light2D. @@ -18607,67 +18677,67 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the behaviour mode of the Light2D. Use constants defined in the constants section. - - - + + + - Return the current mode set to the Light2D. + Set the shadow buffer size. - - + + - Enable or disable shadows casting from this Light2D according to the 'enabled' parameter. + Set the color of casted shadows for this Light2D. - - - + + + - Return true if shadow casting is enabled for this Light2D, else return false. + Enable or disable shadows casting from this Light2D according to the 'enabled' parameter. - - + + - Set the shadow buffer size. + Set the Exponential Shadow Multiplier (ESM) value of the Light2D. - - - + + + - Return the shadow buffer size. + Set the texture of the Light2D. - - + + - Set the Exponential Shadow Multiplier (ESM) value of the Light2D. + Set the offset of the light texture. - - - + + + - Return the Exponential Shadow Multiplier (ESM) value of the Light2D. + Set the scale value of the light texture. - - + + - Set the color of casted shadows for this Light2D. + Set the maximum Z value that objects of the scene can be in order to be affected by the Light2D. - - - + + + - Return the color of casted shadows for this Light2D. + Set the minimum Z value that objects of the scene have to be in order to be affected by the Light2D. @@ -18694,11 +18764,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Occludes light cast by a Light2D, thus casting shadows. The LightOccluder2D must be provided with a shape (see OccluderPolygon2D) that allows the shadow to be computed. This shape affects the resulting shadow, while the shape of the representating asset shadowed does not actually affect shadows. - - - + + + - Set the OccluderPolygon2D that defines the LightOccluder2D. + Return the light mask of the LightOccluder2D. @@ -18715,11 +18785,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the LightOccluder2D light mask. The LightOccluder2D will cast shadows only from Light2Ds that belong to the same light mask(s). - - - + + + - Return the light mask of the LightOccluder2D. + Set the OccluderPolygon2D that defines the LightOccluder2D. @@ -18734,10 +18804,16 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) LineEdit provides a single line string editor, used for text fields. - - + + + Append text at cursor, scrolling the [LineEdit] when needed. + + + + + Clear the [LineEdit] text. @@ -18746,21 +18822,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - Clear the [LineEdit] text. + Return the cursor position inside the [LineEdit]. - + + + - Select the whole string. + Return the maximum amount of characters the [LineEdit] can edit. If 0 is returned, no limit exists. - - - + + + - Set the text in the [LineEdit], clearing the existing one and the selection. @@ -18770,103 +18849,94 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the text in the [LineEdit]. - - - + + + - Set the cursor position inside the [LineEdit], causing it to scroll if needed. + Return the [i]editable[/i] status of the [LineEdit] (see [method set_editable]). - - + + - Return the cursor position inside the [LineEdit]. + Return the [i]secret[/i] status of the [LineEdit] (see [method set_secret]). - - + + - Set the maximum amount of characters the [LineEdit] can edit, and cropping existing text in case it exceeds that limit. Setting 0 removes the limit. - - - + + + + + - Return the maximum amount of characters the [LineEdit] can edit. If 0 is returned, no limit exists. - - - + - Append text at cursor, scrolling the [LineEdit] when needed. + Select the whole string. - - + + - Set the [i]editable[/i] status of the [LineEdit]. When disabled, existing text can't be modified and new text can't be added. - - - + + + - Return the [i]editable[/i] status of the [LineEdit] (see [method set_editable]). + Set the cursor position inside the [LineEdit], causing it to scroll if needed. - + - Set the [i]secret[/i] status of the [LineEdit]. When enabled, every character is displayed as "*". - - - - - - - Return the [i]secret[/i] status of the [LineEdit] (see [method set_secret]). + Set the [i]editable[/i] status of the [LineEdit]. When disabled, existing text can't be modified and new text can't be added. - - - - + + + Set the maximum amount of characters the [LineEdit] can edit, and cropping existing text in case it exceeds that limit. Setting 0 removes the limit. - - + + + Set the [i]secret[/i] status of the [LineEdit]. When enabled, every character is displayed as "*". - - - + + + + Set the text in the [LineEdit], clearing the existing one and the selection. - + - This signal is emitted when the user presses KEY_ENTER on the [LineEdit]. This signal is often used as an alternate confirmation mechanism in dialogs. + When the text changes, this signal is emitted. - + - When the text changes, this signal is emitted. + This signal is emitted when the user presses KEY_ENTER on the [LineEdit]. This signal is often used as an alternate confirmation mechanism in dialogs. @@ -18895,23 +18965,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + + + - + - + - - - + @@ -18923,11 +18993,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Line shape for 2D collision objects. It works like a 2D plane and will not allow any body to go to the negative side. Not recommended for rigid bodies, and usually not recommended for static bodies either because it forces checks against it on every frame. - - - + + + - Set the line normal. + Return the line distance from the origin. @@ -18944,11 +19014,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the line distance from the origin. - - - + + + - Return the line distance from the origin. + Set the line normal. @@ -18963,13 +19033,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) This kind of buttons are primarily used when the interaction with the button causes a context change (like linking to a web page). - - - - - Sets the text of the button. - - @@ -18977,13 +19040,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the text of the button. - - - - - Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section). - - @@ -18991,6 +19047,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the underline mode for this button. + + + + + Sets the text of the button. + + + + + + + Sets the underline mode for this button, the argument must be one of the [LinkButton] constants (see constants section). + + @@ -19001,7 +19071,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + @@ -19009,7 +19079,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + @@ -19019,11 +19089,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + @@ -19033,9 +19105,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + @@ -19091,14 +19161,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - + + + + @@ -19107,23 +19177,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + - - - - + + - + + + + + @@ -19157,13 +19227,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - + + + @@ -19173,10 +19243,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + + + + - + @@ -19197,14 +19275,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - @@ -19213,10 +19283,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + @@ -19233,13 +19303,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Material is a base [Resource] used for coloring and shading geometry. All materials inherit from it and almost all [VisualInstance] derived nodes carry a Material. A few flags and parameters are shared between all material types and are configured here. - - - - - + + + + + Return blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [i]may[/i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. + + + + + - Set a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. @@ -19251,48 +19325,65 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. - - - - - Set blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [i]may[/i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. - - - - + + - Return blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [i]may[/i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. + Return the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). - - + + - Set the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). + Set blend mode for the material, which can be one of BLEND_MODE_MIX (default), BLEND_MODE_ADD, BLEND_MODE_SUB. Keep in mind that only BLEND_MODE_MIX ensures that the material [i]may[/i] be opaque, any other blend mode will render with alpha blending enabled in raster-based [VisualServer] implementations. - - - + + + - Return the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). - - + + + + + Set a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. - - - + + + + Set the line width for geometry drawn with FLAG_WIREFRAME enabled, or LINE primitives. Note that not all hardware or VisualServer backends support this (like DirectX). + + Use the regular alpha blending equation (source and dest colors are faded) (default). + + + Use additive blending equation, often used for particle effects such as fire or light decals. + + + Use subtractive blending equation, often used for some smoke effects or types of glass. + + + + + + + + + + + + + Geometry is visible when this flag is enabled (default). @@ -19314,27 +19405,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Maximum amount of flags. - - - - - - - - - - Use the regular alpha blending equation (source and dest colors are faded) (default). - - - Use additive blending equation, often used for particle effects such as fire or light decals. - - - Use subtractive blending equation, often used for some smoke effects or types of glass. - - - - - @@ -19365,6 +19435,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 3x3 matrix used for 3D rotation and scale. Contains 3 vector fields x,y and z. Can also be accessed as array of 3D vectors. Almost always used as orthogonal basis for a [Transform]. + + + + + + + Create a matrix from a quaternion. + + + + + + + + + + + Create a matrix from an axis vector and an angle. + + + + + + + + + + + + + Create a matrix from 3 axis vectors. + + @@ -19477,39 +19580,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return a vector transformed by the transposed matrix and return it. - - - - - - - - - - - Create a matrix from 3 axis vectors. - - - - - - - - - - - Create a matrix from an axis vector and an angle. - - - - - - - - - Create a matrix from a quaternion. - - @@ -19530,6 +19600,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 3x2 Matrix for 2D transforms. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -19632,44 +19732,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - @@ -19699,28 +19769,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + + + - - - - - - - + + + @@ -19737,27 +19807,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + + + Create a new surface ([method get_surface_count] that will become surf_idx for this. + Surfaces are created to be rendered using a "primitive", which may be PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_LINE_STRIP, PRIMITIVE_LINE_LOOP, PRIMITIVE_TRIANGLES, PRIMITIVE_TRIANGLE_STRIP, PRIMITIVE_TRIANGLE_FAN. (As a note, when using indices, it is recommended to only use just points, lines or triangles). + The format of a surface determines which arrays it will allocate and hold, so "format" is a combination of ARRAY_FORMAT_* mask constants ORed together. ARRAY_FORMAT_VERTEX must be always present. "array_len" determines the amount of vertices in the array (not primitives!). if ARRAY_FORMAT_INDEX is in the format mask, then it means that an index array will be allocated and "index_array_len" must be passed. + + + - - - - - + - + + + - - - + + + @@ -19767,19 +19848,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - + + + + - Create a new surface ([method get_surface_count] that will become surf_idx for this. - Surfaces are created to be rendered using a "primitive", which may be PRIMITIVE_POINTS, PRIMITIVE_LINES, PRIMITIVE_LINE_STRIP, PRIMITIVE_LINE_LOOP, PRIMITIVE_TRIANGLES, PRIMITIVE_TRIANGLE_STRIP, PRIMITIVE_TRIANGLE_FAN. (As a note, when using indices, it is recommended to only use just points, lines or triangles). - The format of a surface determines which arrays it will allocate and hold, so "format" is a combination of ARRAY_FORMAT_* mask constants ORed together. ARRAY_FORMAT_VERTEX must be always present. "array_len" determines the amount of vertices in the array (not primitives!). if ARRAY_FORMAT_INDEX is in the format mask, then it means that an index array will be allocated and "index_array_len" must be passed. @@ -19789,20 +19863,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the amount of surfaces that the [Mesh] holds. - - + + + + + + - Remove a surface at position surf_idx, shifting greater surfaces one surf_idx slot down. - - - - + + - Return the length in vertices of the vertex array in the requested surface (see [method add_surface]). @@ -19814,31 +19888,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the length in indices of the index array in the requested surface (see [method add_surface]). - + - Return the format mask of the requested surface (see [method add_surface]). + Return the length in vertices of the vertex array in the requested surface (see [method add_surface]). - + - Return the primitive type of the requested surface (see [method add_surface]). - - - - - - - - - Set a [Material] for a given surface. Surface will be rendered using this material. + Return the format mask of the requested surface (see [method add_surface]). @@ -19850,14 +19915,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return a [Material] in a given surface. Surface is rendered using this material. - - - - - - - - @@ -19866,87 +19923,100 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + Return the primitive type of the requested surface (see [method add_surface]). - + + + + Remove a surface at position surf_idx, shifting greater surfaces one surf_idx slot down. - - + + + + + Set a [Material] for a given surface. Surface will be rendered using this material. - - - + + + + + - - Default value used for index_array_len when no indices are present. - - - Amount of weights/bone indices per vertex (always 4). - Vertex array (array of [Vector3] vertices). + + Array format will include vertices (mandatory). + Normal array (array of [Vector3] normals). + + Array format will include bone weights. + + + Array format will include UVs. + + + Array format will include normals + Tangent array, array of groups of 4 floats. first 3 floats determine the tangent, and the last the binormal direction as -1 or 1. + + Index array will be used. + Vertex array (array of [Color] colors). + + Array format will include another set of UVs. + + + Array format will include tangents + UV array (array of [Vector3] UVs or float array of groups of 2 floats (u,v)). + + Amount of weights/bone indices per vertex (always 4). + Second UV array (array of [Vector3] UVs or float array of groups of 2 floats (u,v)). Array of bone indices, as a float array. Each element in groups of 4 floats. + + Array format will include bone indices. + Array of bone weights, as a float array. Each element in groups of 4 floats. - - Array of integers, used as indices referencing vertices. No index can be beyond the vertex array size. - - - Array format will include vertices (mandatory). - - - Array format will include normals - - - Array format will include tangents - Array format will include a color array. - - Array format will include UVs. - - - Array format will include another set of UVs. - - - Array format will include bone indices. - - - Array format will include bone weights. + + Array of integers, used as indices referencing vertices. No index can be beyond the vertex array size. - - Index array will be used. + + Default value used for index_array_len when no indices are present. Render array as points (one vertex equals one point). @@ -19981,39 +20051,51 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - + + + - + - - + + + + - + + + + + + + + + + + @@ -20023,15 +20105,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - + - + + + + + + + @@ -20039,107 +20129,109 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - + - - + + - - - - - - - + + + - - + + - + + + - - - - + + - + + + + + + + + + - - - - + + - + - - - - + + - + + + - - - - + + - + + + - - @@ -20151,7 +20243,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + @@ -20159,114 +20251,92 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - - + - - - - + + - - - + - + - - - + + + - + - + - + + + - - - + - + - - - + - + - + - + - + + + - - - + - - - - - + - - - - - - @@ -20279,45 +20349,45 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) MeshInstance is a [Node] that takes a [Mesh] resource and adds it to the current scenario by creating an instance of it. This is the class most often used to get 3D geometry rendered and can be used to instance a single [Mesh] in many places. This allows to reuse geometry and save on resources. When a [Mesh] has to be instanced more than thousands of times at close proximity, consider using a [MultiMesh] in a [MultiMeshInstance] instead. - - - + - Set the [Mesh] resource for the instance. - - - + - Return the current [Mesh] resource for the instance. + This helper creates a [StaticBody] child [Node] using the mesh geometry as collision. It's mainly used for testing. - - - + + + + Return the AABB of the mesh, in local coordinates. - - + + + Return the current [Mesh] resource for the instance. - - + + - Return the AABB of the mesh, in local coordinates. - + + + - This helper creates a [StaticBody] child [Node] using the mesh geometry as collision. It's mainly used for testing. + Set the [Mesh] resource for the instance. - + + + @@ -20333,45 +20403,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Library of meshes. Contains a list of [Mesh] resources, each with name and ID. Useful for GridMap or painting Terrain. - - - - - Create a new item in the library, supplied an id. - - - - - - - + - Set the name of the item. + Clear the library. - + - - - Set the mesh of the item. + Create a new item in the library, supplied an id. - - - - - + + + + Return the list of items. - + + + - - + Return the mesh of the item. @@ -20383,15 +20440,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the name of the item. - - - - - - - Return the mesh of the item. - - @@ -20408,6 +20456,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + Get an unused id for a new item. + + @@ -20415,23 +20470,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Remove the item. - + + + + + - Clear the library. + Set the mesh of the item. - - - + + + + + - Return the list of items. + Set the name of the item. - - - + + + + + + + + + + + + + - Get an unused id for a new item. @@ -20449,25 +20519,25 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Since instances may have any behavior, the AABB used for visibility must be provided by the user, or generated with [method generate_aabb]. - - - + - Set the [Mesh] resource to be drawn in multiple instances. + Generate a new visibility AABB, using mesh AABB and instance transforms. Since instance information is stored in the [VisualServer], this function is VERY SLOW and must NOT be used often. - - + + - Return the [Mesh] resource drawn as multiple instances. + Return the visibility AABB. - - + + + + - Set the amount of instances that is going to be drawn. Changing this number will erase all the existing instance transform and color data. + Get the color of a specific instance. @@ -20477,22 +20547,27 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the amount of instances that is going to be drawn. - + + + - - - Set the transform for a specific instance. + Return the transform of a specific instance. - - + + - + + Return the [Mesh] resource drawn as multiple instances. + + + + - Return the transform of a specific instance. + Set the visibility AABB. If not provided, MultiMesh will not be visible. @@ -20504,32 +20579,27 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the color of a specific instance. - - - - + + - Get the color of a specific instance. + Set the amount of instances that is going to be drawn. Changing this number will erase all the existing instance transform and color data. - - + + + + - Set the visibility AABB. If not provided, MultiMesh will not be visible. - - - - - - - Return the visibility AABB. + Set the transform for a specific instance. - + + + - Generate a new visibility AABB, using mesh AABB and instance transforms. Since instance information is stored in the [VisualServer], this function is VERY SLOW and must NOT be used often. + Set the [Mesh] resource to be drawn in multiple instances. @@ -20544,13 +20614,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) MultiMeshInstance is a [Node] that takes a [MultiMesh] resource and adds it to the current scenario by creating an instance of it (yes, this is an instance of instances). - - - - - Set the [MultiMesh] to be instance. - - @@ -20558,6 +20621,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the [MultiMesh] that is used for instancing. + + + + + Set the [MultiMesh] to be instance. + + @@ -20597,89 +20667,89 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - - - + - - - - + + + + - - + + + + - - + + - + - - + + - + - + - - - - + + - + + + + + - - - - + + - - + + + + - - - + + + @@ -20693,28 +20763,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - - - - - - - - - - - + - - + + + + @@ -20731,18 +20791,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - + + + + + - - - - + + + + + + + + + + @@ -20757,20 +20827,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - + - - + + + + @@ -20781,15 +20851,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - + + + @@ -20803,14 +20873,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + @@ -20821,9 +20891,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -20837,15 +20907,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - + + + + + @@ -20855,17 +20927,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - + @@ -20873,16 +20935,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - + + + + @@ -20893,19 +20949,27 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + - - - + + + + + + + - - + + + + @@ -20915,11 +20979,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + - + + + @@ -20933,14 +21003,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + @@ -20951,9 +21021,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -20968,169 +21038,169 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -21203,20 +21273,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Called when any key input happens that was not handled by something else. - - - - - Set the name of the [Node]. Name must be unique within parent, and setting an already existing name will cause for the node to be automatically renamed. - - - - - - - Return the name of the [Node]. Name is be unique within parent. - - @@ -21227,72 +21283,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) The optional boolean argument enforces creating child node with human-readable names, based on the name of node being instanced instead of its type only. - - + + - - Remove a child [Node]. Node is NOT deleted and will have to be deleted manually. - - - - - - - Return the amount of children nodes. - - - - - - - - - - - - + - Return a children node by it's index (see [method get_child_count]). This method is often used for iterating all children of a node. + Add a node to a group. Groups are helpers to name and organize group of nodes, like for example: "Enemies", "Collectables", etc. A [Node] can be in any number of groups. Nodes can be assigned a group at any time, but will not be added to it until they are inside the scene tree (see [method is_inside_tree]). - + - - + Return true if the node can process. - + - + - Fetch a node. NodePath must be valid (or else error will occur) and can be either the path to child node, a relative path (from the current node to another node), or an absolute path to a node. - Note: fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). Examples. Assume your current node is Character and following tree:[br] - root/ - root/Character - root/Character/Sword - root/Character/Backpack/Dagger - root/MyGame - root/Swamp/Alligator - root/Swamp/Mosquito - root/Swamp/Goblin - - Possible paths are: - - get_node("Sword") - - get_node("Backpack/Dagger") - - get_node("../Swamp/Alligator") - - get_node("/root/MyGame") - - - - - - - Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. @@ -21308,170 +21320,184 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Find a descendant of this node whose name matches [code]mask[/code] as in [method String.match] (i.e. case sensitive, but '*' matches zero or more characters and '?' matches any single character except '.'). Note that it does not match against the full path, just against individual node names. - - + + - + + Return a children node by it's index (see [method get_child_count]). This method is often used for iterating all children of a node. - - + + - - + Return the amount of children nodes. - - + + - - + + - - - Return [i]true[/i] if the "node" argument is a direct or indirect child of the current node, otherwise return [i]false[/i]. + Return a filename that may be containedA node can contained by the node. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded (see [method set_filename]). - - + + - - - Return [i]true[/i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [i]false[/i]. + Return the time elapsed since the last fixed frame. This is always the same in fixed processing unless the frames per second is changed in [OS]. - - + + - Return the absolute path of the current node. This only works if the current node is inside the scene tree (see [method is_inside_tree]). - - + + - - - Return the relative path from the current node to the specified node in "node" argument. Both nodes must be in the same scene, or else the function will fail. + Get the node index in the parent (assuming it has a parent). - - - - - + + + - Add a node to a group. Groups are helpers to name and organize group of nodes, like for example: "Enemies", "Collectables", etc. A [Node] can be in any number of groups. Nodes can be assigned a group at any time, but will not be added to it until they are inside the scene tree (see [method is_inside_tree]). + Return the name of the [Node]. Name is be unique within parent. - - + + + + - Remove a node from a group. + Fetch a node. NodePath must be valid (or else error will occur) and can be either the path to child node, a relative path (from the current node to another node), or an absolute path to a node. + Note: fetching absolute paths only works when the node is inside the scene tree (see [method is_inside_tree]). Examples. Assume your current node is Character and following tree:[br] + root/ + root/Character + root/Character/Sword + root/Character/Backpack/Dagger + root/MyGame + root/Swamp/Alligator + root/Swamp/Mosquito + root/Swamp/Goblin + + Possible paths are: + - get_node("Sword") + - get_node("Backpack/Dagger") + - get_node("../Swamp/Alligator") + - get_node("/root/MyGame") - - + + - + - - - - - + + + - Move a child node to a different position (order) amongst the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. + Get the node owner (see [method set_owner]). - - + + + Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. - + + + - Move this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree. + Return the absolute path of the current node. This only works if the current node is inside the scene tree (see [method is_inside_tree]). - - + + + + - Set the node owner. A node can have any other node as owner (as long as a valid parent, grandparent, etc ascending in the tree). When saving a node (using SceneSaver) all the nodes it owns will be saved with it. This allows to create complex SceneTrees, with instancing and subinstancing. + Return the relative path from the current node to the specified node in "node" argument. Both nodes must be in the same scene, or else the function will fail. - - + + - Get the node owner (see [method set_owner]). - + + + - Remove a node and set all its children as children of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed. - - + + - Get the node index in the parent (assuming it has a parent). + Return the time elapsed (in seconds) since the last process callback. This is almost always different each time. - + + + - Print the scene to stdout. Used mainly for debugging purposes. - - - + + + - A node can contain a filename. This filename should not be changed by the user, unless writing editors and tools. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded. - - + + - Return a filename that may be containedA node can contained by the node. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded (see [method set_filename]). - - + + + + - Notify the current node and all its children recursively by calling notification() in all of them. - - + + + + - Enables or disables node fixed framerate processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS at a fixed (usually 60 fps, check [OS] to change that) interval (and the [method _fixed_process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_fixed_process_delta_time]. - - + + + + - Return the time elapsed since the last fixed frame. This is always the same in fixed processing unless the frames per second is changed in [OS]. + Return [i]true[/i] if the "node" argument is a direct or indirect child of the current node, otherwise return [i]false[/i]. @@ -21481,32 +21507,34 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if fixed processing is enabled (see [method set_fixed_process]). - - + + + + - Enables or disables node processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS on every drawn frame (and the [method _process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_process_delta_time]. + Return [i]true[/i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [i]false[/i]. - - + + + + - Return the time elapsed (in seconds) since the last process callback. This is almost always different each time. - + - Return whether processing is enabled in the current node (see [method set_process]). - - - + + + - Enable input processing for node. This is not required for GUI controls! It hooks up the node to receive all input (see [method _input]). + Return whether processing is enabled in the current node (see [method set_process]). @@ -21516,73 +21544,70 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if the node is processing input (see [method set_process_input]). - - - + + + - Enable unhandled input processing for node. This is not required for GUI controls! It hooks up the node to receive all input that was not previously handled before (usually by a [Control]). (see [method _unhandled_input]). + Return true if the node is processing unhandled input (see [method set_process_unhandled_input]). - + - Return true if the node is processing unhandled input (see [method set_process_unhandled_input]). - - + + + + + Move a child node to a different position (order) amongst the other children. Since calls, signals, etc are performed by tree order, changing the order of children nodes may be useful. - - - + - - - + + Print the scene to stdout. Used mainly for debugging purposes. - - - + + + + Notify the current node and all its children recursively by calling notification() in all of them. - - - + - Return true if the node can process. - + + Move this node to the top of the array of nodes of the parent node. This is often useful on GUIs ([Control]), because their order of drawing fully depends on their order in the tree. - - - + + Remove a node and set all its children as children of the parent node (if exists). All even subscriptions that pass by the removed node will be unsubscribed. - - - + + + + Remove a child [Node]. Node is NOT deleted and will have to be deleted manually. - - - - + + + Remove a node from a group. @@ -21594,41 +21619,86 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Replace a node in a scene by a given one. Subscriptions that pass through this node will be lost. - - + + + A node can contain a filename. This filename should not be changed by the user, unless writing editors and tools. When a scene is instanced from a file, it topmost node contains the filename from where it was loaded. - - - + + + + + Enables or disables node fixed framerate processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS at a fixed (usually 60 fps, check [OS] to change that) interval (and the [method _fixed_process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_fixed_process_delta_time]. + + + + + + Set the name of the [Node]. Name must be unique within parent, and setting an already existing name will cause for the node to be automatically renamed. - - - + + + + Set the node owner. A node can have any other node as owner (as long as a valid parent, grandparent, etc ascending in the tree). When saving a node (using SceneSaver) all the nodes it owns will be saved with it. This allows to create complex SceneTrees, with instancing and subinstancing. - + + + + + + + + + + + Enables or disables node processing. When a node is being processed, it will receive a NOTIFICATION_PROCESS on every drawn frame (and the [method _process] callback will be called if exists). It is common to check how much time was elapsed since the previous frame by calling [method get_process_delta_time]. + + + + + + + Enable input processing for node. This is not required for GUI controls! It hooks up the node to receive all input (see [method _input]). + + + + + + + Enable unhandled input processing for node. This is not required for GUI controls! It hooks up the node to receive all input that was not previously handled before (usually by a [Control]). (see [method _unhandled_input]). + + + + + + + + + + + - + - Emitted when the node is renamed. - + - + + Emitted when the node is renamed. @@ -21641,6 +21711,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + @@ -21652,10 +21726,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Notification received when a node is unparented (parent removed it from the list of children). - - - - @@ -21678,32 +21748,27 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Base node for 2D system. Node2D contains a position, rotation and scale, which is used to position and animate. It can alternatively be used with a custom 2D transform ([Matrix32]). A tree of Node2Ds allows complex hierarchies for animation and positioning. - - - - - Set the position of the 2D node. - - - - + + - Set the rotation of the 2D node. + Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. - - + + + + - Set the rotation of the 2D node. + Return the rotation angle in radians needed for the 2d node to point at 'point' position. - - - + + + - Set the scale of the 2D node. + Return the global position of the 2D node. @@ -21713,6 +21778,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the position of the 2D node. + + + + + + + Return the transform [Matrix32] calculated relatively to the parent of this 2D node. + + @@ -21733,11 +21807,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the scale of the 2D node. - - + + + + + Return the Z-index of the 2D node. + + + + - Apply a 'radians' rotation to the 2D node, starting from its current rotation. + Apply a global translation of 'offset' to the 2D node, starting from its current global position. + + + + + + + Return true if the Z-index value of this 2D node is relative to its parent's. Else, return false. + + + + + + + Rotate the 2d node so it points at 'point' position. @@ -21758,18 +21853,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Apply a local translation on Y axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. - - - - - Apply a local translation of 'offset' to the 2D node, starting from its current local position. - - - - + + - Apply a global translation of 'offset' to the 2D node, starting from its current global position. + Apply a 'radians' rotation to the 2D node, starting from its current rotation. @@ -21786,20 +21874,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the global position of the 2D node to 'pos'. - - - - - Return the global position of the 2D node. - - - - - - - Set the local transform [Matrix32] of the 2D node. - - @@ -21807,64 +21881,60 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the global transform [Matrix32] of the 2D node. - - + + - Rotate the 2d node so it points at 'point' position. + Set the position of the 2D node. - - - - + + - Return the rotation angle in radians needed for the 2d node to point at 'point' position. + Set the rotation of the 2D node. - - + + - Set the Z-index value of the 2D node. + Set the rotation of the 2D node. - - - + + + - Return the Z-index of the 2D node. + Set the scale of the 2D node. - - + + - Set the Z-index value as relative to the parent node of this 2D node. Thus, if this 2D node's Z-index value is 2 and its parent's effective Z-index is 3, then the effective Z-index value of this 2D node would be 3 + 2 = 5. + Set the local transform [Matrix32] of the 2D node. - - - + + + - Return true if the Z-index value of this 2D node is relative to its parent's. Else, return false. + Set the Z-index value of the 2D node. - - + + - Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. + Set the Z-index value as relative to the parent node of this 2D node. Thus, if this 2D node's Z-index value is 2 and its parent's effective Z-index is 3, then the effective Z-index value of this 2D node would be 3 + 2 = 5. - - - - + + - Return the transform [Matrix32] calculated relatively to the parent of this 2D node. + Apply a local translation of 'offset' to the 2D node, starting from its current local position. @@ -21881,6 +21951,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) A [NodePath] is made up of a list of node names, a list of "subnode" (resource) names, and the name of a property in the final node or resource. + + + + + + + Create a NodePath from a string, e.g. "Path2D/PathFollow2D/Sprite:texture:size". A path is absolute if it starts with a slash. Absolute paths are only valid in the global scene tree, not within individual scenes. In a relative path, [code]"."[/code] and [code]".."[/code] indicate the current node and its parent. + + @@ -21934,15 +22013,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if the node path is empty. - - - - - - - Create a NodePath from a string, e.g. "Path2D/PathFollow2D/Sprite:texture:size". A path is absolute if it starts with a slash. Absolute paths are only valid in the global scene tree, not within individual scenes. In a relative path, [code]"."[/code] and [code]".."[/code] indicate the current node and its parent. - - @@ -21964,243 +22034,188 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) -Command Line - - - - - Set clipboard to the OS. - - - - - - - Get clipboard from the host OS. - - - - - - - - - - + + - - Change the video mode. - - - - - - + - Return the current video mode size. - + - - - Return true if the current video mode is fullscreen. + Return true if the host OS allows drawing. - + - - - Return true if the window is resizable. - - - - + + - Return the list of fullscreen modes. - - - - - - - Returns the number of displays attached to the host machine - - - - - - - Returns the current screen index (0 padded). + Delay executing of the current thread by given milliseconds. - - + + + Delay executing of the current thread by given microseconds. - - - - + + - - - - + + - Returns the dimensions in pixels of the specified screen. - + - + - - - - - - - - Returns the window position relative to the screen, the origin is the top left corner, +Y axis goes to the bottom and +X axis goes to the right. - - - - + + + + + - Sets the position of the window to the specified position (this function could be restricted by the window manager, meaning that there could be some unreachable areas of the screen). + Execute the binary file in given path, optionally blocking until it returns. A process ID is returned. - - + + - - Returns the size of the window (without counting window manager decorations). - - - - + - Sets the window size to the specified size. - - - + + + - Sets window fullscreen mode to the [i]enabled[/i] argument, [i]enabled[/i] is a toggle for the fullscreen mode, calling the function with [i]enabled[/i] true when the screen is not on fullscreen mode will cause the screen to go to fullscreen mode, calling the function with [i]enabled[/i] false when the screen is in fullscreen mode will cause the window to exit the fullscreen mode. - - + + - Returns whether the window is in fullscreen mode or not. + Get clipboard from the host OS. - - - + + + - Set the window resizable state, if the window is not resizable it will preserve the dimensions specified in the project settings. + Return the commandline passed to the engine. - - + + - Returns whether the window is resizable or not. + Returns the current screen index (0 padded). - - - + + + - Set whether the window is minimized. - - + + - Return true if the window is minimized. + Return the absolute directory path of user data path([user://]). - - + + + + - Set the window size to maximized. + Returns current date as a dictionary of keys: year, month, day, weekday, dst (daylight savings time). - - + + + + - Return true if the window is maximized. + Returns current datetime as a dictionary of keys: year, month, day, weekday, dst (daylight savings time), hour, minute, second. - - + + + + + Get a dictionary of time values when given epoch time. + Dictionary Time values will be a union of values from [method get_time] and [method get_date] dictionaries (with the exception of dst = day light standard time, as it cannot be determined from epoch). - - + + + Return the total amount of dynamic memory used (only works in debug). - - + + + + - Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class. + Return an environment variable. - - + + - Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. + Return the path to the current engine executable. - - - + + + - Set keep screen on if true, or goes to sleep by device setting if false. (for Android/iOS) + Return the total amount of frames drawn. - - + + - Returns whether the screen is being kept on or not. + Returns the frames per second of the running game. - - + + + + - Set the amount of fixed iterations per second (for fixed process and physics). + Return the list of fullscreen modes. @@ -22210,179 +22225,163 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the amount of fixed iterations per second (for fixed process and physics). - - - + + + + Return the host OS locale. - - + + + Return the main loop object (see [MainLoop]). - - - + + + - Speeds up or slows down the physics by changing the delta variable. (delta * time_scale) - - + + + Return the name of the host OS. Possible values are: "Android", "BlackBerry 10", "Flash", "Haiku", "iOS", "HTML5", "OSX", "Server", "Windows", "WinRT", "X11" - - + + + Returns the game process ID - - - + + + - Sets the window title to the specified string. + Returns the number of cores available in the host machine. - - + + + + - Set to true to enable the low cpu usage mode. In this mode, the screen only redraws when there are changes, and a considerable sleep time is inserted between frames. This way, editors using the engine UI only use very little cpu. - - + + - Return true if low cpu usage mode is enabled. + Returns the number of displays attached to the host machine - + + + - Returns the number of cores available in the host machine. - - + + - Return the path to the current engine executable. + Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. - - + + - - - - - - - + - Execute the binary file in given path, optionally blocking until it returns. A process ID is returned. - - + + - + - Kill a process ID (this method can be used to kill processes that were not spawned by the game). + Returns the dimensions in pixels of the specified screen. - + - - - + - Returns the game process ID + Return the max amount of static memory used (only works in debug). - - + + - - - Return an environment variable. - - + + - + - Return true if an environment variable exists. - - + + - Return the name of the host OS. Possible values are: "Android", "BlackBerry 10", "Flash", "Haiku", "iOS", "HTML5", "OSX", "Server", "Windows", "WinRT", "X11" - - + + - Return the commandline passed to the engine. - - + + - Return the main loop object (see [MainLoop]). + Return the amount of time passed in milliseconds since the engine started. - + - Returns current datetime as a dictionary of keys: year, month, day, weekday, dst (daylight savings time), hour, minute, second. + Returns current time as a dictionary of keys: hour, minute, second - - + + - - - Returns current date as a dictionary of keys: year, month, day, weekday, dst (daylight savings time). - + - - - Returns current time as a dictionary of keys: hour, minute, second - - + + @@ -22394,16 +22393,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the current unix timestamp. - - - - - - - Get a dictionary of time values when given epoch time. - Dictionary Time values will be a union of values from [method get_time] and [method get_date] dictionaries (with the exception of dst = day light standard time, as it cannot be determined from epoch). - - @@ -22415,76 +22404,76 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) You can pass the output from [method get_datetime_from_unix_time] directly into this function. Daylight savings time (dst), if present, is ignored. - - + + - - - - - + + Return the current video mode size. - - - + + + - Delay executing of the current thread by given microseconds. + Returns the window position relative to the screen, the origin is the top left corner, +Y axis goes to the bottom and +X axis goes to the right. - - - + + + - Delay executing of the current thread by given milliseconds. + Returns the size of the window (without counting window manager decorations). - - + + + + - Return the amount of time passed in milliseconds since the engine started. + Return true if an environment variable exists. - - + + - - + + - Return the host OS locale. - - + + + Return true if low cpu usage mode is enabled. - - + + + Returns whether the screen is being kept on or not. - + - Return true if the host OS allows drawing. - - + + + + - Return the total amount of frames drawn. @@ -22494,94 +22483,103 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if the engine was executed with -v (verbose stdout). - + + + + Return true if the current video mode is fullscreen. - + + + + Return true if the window is resizable. - - - + + + - - - + + + + Returns whether the window is in fullscreen mode or not. - - - + + + + Return true if the window is maximized. - - - + + + + Return true if the window is minimized. - - + + + Returns whether the window is resizable or not. - + + + - Return the max amount of static memory used (only works in debug). + Kill a process ID (this method can be used to kill processes that were not spawned by the game). - - + + - Return the total amount of dynamic memory used (only works in debug). - - - + - Return the absolute directory path of user data path([user://]). - - + + - + + + + + + + - - - + - - - + - - - + + + - Returns the frames per second of the running game. @@ -22594,93 +22592,165 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + - + + + + + - + + + + + - + + Set clipboard to the OS. + + + + - - + + + + + + + + + + + Set the amount of fixed iterations per second (for fixed process and physics). + + + + + + + Set keep screen on if true, or goes to sleep by device setting if false. (for Android/iOS) + + + + + + + Set to true to enable the low cpu usage mode. In this mode, the screen only redraws when there are changes, and a considerable sleep time is inserted between frames. This way, editors using the engine UI only use very little cpu. + + + + + + + Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class. + + + + + + + + + + + + - + + + + Speeds up or slows down the physics by changing the delta variable. (delta * time_scale) - + + + - + + + + + + + + + + + + + + + + Change the video mode. - - - - + + + Sets window fullscreen mode to the [i]enabled[/i] argument, [i]enabled[/i] is a toggle for the fullscreen mode, calling the function with [i]enabled[/i] true when the screen is not on fullscreen mode will cause the screen to go to fullscreen mode, calling the function with [i]enabled[/i] false when the screen is in fullscreen mode will cause the window to exit the fullscreen mode. - - - - + + + Set the window size to maximized. - - - - + + + Set whether the window is minimized. - - + + + Sets the position of the window to the specified position (this function could be restricted by the window manager, meaning that there could be some unreachable areas of the screen). - - - - + + + Set the window resizable state, if the window is not resizable it will preserve the dimensions specified in the project settings. - - - - + + + Sets the window size to the specified size. - - + + + Sets the window title to the specified string. - - + + + + @@ -22702,6 +22772,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + @@ -22718,12 +22794,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - @@ -22768,6 +22838,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Objects also receive notifications ([method _notification]). Notifications are a simple way to notify the object about simple events, so they can all be handled together. + + + + + + + Deprecated, will go away. + + @@ -22802,92 +22881,137 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set a property. Return true if the property was found. - - - - - - - + + + + + - Return the type of the object as a string. + Add a user signal (can be added anytime). Arguments are optional, but can be added as an array of dictionaries, each containing "name" and "type" (from [@Global Scope] TYPE_*). - - - - + + + + + + + + + + + + + + + + + + + + + + - Check the type of the object against a string (including inheritance). + Call a function in the object, result is returned. - - + + - + + + + + + + + + - Set property into the object. + Create and store a function in the object. The call will take place on idle time. - - + + + + + + - Get a property from the object. - - + + - Return the list of properties as an array of dictionaries, dictionaries contain: name:String, type:int (see TYPE_* enum in globals) and optionally: hint:int (see PROPERTY_HINT_* in globals), hint_string:String, usage:int (see PROPERTY_USAGE_* in globals). + Return true if this object can translate strings. - - + + + + + + + + + + + + + Connect a signal to a method at a target (member function). Binds are optional and are passed as extra arguments to the call. Flags specify optional deferred or one shot connections, see enum CONNECT_*. A signal can only be connected once to a method, and it will throw an error if already connected. If you want to avoid this, use [method is_connected] to check. - - + + - + + + - Notify the object of something. + Disconnect a signal from a method. - - - + + + + + + + + + + + + + - Return the instance ID. All objects have a unique instance ID. + Emit a signal. Arguments are passed in an array. - - - + - Set a script into the object, scripts extend the object functionality. - - - + + + - Return the object script (or null if it doesn't have one). + Get a property from the object. - - - - - + + + - Set a metadata into the object. Metadata is serialized. Metadata can be [i]anything[/i]. + Return the instance ID. All objects have a unique instance ID. @@ -22897,108 +23021,62 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return a metadata from the object. - - + + - - - Return true if a metadata is found with the requested name. + Return the list of metadata in the object. - - + + - Return the list of metadata in the object. - - - - - + + + - Add a user signal (can be added anytime). Arguments are optional, but can be added as an array of dictionaries, each containing "name" and "type" (from [@Global Scope] TYPE_*). + Return the list of properties as an array of dictionaries, dictionaries contain: name:String, type:int (see TYPE_* enum in globals) and optionally: hint:int (see PROPERTY_HINT_* in globals), hint_string:String, usage:int (see PROPERTY_USAGE_* in globals). - - + + - - + Return the object script (or null if it doesn't have one). - + + + - - - - - - - - - - - Emit a signal. Arguments are passed in an array. - - - - - - - - - - - - - - - - - - - - - - - + + + - Call a function in the object, result is returned. + Return the list of signals as an array of dictionaries. - - - - - - - - - - - - - + + + - Create and store a function in the object. The call will take place on idle time. + Return the type of the object as a string. - - + + - - - + + Return true if a metadata is found with the requested name. @@ -23009,23 +23087,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + + + - Return the list of signals as an array of dictionaries. - - + + - - + Return true if signal emission blocking is enabled. - - + + @@ -23033,77 +23111,75 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - Connect a signal to a method at a target (member function). Binds are optional and are passed as extra arguments to the call. Flags specify optional deferred or one shot connections, see enum CONNECT_*. A signal can only be connected once to a method, and it will throw an error if already connected. If you want to avoid this, use [method is_connected] to check. + Return true if a connection exists for a given signal and target/method. - - - - - - - + + + - Disconnect a signal from a method. - + - + - + + Check the type of the object against a string (including inheritance). + + + + - + - Return true if a connection exists for a given signal and target/method. + Notify the object of something. - - - + - If set to true, signal emission is blocked. - - - + + + + + - Return true if signal emission blocking is enabled. + Set property into the object. - + - Set true if this object can translate strings (in calls to tr() ). Default is true. + If set to true, signal emission is blocked. - - - + + + - Return true if this object can translate strings. + Set true if this object can translate strings (in calls to tr() ). Default is true. - + + + + + + Set a metadata into the object. Metadata is serialized. Metadata can be [i]anything[/i]. - - - - + + - Deprecated, will go away. + Set a script into the object, scripts extend the object functionality. @@ -23115,12 +23191,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Translate a message. Only works in message translation is enabled (which is by default). See [method set_message_translation]. - - - - - - @@ -23129,12 +23199,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - Called right when the object is initialized. Not available in script. - - - Called before the object is about to be deleted. - Connect a signal in deferred mode. This way, signal emissions are stored in a queue, then set on idle time. @@ -23144,6 +23208,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) One short connections disconnect themselves after emission. + + Called right when the object is initialized. Not available in script. + + + Called before the object is about to be deleted. + @@ -23152,9 +23222,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + @@ -23164,15 +23240,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - + + + @@ -23182,12 +23258,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - @@ -23218,15 +23288,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) OptionButton is a type button that provides a selectable list of items when pressed. The item selected becomes the "current" item and is displayed as the button text. - - - - - - - Add an item, with text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. - - @@ -23238,45 +23299,52 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Add an item, with a "texture" icon, text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. - - + + - + - Set the text of an item at index "idx". + Add an item, with text "label" and (optionally) id. If no "id" is passed, "id" becomes the item index. New items are appended at the end. - - - - - + - Set the icon of an item at index "idx". + Add a separator to the list of items. Separators help to group items. Separator also takes up an index and is appended at the end. - - - - - + + Clear all the items in the [OptionButton]. - + + + - - - Set the ID of an item at index "idx". + Return the ID of the item at index "idx". - + + + + + Return the amount of items in the OptionButton. + + + + + - + + Return the icon of the item at index "idx". + + + + @@ -23290,27 +23358,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the text of the item at index "idx". - - + + - - - Return the icon of the item at index "idx". + Return the current item index - + - - - Return the ID of the item at index "idx". - - - + @@ -23322,51 +23383,60 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - Return the amount of items in the OptionButton. - - - + + + - Add a separator to the list of items. Separators help to group items. Separator also takes up an index and is appended at the end. - + + + - Clear all the items in the [OptionButton]. + Select an item by index and make it the current item. - + + + - Select an item by index and make it the current item. + Set the ID of an item at index "idx". - - - + + + + + - Return the current item index - - - + + + + + + Set the icon of an item at index "idx". - + + + + + - + + + + Set the text of an item at index "idx". @@ -23382,32 +23452,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + + + + + - - - - - - - - - + + + @@ -23416,30 +23486,30 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + - + - - - + - + - + + + @@ -23513,33 +23583,33 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) TODO: explain ownership, and that node does not need to own itself - - + + - - - Pack will ignore any sub-nodes not owned by given node. See [method Node.set_owner]. - - + + - - - - + + + + - - + + + + + Pack will ignore any sub-nodes not owned by given node. See [method Node.set_owner]. @@ -23554,20 +23624,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) PacketPeer is an abstraction and base class for packet-based protocols (such as UDP). It provides an API for sending and receiving packets both as raw data or variables. This makes it easy to transfer data over a protocol, without having to encode data as low level bytes or having to worry about network ordering. - - - - - Get a Variant. - - - + - - - Send a Variant as a packet. + Return the number of packets currently available in the ring-buffer. @@ -23577,27 +23638,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Get a raw packet. - + - - - Send a raw packet. + Return the error state of the last packet received (via [method get_packet] and [method get_var]). - + + + + + Get a Variant. + + + + + - Return the error state of the last packet received (via [method get_packet] and [method get_var]). + Send a raw packet. - + + + - Return the number of packets currently available in the ring-buffer. + Send a Variant as a packet. @@ -23631,34 +23701,16 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) UDP packet peer. Can be used to send raw UDP packets as well as [Variant]s. - - - - - - - - - Make this [PacketPeerUDP] listen on the "port" using a buffer size "recv_buf_size". Listens on all available adresses. - - Close the UDP socket the [PacketPeerUDP] is currently listening on. - - - - - Wait for a packet to arrive on the listening port, see [method listen]. - - - - + + - Return whether this [PacketPeerUDP] is listening. + Return the address of the remote peer(as a 32bit integer) that sent the last packet(that was received with [method get_packet] or [method get_var]). @@ -23668,18 +23720,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the IP of the remote peer that sent the last packet(that was received with [method get_packet] or [method get_var]). - + - Return the address of the remote peer(as a 32bit integer) that sent the last packet(that was received with [method get_packet] or [method get_var]). + Return the port of the remote peer that sent the last packet(that was received with [method get_packet] or [method get_var]). - - + + - Return the port of the remote peer that sent the last packet(that was received with [method get_packet] or [method get_var]). + Return whether this [PacketPeerUDP] is listening. + + + + + + + + + + + Make this [PacketPeerUDP] listen on the "port" using a buffer size "recv_buf_size". Listens on all available adresses. @@ -23693,6 +23756,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the destination address and port for sending packets and variables, a hostname will be resolved if valid. + + + + + Wait for a packet to arrive on the listening port, see [method listen]. + + @@ -23709,10 +23779,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + @@ -23741,23 +23811,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) A ParallaxBackground will use one or more [ParallaxLayer] nodes to create a parallax scrolling background. Each [ParallaxLayer] can be set to move at different speeds relative to the camera movement, this can be used to create an illusion of depth in a 2D game. - - - - - - - + + Return the beginning limit. - - - + + + - Set the base offset in pixels of all children [ParallaxLayer] nodes. + Return the ending limit. @@ -23767,32 +23832,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the base offset. - - - + + + - Set the base motion scale of all children [ParallaxLayer] nodes. + Return the base motion scale. - + - Return the base motion scale. - - + + + + + Return ignoring camera zoom. + + + + - Set the left and top limits in pixels for scrolling to begin. If the camera is outside of this limit the background will not continue to scroll. If an axis is greater than or equal to the corresponding axis of limit_end, then it will not limit scrolling for that axis. + Set to true for all child [ParallaxLayer] nodes to not be affected by the zoom level of the camera. - - - + + + - Return the beginning limit. + Set the left and top limits in pixels for scrolling to begin. If the camera is outside of this limit the background will not continue to scroll. If an axis is greater than or equal to the corresponding axis of limit_end, then it will not limit scrolling for that axis. @@ -23802,25 +23873,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the right and bottom limits in pixels for scrolling to end. If the camera is outside of this limit the background will not continue to scroll. If an axis is less than or equal to the corresponding axis of limit_begin, then it will not limit scrolling for that axis. - - - + + + - Return the ending limit. + Set the base offset in pixels of all children [ParallaxLayer] nodes. - - + + - Set to true for all child [ParallaxLayer] nodes to not be affected by the zoom level of the camera. + Set the base motion scale of all children [ParallaxLayer] nodes. - - - + + + - Return ignoring camera zoom. @@ -23835,11 +23905,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) A ParallaxLayer must be the child of a [ParallaxBackground] node. All child nodes will be affected by the parallax scrolling of this layer. - - - + + + - Set the motion scale of the ParallaxLayer. If an axis is set to 0 then it will not move at all, it will stick with the camera. + Return the mirroring of the ParallaxLayer. @@ -23856,11 +23926,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the mirroring of the ParallaxLayer. If an axis is set to 0 then that axis will have no mirroring. - - - + + + - Return the mirroring of the ParallaxLayer. + Set the motion scale of the ParallaxLayer. If an axis is set to 0 then it will not move at all, it will stick with the camera. @@ -23873,63 +23943,63 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + @@ -23939,9 +24009,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -23957,13 +24027,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Particles is a particle system 3D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). - - - - - Set total amount of particles in the system. - - @@ -23971,52 +24034,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the total amount of particles in the system. - - - - - Set the "emitting" property state. When emitting, the particle system generates new particles at constant rate. - - - - + + - - Return the "emitting" property state (see [method set_emitting]). - - - - + - Set the visibility AABB for the particle system, since the default one will not work properly most of the time. + Return the color of a color phase. - - + + - - Return the current visibility AABB. - - - - + - Set the half extents for the emission box. + Return the position of a color phase (0 to 1). - - + + - Return the half extents for the emission box. - - - - - - @@ -24025,10 +24064,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + Return the half extents for the emission box. @@ -24037,11 +24077,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - Set the normal vector towards where gravity is pulling (by default, negative Y). @@ -24051,13 +24090,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the normal vector towards where gravity is pulling (by default, negative Y). - + + + + + Return the material used to draw particles. + + + + + - - - Set a specific variable for the particle system (see VAR_* enum). + Return the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. @@ -24069,40 +24115,37 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return a specific variable for the particle system (see VAR_* enum). - - - - - + + + - Set the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. + Return the current visibility AABB. - - + + - - - Return the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. - - - - - + + + - Set the position of a color phase (0 to 1). + Return the "emitting" property state (see [method set_emitting]). - - + + - + + + + + - Return the position of a color phase (0 to 1). + Set total amount of particles in the system. @@ -24114,27 +24157,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the color of a color phase. - - - + + + + + Set the position of a color phase (0 to 1). + + + + + + + + + + + - Return the color of a color phase. - - + + - Set the material used to draw particles. + Set the half extents for the emission box. - - - + + + - Return the material used to draw particles. @@ -24143,10 +24197,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + Set the "emitting" property state. When emitting, the particle system generates new particles at constant rate. + + + + + + Set the normal vector towards where gravity is pulling (by default, negative Y). @@ -24155,34 +24217,42 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + Set the material used to draw particles. - - + + + + + Set the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. - - - + + + - - + + + + + Set a specific variable for the particle system (see VAR_* enum). - - - + + + + Set the visibility AABB for the particle system, since the default one will not work properly most of the time. @@ -24191,6 +24261,16 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + @@ -24205,16 +24285,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - @@ -24225,95 +24295,99 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Particles2D is a particle system 2D [Node] that is used to simulate several types of particle effects, such as explosions, rain, snow, fireflies, or other magical-like shinny sparkles. Particles are drawn using impostors, and given their dynamic behavior, the user must provide a visibility AABB (although helpers to create one automatically exist). - - - + + + - If this is set to true then the particle emitter will emit particles, if its false it will not. + Returns the amount of particles spawned at each emission - - + + - Returns whether this emitter is currently emitting or not + Returns the tint color for each particle. - - + + + + - Sets the amount of particles spawned at each emission - + + + + + + + + + - Returns the amount of particles spawned at each emission - - - + + + - Sets the amount of seconds that each particle will be visible. + Returns the [ColorRamp] used to tint each particle - - + + - Gets the amount of seconds that each particle will be visible. + Returns the half extents of the emission box. - - - + + + - Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast. - - + + - Returns the emitter time scale + Returns the particle spawn origin position relative to the emitter. - - - + + + + Returns the amount of seconds during which the emitter will spawn particles - + - - - + + + - Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever. - - + + - Returns the amount of seconds during which the emitter will spawn particles - - - - - + + + - Sets the value of the specified emitter parameter (see the constants secction for the list of parameters) + Gets the amount of seconds that each particle will be visible. @@ -24325,13 +24399,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the value of the specified emitter parameter - - - - - + + + - Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be. @@ -24343,15 +24414,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the randomness value of the specified emitter parameter - - - - - - - Sets the texture for each particle - - @@ -24359,96 +24421,97 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the texture for emitted particles - - - + + + - Set the tint color for each particle. + Returns the emitter time scale - - + + - Returns the tint color for each particle. - - + + - - - Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. + Returns whether this emitter is currently emitting or not - - + + - Returns the [ColorRamp] used to tint each particle - - - + + + - Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center. - - + + - Returns the particle spawn origin position relative to the emitter. - - + + - - - + - - + + + Sets the amount of particles spawned at each emission - - - + + + + Set the tint color for each particle. - - + + + + - - - + + + + + - - + + - - + + + + + Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. @@ -24458,122 +24521,148 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Sets the half extents of the emission box, particles will be spawned at random inside this box. - - - + + + - Returns the half extents of the emission box. - - + + + Sets the particle spawn origin position relative to the emitter center. for example if this value is set to (50, 50), the particle will spawn 50 units to the right and 50 units to the bottom of the emitter center. - - - + + + + Sets the amount of seconds during which the emitter will spawn particles, after the specified seconds the emitter state will be set to non emitting, so calling [method is_emitting] will return false. If the timeout is 0 the emitter will spawn forever. - - - - + + + If this is set to true then the particle emitter will emit particles, if its false it will not. - - - - + + - - - - + + - - - - + + - - + + - + + + - - + + + Sets the amount of seconds that each particle will be visible. - - - + + + + + + Sets the value of the specified emitter parameter (see the constants secction for the list of parameters) - - + + - - - + + + + + + Sets the randomness value of the specified emitter parameter (see the constants secction for the list of parameters), 0 means no randomness, so every particle will have the parameters specified, 1 means that the parameter will be choosen at random, the closer the randomness value gets to 0 the more conservative the variation of the parameter will be. - - + + + + + Sets the texture for each particle - - - + + + + Sets the increment or decrement for the particle lifetime. for example: if the time scale is set to 2, the particles will die and move twice as fast. - - + + - - - + + + + + Direction in radians at which the particles will be launched, Notice that when the direction is set to 0 the particles will be launched to the negative + + Initial angle in radians at which each particle will be spawned + + + Initial size of each particle + + + Final size of each particle, the particle size will interpolate to this value during its lifetime. + + + + + + + + + Velocity at which the particles will be launched. @@ -24596,25 +24685,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Amount of damping for each particle - - Initial angle in radians at which each particle will be spawned - - - Initial size of each particle - - - Final size of each particle, the particle size will interpolate to this value during its lifetime. - - - - - - - - - - - @@ -24623,67 +24693,67 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + - - + + + + - - + + - - - - - + + + - - - - + + - - + + - - - + + + + + - - + + - - - + + + @@ -24699,13 +24769,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) This class is a container/Node-ification of a [Curve3D], so it can have [Spatial] properties and [Node] info. - - - - - Sets the [Curve3D]. - - @@ -24713,6 +24776,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the [Curve3D] contained. + + + + + Sets the [Curve3D]. + + @@ -24725,13 +24795,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) This class is a container/Node-ification of a [Curve2D], so it can have [Node2D] properties and [Node] info. - - - - - Sets the [Curve2D]. - - @@ -24739,6 +24802,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the [Curve2D] contained. + + + + + Sets the [Curve2D]. + + @@ -24746,32 +24816,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Point sampler for a [Path]. - - - This node takes its parent [Path], and returns the coordinates of a point within it, given a distance from the first vertex. -It is useful for making other nodes follow a path, without coding the movement pattern. For that, the nodes must be descendants of this node. Then, when setting an offset in this node, the descendant nodes will move accordingly. - - - - - - - Sets the distance from the first vertex, measured in 3D units along the path. This sets this node's position to a point within the path. - - - - + + + This node takes its parent [Path], and returns the coordinates of a point within it, given a distance from the first vertex. +It is useful for making other nodes follow a path, without coding the movement pattern. For that, the nodes must be descendants of this node. Then, when setting an offset in this node, the descendant nodes will move accordingly. + + + + - Returns the distance along the path in 3D units. - - - - - - - Moves this node in the X axis. As this node's position will be set every time its offset is set, this allows many PathFollow to share the same curve (and thus the same movement pattern), yet not return the same position for a given path offset. -A similar effect may be achieved moving the this node's descendants. + This method returns whether the position between two cached points (see [method set_cubic_interpolation]) is interpolated linearly, or cubicly. @@ -24781,25 +24836,18 @@ A similar effect may be achieved moving the this node's descendants. Returns the X displacement this node has from its parent [Path]. - - - - - Moves this node in the Y axis, for the same reasons of [method set_h_offset]. - - - + - Returns the Y displacement this node has from its parent [Path]. + Returns the distance along the path in 3D units. - - - + + + - Sets the distance from the first vertex, considering 0.0 as the first vertex and 1.0 as the last. This is just another way of expressing the offset within the path, as the offset supplied is multiplied internally by the path's length. + Returns the rotation mode. The constants below list which axes are allowed to rotate for each mode. @@ -24809,18 +24857,18 @@ A similar effect may be achieved moving the this node's descendants. Returns the distance along the path as a number in the range 0.0 (for the first vertex) to 1.0 (for the last). - - - + + + - Allows or forbids rotation on one or more axes, per the constants below. + Returns the Y displacement this node has from its parent [Path]. - - + + - Returns the rotation mode. The constants below list which axes are allowed to rotate for each mode. + Returns whether this node wraps its offsets around, or truncates them to the path ends. @@ -24832,11 +24880,12 @@ There are two answers to this problem: Either increase the number of cached poin This method controls whether the position between two cached points is interpolated linearly, or cubicly. - - - + + + - This method returns whether the position between two cached points (see [method set_cubic_interpolation]) is interpolated linearly, or cubicly. + Moves this node in the X axis. As this node's position will be set every time its offset is set, this allows many PathFollow to share the same curve (and thus the same movement pattern), yet not return the same position for a given path offset. +A similar effect may be achieved moving the this node's descendants. @@ -24846,11 +24895,32 @@ This method controls whether the position between two cached points is interpola If set, any offset outside the path's length (whether set by [method set_offset] or [method set_unit_offset] will wrap around, instead of stopping at the ends. Set it for cyclic paths. - - - + + + - Returns whether this node wraps its offsets around, or truncates them to the path ends. + Sets the distance from the first vertex, measured in 3D units along the path. This sets this node's position to a point within the path. + + + + + + + Allows or forbids rotation on one or more axes, per the constants below. + + + + + + + Sets the distance from the first vertex, considering 0.0 as the first vertex and 1.0 as the last. This is just another way of expressing the offset within the path, as the offset supplied is multiplied internally by the path's length. + + + + + + + Moves this node in the Y axis, for the same reasons of [method set_h_offset]. @@ -24878,26 +24948,11 @@ This method controls whether the position between two cached points is interpola It is useful for making other nodes follow a path, without coding the movement pattern. For that, the nodes must be descendants of this node. Then, when setting an offset in this node, the descendant nodes will move accordingly. - - - - - Sets the distance from the first vertex, measured in pixels along the path. This sets this node's position to a point within the path. - - - - + + - Returns the distance along the path in pixels. - - - - - - - Moves this node horizontally. As this node's position will be set every time its offset is set, this allows many PathFollow2D to share the same curve (and thus the same movement pattern), yet not return the same position for a given path offset. -A similar effect may be achieved moving this node's descendants. + This method returns whether the position between two cached points (see [method set_cubic_interpolation]) is interpolated linearly, or cubicly. @@ -24907,39 +24962,32 @@ A similar effect may be achieved moving this node's descendants. Returns the horizontal displacement this node has from its parent [Path2D]. - - - - - Moves the PathFollow2D vertically, for the same reasons of [method set_h_offset]. - - - + - Returns the vertical displacement this node has from its parent [Path2D]. + Returns the distance along the path in pixels. - - - + + + - Sets the distance from the first vertex, considering 0.0 as the first vertex and 1.0 as the last. This is just another way of expressing the offset within the path, as the offset supplied is multiplied internally by the path's length. + Returns the distance along the path as a number in the range 0.0 (for the first vertex) to 1.0 (for the last). - + - Returns the distance along the path as a number in the range 0.0 (for the first vertex) to 1.0 (for the last). + Returns the vertical displacement this node has from its parent [Path2D]. - - - + + + - If set, this node rotates to follow the path, making its descendants rotate. + Returns whether this node wraps its offsets around, or truncates them to the path ends. @@ -24958,11 +25006,12 @@ There are two answers to this problem: Either increase the number of cached poin This method controls whether the position between two cached points is interpolated linearly, or cubicly. - - - + + + - This method returns whether the position between two cached points (see [method set_cubic_interpolation]) is interpolated linearly, or cubicly. + Moves this node horizontally. As this node's position will be set every time its offset is set, this allows many PathFollow2D to share the same curve (and thus the same movement pattern), yet not return the same position for a given path offset. +A similar effect may be achieved moving this node's descendants. @@ -24972,11 +25021,32 @@ This method controls whether the position between two cached points is interpola If set, any offset outside the path's length (whether set by [method set_offset] or [method set_unit_offset] will wrap around, instead of stopping at the ends. Set it for cyclic paths. - - - + + + - Returns whether this node wraps its offsets around, or truncates them to the path ends. + Sets the distance from the first vertex, measured in pixels along the path. This sets this node's position to a point within the path. + + + + + + + If set, this node rotates to follow the path, making its descendants rotate. + + + + + + + Sets the distance from the first vertex, considering 0.0 as the first vertex and 1.0 as the last. This is just another way of expressing the offset within the path, as the offset supplied is multiplied internally by the path's length. + + + + + + + Moves the PathFollow2D vertically, for the same reasons of [method set_h_offset]. @@ -25002,13 +25072,16 @@ This method controls whether the position between two cached points is interpola Add a remap from a file to another. - - - + + + Clear all remaps. + + + - Return true if a file is being remapped. + Erase a remap. @@ -25020,16 +25093,13 @@ This method controls whether the position between two cached points is interpola Return the remapped new path of a file. - + + + - Erase a remap. - - - - - Clear all remaps. + Return true if a file is being remapped. @@ -25052,12 +25122,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -25068,11 +25132,25 @@ This method controls whether the position between two cached points is interpola + + + + - + + + + + + + + + + + @@ -25086,27 +25164,19 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + - + - + - + @@ -25118,95 +25188,74 @@ This method controls whether the position between two cached points is interpola Direct access object to a physics body in the [Physics2DServer]. This object is passed via the direct state callback of rigid/character bodies, and is intended for changing the direct state of that body. - - - - - Return the total gravity vector being currently applied to this body. - - - + - Return the rate at which the body stops moving, if there are not any other forces moving it. + Return the angular velocity of the body. - - + + + + - Return the rate at which the body stops rotating, if there are not any other forces moving it. + Return the [RID] of the collider. - - + + + + - Return the inverse of the mass of the body. + Return the object id of the collider. - - + + - - Return the inverse of the inertia of the body. - - - - + - Change the linear velocity of the body. + Return the collider object, this depends on how it was created (will return a scene node if such was used to create it). - + - - Return the current linear velocity of the body. - - - - + - Change the angular velocity of the body. + Return the contact position in the collider. - - + + - - Return the angular velocity of the body. - - - - + - Change the transform matrix of the body. + Return the collider shape index. - - + + - - Return the transform matrix of the body. - - - - + - Set the sleeping state of the body, only affects character/rigid bodies. + Return the metadata of the collided shape. This metadata is different from [method Object.get_meta], and is set with [method Physics2DServer.shape_set_data]. - - + + + + - Return true if this body is currently sleeping (not active). + Return the linear velocity vector at contact point of the collider. @@ -25216,22 +25265,22 @@ This method controls whether the position between two cached points is interpola Return the amount of contacts this body has with other bodies. Note that by default this returns 0 unless bodies are configured to log contacts. - + - Return the local position (of this body) of the contact point. + Return the local normal (of this body) of the contact point. - + - Return the local normal (of this body) of the contact point. + Return the local position (of this body) of the contact point. @@ -25243,74 +25292,67 @@ This method controls whether the position between two cached points is interpola Return the local shape index of the collision. - - + + - - - Return the [RID] of the collider. + Return the inverse of the inertia of the body. - - + + - - - Return the contact position in the collider. + Return the inverse of the mass of the body. - - + + - - - Return the object id of the collider. + Return the current linear velocity of the body. - - + + - - - Return the collider object, this depends on how it was created (will return a scene node if such was used to create it). + Return the current state of space, useful for queries. - - + + - - - Return the collider shape index. + Return the timestep (delta) used for the simulation. - - + + - - - Return the metadata of the collided shape. This metadata is different from [method Object.get_meta], and is set with [method Physics2DServer.shape_set_data]. + Return the rate at which the body stops rotating, if there are not any other forces moving it. - + - - - Return the linear velocity vector at contact point of the collider. + Return the total gravity vector being currently applied to this body. - + - Return the timestep (delta) used for the simulation. + Return the rate at which the body stops moving, if there are not any other forces moving it. + + + + + + + Return the transform matrix of the body. @@ -25318,11 +25360,39 @@ This method controls whether the position between two cached points is interpola Call the built-in force integration code. - - + + - Return the current state of space, useful for queries. + Return true if this body is currently sleeping (not active). + + + + + + + Change the angular velocity of the body. + + + + + + + Change the linear velocity of the body. + + + + + + + Set the sleeping state of the body, only affects character/rigid bodies. + + + + + + + Change the transform matrix of the body. @@ -25349,6 +25419,45 @@ This method controls whether the position between two cached points is interpola Direct access object to a space in the [Physics2DServer]. It's used mainly to do queries against objects and areas residing in a given space. + + + + + + + Check whether the shape can travel to a point. If it can, the method will return an array with two floats: The first is the distance the shape can move in that direction without colliding, and the second is the distance at which it will collide. + If the shape can not move, the array will be empty. + + + + + + + + + + + Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. The resulting array contains a list of points where the shape intersects another. Like with [method intersect_shape], the number of returned results can be limited to save processing time. + + + + + + + + + Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. If it collides with more than a shape, the nearest one is selected. The returned object is a dictionary containing the following fields: + pointo: Place where the shapes intersect. + normal: Normal of the object at the point where the shapes intersect. + shape: Shape index within the object against which the shape intersected. + metadata: Metadata of the shape against which the shape intersected. This metadata is different from [method Object.get_meta], and is set with [method Physics2DServer.shape_set_data]. + collider_id: Id of the object against which the shape intersected. + collider: Object against which the shape intersected. + rid: [RID] of the object against which the shape intersected. + linear_velocity: The movement vector of the object the shape intersected, if it was a body. If it was an area, it is (0,0). + If the shape did not intersect anything, then an empty dictionary (dir.empty()==true) is returned instead. + + @@ -25415,50 +25524,17 @@ This method controls whether the position between two cached points is interpola The number of intersections can be limited with the second paramater, to reduce the processing time. - - - - - - - Check whether the shape can travel to a point. If it can, the method will return an array with two floats: The first is the distance the shape can move in that direction without colliding, and the second is the distance at which it will collide. - If the shape can not move, the array will be empty. - - - - - - - - - - - Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. The resulting array contains a list of points where the shape intersects another. Like with [method intersect_shape], the number of returned results can be limited to save processing time. - - - - - - - - - Check the intersections of a shape, given through a [Physics2DShapeQueryParameters] object, against the space. If it collides with more than a shape, the nearest one is selected. The returned object is a dictionary containing the following fields: - pointo: Place where the shapes intersect. - normal: Normal of the object at the point where the shapes intersect. - shape: Shape index within the object against which the shape intersected. - metadata: Metadata of the shape against which the shape intersected. This metadata is different from [method Object.get_meta], and is set with [method Physics2DServer.shape_set_data]. - collider_id: Id of the object against which the shape intersected. - collider: Object against which the shape intersected. - rid: [RID] of the object against which the shape intersected. - linear_velocity: The movement vector of the object the shape intersected, if it was a body. If it was an area, it is (0,0). - If the shape did not intersect anything, then an empty dictionary (dir.empty()==true) is returned instead. - - Check for collisions with static bodies. + + Check for collisions with any kind of bodies (but not areas). + + + Check for collisions with areas. + Check for collisions with kinematic bodies. @@ -25468,12 +25544,6 @@ This method controls whether the position between two cached points is interpola Check for collisions with rigid bodies in character mode. - - Check for collisions with areas. - - - Check for collisions with any kind of bodies (but not areas). - @@ -25484,110 +25554,87 @@ This method controls whether the position between two cached points is interpola Physics 2D Server is the server responsible for all 2D physics. It can create many kinds of physics objects, but does not insert them on the node tree. - - - - + + - - Create a shape of type SHAPE_*. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape]. - - - - + - + - Set the shape data that defines its shape and size. The data to be passed depends on the kind of shape created [method shape_get_type]. + Add a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. - - - - + + + + - Return the type of shape (see SHAPE_* constants). + Assign the area to a descendant of [Object], so it can exist in the node tree. - - + + - Return the shape data. + Remove all shapes from an area. It does not delete the shapes, so they can be reassigned later. - + - Create a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with [method area_set_space], or to a body with [method body_set_space]. - - - - - - - - - Mark a space as active. It will not have an effect, unless it is assigned to an area or body. + Create an [Area2D]. - - + + - + - Return whether the space is active. + Get the instance ID of the object the area is assigned to. - - + + - - - Set the value for a space parameter. A list of available parameters is on the SPACE_PARAM_* constants. + Return an area parameter value. - - + + - + - + - Return the value of a space parameter. + Return the [RID] of the nth shape of an area. - - + + - + - Return the state of a space, a [Physics2DDirectSpaceState]. This object can be used to make collision/intersection queries. + Return the number of shapes assigned to an area. - - + + - - Create an [Area2D]. - - - - + - Assign a space to the area. + Return the transform matrix of a shape within an area. @@ -25599,15 +25646,6 @@ This method controls whether the position between two cached points is interpola Return the space assigned to the area. - - - - - - - Set the space override mode for the area. The modes are described in the constants AREA_SPACE_OVERRIDE_*. - - @@ -25617,113 +25655,107 @@ This method controls whether the position between two cached points is interpola Return the space override mode for the area. - + + + - - - - - Add a shape to the area, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. + Return the transform matrix for an area. - + - - - Substitute a given area shape by another. The old shape is selected by its index, the new one by its [RID]. + Remove a shape from an area. It does not delete the shape, so it can be reassigned later. - + - - - + - Set the transform matrix for an area shape. + Set which physics layers the area will monitor. - - - + + + - Return the number of shapes assigned to an area. + Assign the area to one or many physics layers. - - - + - + + + - Return the [RID] of the nth shape of an area. + Set the function to call when any body/area enters or exits the area. This callback will be called for any object interacting with the area, and takes five parameters: + 1: AREA_BODY_ADDED or AREA_BODY_REMOVED, depending on whether the object entered or exited the area. + 2: [RID] of the object that entered/exited the area. + 3: Instance ID of the object that entered/exited the area. + 4: The shape index of the object that entered/exited the area. + 5: The shape index of the area where the object entered/exited. - - - + - + + + - Return the transform matrix of a shape within an area. + Set the value for an area parameter. A list of available parameters is on the AREA_PARAM_* constants. - + - - Remove a shape from an area. It does not delete the shape, so it can be reassigned later. - - - - + - Remove all shapes from an area. It does not delete the shapes, so they can be reassigned later. + Substitute a given area shape by another. The old shape is selected by its index, the new one by its [RID]. - + - + + + - Assign the area to one or many physics layers. + Set the transform matrix for an area shape. - + - + - Set which physics layers the area will monitor. + Assign a space to the area. - + - - - + - Set the value for an area parameter. A list of available parameters is on the AREA_PARAM_* constants. + Set the space override mode for the area. The modes are described in the constants AREA_SPACE_OVERRIDE_*. @@ -25735,56 +25767,62 @@ This method controls whether the position between two cached points is interpola Set the transform matrix for an area. - - + + - + - Return an area parameter value. + Add a body to the list of bodies exempt from collisions. - - - - + + + + + + - Return the transform matrix for an area. + Add a positioned force to the applied force and torque. As with [method body_apply_impulse], both the force and the offset from the body origin are in global coordinates. A force differs from an impulse in that, while the two are forces, the impulse clears itself after being applied. - - + + - + + + - Assign the area to a descendant of [Object], so it can exist in the node tree. + Add a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. - - - - + + + + + + - Get the instance ID of the object the area is assigned to. + Add a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates. - - + + - + - + + Assign the area to a descendant of [Object], so it can exist in the node tree. + + + + - Set the function to call when any body/area enters or exits the area. This callback will be called for any object interacting with the area, and takes five parameters: - 1: AREA_BODY_ADDED or AREA_BODY_REMOVED, depending on whether the object entered or exited the area. - 2: [RID] of the object that entered/exited the area. - 3: Instance ID of the object that entered/exited the area. - 4: The shape index of the object that entered/exited the area. - 5: The shape index of the area where the object entered/exited. + Remove all shapes from a body. @@ -25798,93 +25836,87 @@ This method controls whether the position between two cached points is interpola Create a physics body. The first parameter can be any value from constants BODY_MODE*, for the type of body created. Additionally, the body can be created in sleeping state to save processing time. - + + + - - - Assign a space to the body (see [method create_space]). + Return the physics layer or layers a body can collide with. - - + + - Return the [RID] of the space assigned to a body. + Return the continuous collision detection mode. - + + + - - - Set the body mode, from one of the constants BODY_MODE*. + Return the physics layer or layers a body belongs to. - + - Return the body mode. + Return the maximum contacts that can be reported. See [method body_set_max_contacts_reported]. - + + + - - - - - Add a shape to the body, along with a transform matrix. Shapes are usually referenced by their index, so you should track which shape has a given index. + Return the body mode. - + + + - - - - - Substitute a given body shape by another. The old shape is selected by its index, the new one by its [RID]. + Get the instance ID of the object the area is assigned to. - + + + - - - - - Set the transform matrix for a body shape. + Return the direction used for one-way collision detection. - + + + - - - - - Set metadata of a shape within a body. This metadata is different from [method Object.set_meta], and can be retrieved on shape queries. + Return how far a body can go through the given one, when it allows one-way collisions. - - + + + + - Return the number of shapes assigned to a body. + Return the value of a body parameter. @@ -25898,15 +25930,13 @@ This method controls whether the position between two cached points is interpola Return the [RID] of the nth shape of a body. - - + + - - - Return the transform matrix of a body shape. + Return the number of shapes assigned to a body. @@ -25918,97 +25948,80 @@ This method controls whether the position between two cached points is interpola Return the metadata of a shape of a body. - + + + - Remove a shape from a body. The shape is not deleted, so it can be reused afterwards. + Return the transform matrix of a body shape. - + + + - Remove all shapes from a body. + Return the [RID] of the space assigned to a body. - + - - - + - Mark a body's shape as a trigger. A trigger shape cannot affect other bodies, but detects other shapes entering and exiting it. + Return a body state. - + - - - - Return whether a body's shape is marked as a trigger. - - - - - - - - Assign the area to a descendant of [Object], so it can exist in the node tree. + Return whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). - - + + - - Get the instance ID of the object the area is assigned to. - - - - - - + - Set the continuous collision detection mode from any of the CCD_MODE_* constants. - Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. + Return whether a body's shape is marked as a trigger. - - - + + + - Return the continuous collision detection mode. + Remove a body from the list of bodies exempt from collisions. - + - + - Set the physics layer or layers a body belongs to. + Remove a shape from a body. The shape is not deleted, so it can be reused afterwards. - - - + + + - Return the physics layer or layers a body belongs to. + Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. @@ -26020,189 +26033,156 @@ This method controls whether the position between two cached points is interpola Set the physics layer or layers a body can collide with. - - - - - - - Return the physics layer or layers a body can collide with. - - - - - - - - - - - Set a body parameter (see BODY_PARAM* constants). - - - - - + - + - Return the value of a body parameter. + Set the continuous collision detection mode from any of the CCD_MODE_* constants. + Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. - + - - - + - - Set a body state (see BODY_STATE* constants). - - - - + - + - Return a body state. + Set the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]). - + - - - + - Add a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates. + Set the physics layer or layers a body belongs to. - + - - - + - Add a positioned force to the applied force and torque. As with [method body_apply_impulse], both the force and the offset from the body origin are in global coordinates. A force differs from an impulse in that, while the two are forces, the impulse clears itself after being applied. + Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. - + - + - Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. + Set the body mode, from one of the constants BODY_MODE*. - + - + - Add a body to the list of bodies exempt from collisions. + Set whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). - + - + - Remove a body from the list of bodies exempt from collisions. + Set a direction in which bodies can go through the given one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. - + - - - - Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. - - - - - - + - Return the maximum contacts that can be reported. See [method body_set_max_contacts_reported]. + Set how far a body can go through the given one, if it allows one-way collisions (see [method body_set_one_way_collision_direction]). - + - + + + - Set a direction in which bodies can go through the given one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. + Set a body parameter (see BODY_PARAM* constants). - - - + + + + + - Return the direction used for one-way collision detection. + Substitute a given body shape by another. The old shape is selected by its index, the new one by its [RID]. - + - + + + - Set how far a body can go through the given one, if it allows one-way collisions (see [method body_set_one_way_collision_direction]). + Mark a body's shape as a trigger. A trigger shape cannot affect other bodies, but detects other shapes entering and exiting it. - - - + + + + + - Return how far a body can go through the given one, when it allows one-way collisions. + Set metadata of a shape within a body. This metadata is different from [method Object.set_meta], and can be retrieved on shape queries. - + - + + + - Set whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). + Set the transform matrix for a body shape. - - - + + + - Return whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). + Assign a space to the body (see [method create_space]). - + - - - + - + - Set the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]). + Set a body state (see BODY_STATE* constants). @@ -26220,18 +26200,22 @@ This method controls whether the position between two cached points is interpola Return whether a body can move in a given direction. Apart from the boolean return value, a [Physics2DTestMotionResult] can be passed to return additional information in. - - + + + + - + - + + + - Set a joint parameter. Parameters are explained in the JOINT_PARAM* constants. + Create a damped spring joint between two bodies. If not specified, the second body is assumed to be the joint itself. - + @@ -26239,20 +26223,34 @@ This method controls whether the position between two cached points is interpola - Return the value of a joint parameter. + Return the value of a damped spring joint parameter. - - - - + + - + - + - Create a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself. + Set a damped spring joint parameter. Parameters are explained in the DAMPED_STRING* constants. + + + + + + + Destroy any of the objects created by Physics2DServer. If the [RID] passed is not one of the objects that can be created by Physics2DServer, an error will be sent to the console. + + + + + + + + + Return information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. @@ -26272,22 +26270,27 @@ This method controls whether the position between two cached points is interpola Create a groove joint between two bodies. If not specified, the bodyies are assumed to be the joint itself. - - + + - - - + - + - + + Return the value of a joint parameter. + + + + + + - Create a damped spring joint between two bodies. If not specified, the second body is assumed to be the joint itself. + Return the type of a joint (see JOINT_* constants). - + @@ -26295,114 +26298,157 @@ This method controls whether the position between two cached points is interpola - Set a damped spring joint parameter. Parameters are explained in the DAMPED_STRING* constants. + Set a joint parameter. Parameters are explained in the JOINT_PARAM* constants. - - + + - + - + + + - Return the value of a damped spring joint parameter. + Create a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself. - + + + + + Activate or deactivate the 2D physics engine. + + + + + + + + + Create a shape of type SHAPE_*. Does not assign it to a body or an area. To do so, you must use [method area_set_shape] or [method body_set_shape]. + + + + + + + Return the shape data. + + + - + - Return the type of a joint (see JOINT_* constants). + Return the type of shape (see SHAPE_* constants). - - + + + + - Destroy any of the objects created by Physics2DServer. If the [RID] passed is not one of the objects that can be created by Physics2DServer, an error will be sent to the console. + Set the shape data that defines its shape and size. The data to be passed depends on the kind of shape created [method shape_get_type]. - - + + + + + Create a space. A space is a collection of parameters for the physics engine that can be assigned to an area or a body. It can be assigned to an area with [method area_set_space], or to a body with [method body_set_space]. + + + + + + - Activate or deactivate the 2D physics engine. + Return the state of a space, a [Physics2DDirectSpaceState]. This object can be used to make collision/intersection queries. - - + + - + + + - Return information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. + Return the value of a space parameter. + + + + + + + + + Return whether the space is active. + + + + + + + + + Mark a space as active. It will not have an effect, unless it is assigned to an area or body. + + + + + + + + + + + Set the value for a space parameter. A list of available parameters is on the SPACE_PARAM_* constants. - - Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. - - - Constant to set/get the maximum distance a shape can be from another before they are considered separated. - - - Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. - - - Constant to set/get the linear velocity threshold. Bodies slower than this will be marked as potentially inactive. - - - Constant to set/get the angular velocity threshold. Bodies slower than this will be marked as potentially inactive. - - - Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. - - - Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. - - - This is the constant for creating line shapes. A line shape is an infinite line with an origin point, and a normal. Thus, it can be used for front/behind checks. - - - This is the constant for creating segment shapes. A segment shape is a line from a point A to a point B. It can be checked for intersections. - - - This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks. - - - This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks. - - - This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks. - - - This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks. Unlike the method [method CollisionPolygon2D.set_polygon], polygons modified with [method shape_set_data] do not verify that the points supplied form, in fact, a convex polygon. - - - This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks. - - - This constant is used internally by the engine. Any attempt to create this kind of shape results in an error. + + The value of the first parameter and area callback function receives, when an object enters one of its shapes. Constant to set/get gravity strength in an area. + + This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. + + + The value of the first parameter and area callback function receives, when an object exits one of its shapes. + Constant to set/get gravity vector/center in an area. + + This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. + Constant to set/get whether the gravity vector of an area is a direction, or a center point. + + This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. + Constant to set/get the falloff factor for point gravity of an area. The greater this value is, the faster the strength of gravity decreases with the square of distance. + + This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. + This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE. + + This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. + Constant to set/get the linear dampening factor of an area. @@ -26412,48 +26458,48 @@ This method controls whether the position between two cached points is interpola Constant to set/get the priority (order of processing) of an area. - - This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. - - - This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. - - - This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. - - - This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. - - - This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. - Constant for static bodies. - - Constant for kinematic bodies. - - - Constant for rigid bodies. - - - Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics. - Constant to set/get a body's bounce factor. + + Constant to set/get the current transform matrix of the body. + + + Constant for kinematic bodies. + Constant to set/get a body's friction. + + Constant to set/get the current linear velocity of the body. + + + Constant for rigid bodies. + Constant to set/get a body's mass. + + Constant to set/get the current angular velocity of the body. + + + Constant for rigid bodies in character mode. In this mode, a body can not rotate, and only its linear velocity is affected by physics. + Constant to set/get a body's inertia. + + Constant to sleep/wake up a body, or to get whether it is sleeping. + Constant to set/get a body's gravity multiplier. + + Constant to set/get whether the body can sleep. + Constant to set/get a body's linear dampening factor. @@ -26463,20 +26509,32 @@ This method controls whether the position between two cached points is interpola This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. - - Constant to set/get the current transform matrix of the body. + + Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. - - Constant to set/get the current linear velocity of the body. + + Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise. - - Constant to set/get the current angular velocity of the body. + + Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. - - Constant to sleep/wake up a body, or to get whether it is sleeping. + + Set the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. - - Constant to set/get whether the body can sleep. + + Set the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. + + + Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). + + + Constant to get the number of objects that are not sleeping. + + + Constant to get the number of possible collisions. + + + Constant to get the number of space regions where a collision could occur. Constant to create pin joints. @@ -26487,38 +26545,50 @@ This method controls whether the position between two cached points is interpola Constant to create damped spring joints. - - Set the resting length of the spring joint. The joint will always try to go to back this length when pulled apart. + + This is the constant for creating line shapes. A line shape is an infinite line with an origin point, and a normal. Thus, it can be used for front/behind checks. - - Set the stiffness of the spring joint. The joint applies a force equal to the stiffness times the distance from its resting length. + + This is the constant for creating segment shapes. A segment shape is a line from a point A to a point B. It can be checked for intersections. - - Set the damping ratio of the spring joint. A value of 0 indicates an undamped spring, while 1 causes the system to reach equilibrium as fast as possible (critical damping). + + This is the constant for creating circle shapes. A circle shape only has a radius. It can be used for intersections and inside/outside checks. - - Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. + + This is the constant for creating rectangle shapes. A rectangle shape is defined by a width and a height. It can be used for intersections and inside/outside checks. - - Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise. + + This is the constant for creating capsule shapes. A capsule shape is defined by a radius and a length. It can be used for intersections and inside/outside checks. - - Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. + + This is the constant for creating convex polygon shapes. A polygon is defined by a list of points. It can be used for intersections and inside/outside checks. Unlike the method [method CollisionPolygon2D.set_polygon], polygons modified with [method shape_set_data] do not verify that the points supplied form, in fact, a convex polygon. - - The value of the first parameter and area callback function receives, when an object enters one of its shapes. + + This is the constant for creating concave polygon shapes. A polygon is defined by a list of points. It can be used for intersections checks, but not for inside/outside checks. - - The value of the first parameter and area callback function receives, when an object exits one of its shapes. + + This constant is used internally by the engine. Any attempt to create this kind of shape results in an error. - - Constant to get the number of objects that are not sleeping. + + Constant to set/get the maximum distance a pair of bodies has to move before their collision status has to be recalculated. - - Constant to get the number of possible collisions. + + Constant to set/get the maximum distance a shape can be from another before they are considered separated. - - Constant to get the number of space regions where a collision could occur. + + Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. + + + Constant to set/get the linear velocity threshold. Bodies slower than this will be marked as potentially inactive. + + + Constant to set/get the angular velocity threshold. Bodies slower than this will be marked as potentially inactive. + + + Constant to set/get the maximum time of activity. A body marked as potentially inactive for both linear and angular velocity will be put to sleep after this time. + + + Constant to set/get the default solver bias for all physics constraints. A solver bias is a factor controlling how much two objects "rebound", after violating a constraint, to avoid leaving them in that state because of numerical imprecision. @@ -26542,67 +26612,60 @@ This method controls whether the position between two cached points is interpola This class contains the shape and other parameters for intersection/collision queries. - - - + + + - Set the [Shape2D] that will be used for collision/intersection queries. + Return the list of objects, or object [RID]s, that will be excluded from collisions. - - - + + + - Set the [RID] of the shape to be used in queries. + Return the physics layer(s) the shape belongs to. - - + + - Return the [RID] of the shape queried. + Return the collision margin for the shape. - - - + + + - Set the transormation matrix of the shape. This is necessary to set its position/rotation/scale. + Return the current movement speed of the shape. - - + + - Return the transform matrix of the shape queried. + Return the type of object the shape belongs to. - - - + + + - Set the current movement speed of the shape. + Return the [RID] of the shape queried. - - + + - Return the current movement speed of the shape. + Return the transform matrix of the shape queried. - - + + - Set the collision margin for the shape. A collision margin is an amount (in pixels) that the shape will grow when computing collisions, to account for numerical imprecision. - - - - - - - Return the collision margin for the shape. + Set the list of objects, or object [RID]s, that will be excluded from collisions. @@ -26612,11 +26675,18 @@ This method controls whether the position between two cached points is interpola Set the physics layer(s) the shape belongs to. - - - + + + + + Set the collision margin for the shape. A collision margin is an amount (in pixels) that the shape will grow when computing collisions, to account for numerical imprecision. + + + + + - Return the physics layer(s) the shape belongs to. + Set the current movement speed of the shape. @@ -26626,25 +26696,25 @@ This method controls whether the position between two cached points is interpola Set the type of object the shape belongs to (see Physics2DDirectSpaceState.TYPE_MASK_*). - - - + + + - Return the type of object the shape belongs to. + Set the [Shape2D] that will be used for collision/intersection queries. - - + + - Set the list of objects, or object [RID]s, that will be excluded from collisions. + Set the [RID] of the shape to be used in queries. - - - + + + - Return the list of objects, or object [RID]s, that will be excluded from collisions. + Set the transormation matrix of the shape. This is necessary to set its position/rotation/scale. @@ -26663,8 +26733,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -26679,16 +26749,16 @@ This method controls whether the position between two cached points is interpola - - + + - - + + @@ -26705,26 +26775,26 @@ This method controls whether the position between two cached points is interpola - - + + - - + + - - + + - - + + @@ -26735,26 +26805,26 @@ This method controls whether the position between two cached points is interpola - - + + - - + + - - + + - - + + @@ -26771,70 +26841,70 @@ This method controls whether the position between two cached points is interpola PhysicsBody is an abstract base class for implementing a physics body. All PhysicsBody types inherit from it. - - + + - + - - + + + + - + - + + + - - - - - - + + - - - - + + - - - + + + - - + + - - + + + + @@ -26851,27 +26921,11 @@ This method controls whether the position between two cached points is interpola PhysicsBody2D is an abstract base class for implementing a physics body. All *Body2D types inherit from it. - - - - - Set the physics layers this area is in. - Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. - A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. - - - - - - - Return the physics layer this area is in. - - - - + + - Set the physics layers this area can scan for collisions. + Adds a body to the collision exception list. This list contains bodies that this body will not collide with. @@ -26881,15 +26935,6 @@ This method controls whether the position between two cached points is interpola Return the physics layers this area can scan for collisions. - - - - - - - Set/clear individual bits on the collision mask. This makes selecting the areas scanned easier. - - @@ -26899,13 +26944,11 @@ This method controls whether the position between two cached points is interpola Return an individual bit on the collision mask. - - - - - + + + - Set/clear individual bits on the layer mask. This makes getting a body in/out of only one layer easier. + Return the physics layer this area is in. @@ -26917,13 +26960,6 @@ This method controls whether the position between two cached points is interpola Return an individual bit on the collision mask. - - - - - Set a direction in which bodies can go through this one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. - - @@ -26931,13 +26967,6 @@ This method controls whether the position between two cached points is interpola Return the direction used for one-way collision detection. - - - - - Set how far a body can go through this one, when it allows one-way collisions (see [method set_one_way_collision_direction]). - - @@ -26945,13 +26974,6 @@ This method controls whether the position between two cached points is interpola Return how far a body can go through this one, when it allows one-way collisions. - - - - - Adds a body to the collision exception list. This list contains bodies that this body will not collide with. - - @@ -26959,60 +26981,76 @@ This method controls whether the position between two cached points is interpola Removes a body from the collision exception list. - - - - - - - - - - - - - + + + + Set the physics layers this area can scan for collisions. - - - + + + + + + Set/clear individual bits on the collision mask. This makes selecting the areas scanned easier. - - - + + + + Set the physics layers this area is in. + Collidable objects can exist in any of 32 different layers. These layers are not visual, but more of a tagging system instead. A collidable can use these layers/tags to select with which objects it can collide, using [method set_collision_mask]. + A contact is detected if object A is in any of the layers that object B scans, or object B is in any layer scanned by object A. - - - + + + + + + Set/clear individual bits on the layer mask. This makes getting a body in/out of only one layer easier. - - - + + + + Set a direction in which bodies can go through this one. If this value is different from (0,0), any movement within 90 degrees of this vector is considered a valid movement. Set this direction to (0,0) to disable one-way collisions. - - + + + Set how far a body can go through this one, when it allows one-way collisions (see [method set_one_way_collision_direction]). - - - + + + + + + + + + + + + + + + - - + + + + @@ -27023,43 +27061,51 @@ This method controls whether the position between two cached points is interpola - - + + + + - - + + + + - - - - + + + + - - - - + + + + - - + + + + - - + + + + @@ -27069,7 +27115,7 @@ This method controls whether the position between two cached points is interpola - + @@ -27077,7 +27123,7 @@ This method controls whether the position between two cached points is interpola - + @@ -27093,70 +27139,94 @@ This method controls whether the position between two cached points is interpola - - + + - - - + + + + + + + - - - - + + - - - - + + - - - - + + - - - + - - - + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -27177,23 +27247,17 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - + - + - + @@ -27203,31 +27267,37 @@ This method controls whether the position between two cached points is interpola - - + + - - - - + + - + - + + + + + + + - - + + + + @@ -27235,16 +27305,16 @@ This method controls whether the position between two cached points is interpola + + + + - - - - @@ -27253,82 +27323,26 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - - - + + - + - - - - + + @@ -27338,70 +27352,60 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - + + + - + - + - - + + + + - + + + - - - - - + + + - - - + + + - - - - - + @@ -27409,23 +27413,19 @@ This method controls whether the position between two cached points is interpola - - + + - - - - + + - - @@ -27437,9 +27437,11 @@ This method controls whether the position between two cached points is interpola - + + + @@ -27451,10 +27453,12 @@ This method controls whether the position between two cached points is interpola - + - + + + @@ -27469,107 +27473,111 @@ This method controls whether the position between two cached points is interpola - + - + - + - + + + - - - + + + + + - + - + - - - + + + - + - - - + - - + + - + - - - - + + + + + + - - - - + + - + + + - + - + - - - + - - + + + + - + - + @@ -27577,10 +27585,12 @@ This method controls whether the position between two cached points is interpola - + + + - + @@ -27595,51 +27605,47 @@ This method controls whether the position between two cached points is interpola - + + + - - - + - - - + + + - - - - - + + + - - - + - + + + - - @@ -27651,8 +27657,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -27661,286 +27667,302 @@ This method controls whether the position between two cached points is interpola - - + + - - - + - + - + + + - + + + - - - - + + - + - + - - - + + + - + - - - + - - - + - + - + - - - + - + - + - + - + - + + + - + - + - + - + - - - + + + - + - + - + - + + + - + - + - - - + + + + + - + - + + + - - - + + + - + - + - + - + + + + + + + + + - - + + - + + + - - - - + + - - + + - - - + - + - + - + + + - + - + - - - + - + + + + + - + - + + + + + - - + + - + - + + + - + - - + + + + - - - - - - + + - + - + @@ -27955,32 +27977,58 @@ This method controls whether the position between two cached points is interpola - - + + - + - + + + + + - - + + + + - + - + + + - - + + - + - + + + + + + + + + + + + + + + + + + + @@ -27999,17 +28047,47 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + - + + + + + + + - + + + + + + + + + + + + + + + + + @@ -28019,21 +28097,23 @@ This method controls whether the position between two cached points is interpola - - - - + + - + - + + + + + - + - + @@ -28043,205 +28123,180 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + - + - + + + + + - + - + - - + + - + - - + + - - - - - - - - - - - - - + - + - - - + - + - - + + - - - - - - - - - - - - - - + + + + - - + + - - - + - + - - + + + + - - + + + + - - - - + + + + + + - - - - - - - - - - - - - - - - - - - - - + - + - + + This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. - + - + - + + This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. - + - + + This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. - + - + + This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. - + - + + This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -28253,10 +28308,24 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + @@ -28273,110 +28342,111 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - - This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. + - - This area adds its gravity/damp values to whatever has been calculated so far. This way, many overlapping areas can combine their physics to make interesting effects. + - - This area adds its gravity/damp values to whatever has been calculated so far. Then stops taking into account the rest of the areas, even the default one. + - - This area replaces any gravity/damp, even the default one, and stops taking into account the rest of the areas. + - - This area replaces any gravity/damp calculated so far, but keeps calculating the rest of the areas, down to the default one. + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + @@ -28396,45 +28466,45 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - + + + @@ -28444,9 +28514,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -28456,21 +28526,21 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + @@ -28491,8 +28561,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -28507,16 +28577,16 @@ This method controls whether the position between two cached points is interpola - - + + - - + + @@ -28533,19 +28603,19 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + + + @@ -28567,18 +28637,18 @@ This method controls whether the position between two cached points is interpola Pin Joint for 2D Rigid Bodies. It pins 2 bodies (rigid or static) together, or a single body to a fixed position in space. - - - - - - + + + + + + @@ -28591,6 +28661,45 @@ This method controls whether the position between two cached points is interpola Plane represents a normalized plane equation. Basically, "normal" is the normal of the plane (a,b,c normalized), and "d" is the distance from the origin to the plane (in the direction of "normal"). "Over" or "Above" the plane is considered the side of the plane towards where the normal is pointing. + + + + + + + + + + + + + Creates a plane from the three parameters "a", "b", "c" and "d". + + + + + + + + + + + + + Creates a plane from three points. + + + + + + + + + + + Creates a plane from the normal and the plane's distance to the origin. + + @@ -28683,47 +28792,10 @@ This method controls whether the position between two cached points is interpola Returns the orthogonal projection of point "p" into a point in the plane. - - - - - - - - - - - - - Creates a plane from the three parameters "a", "b", "c" and "d". - - - - - - - - - - - - - Creates a plane from three points. - - - - - - - - - - - Creates a plane from the normal and the plane's distance to the origin. - - + + @@ -28732,8 +28804,6 @@ This method controls whether the position between two cached points is interpola - - @@ -28744,18 +28814,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -28768,11 +28838,32 @@ This method controls whether the position between two cached points is interpola A Polygon2D is defined by a set of n vertices connected together by line segments, meaning that the vertex 1 will be connected with vertex 2, vertex 2 with vertex 3 ..., vertex n-1 with vertex n and vertex n with vertex 1 in order to close the loop and define a polygon. - - - + + + + + Return the polygon fill color. + + + + + + + Return whether this polygon is inverted or not. + + + + + - Define the set of vertices that will represent the polygon. + Return the added padding around the bounding box. + + + + + + + Return the offset for the polygon vertices. @@ -28782,40 +28873,39 @@ This method controls whether the position between two cached points is interpola Return the set of vertices that defines this polygon. - - - + + + - Set the texture coordinates for every vertex of the polygon. There should be one uv vertex for every vertex in the polygon. If there are less, the undefined ones will be assumed to be (0,0). Extra uv vertices are ignored. + Return the polygon texture - - + + - Return the texture coordinates associated with every vertex of the polygon. + Return the polygon texture offset. - - - + + + - Set the polygon fill color. If the polygon has a texture defined, the defined texture will be multiplied by the polygon fill color. This, also, is the default color for those vertices that are not defined by [method get_vertex_colors]. + Return the rotation in radians of the texture polygon. - - + + - Return the polygon fill color. + Return the uv coordinate multiplier. - - - + + + - Set the color for each vertex of the polygon. There should be one color for every vertex in the polygon. If there are less, the undefined ones will be assumed to be [method get_color]. Extra color entries are ignored. - Colors are interpolated between vertices, resulting in smooth gradients when they differ. + Return the texture coordinates associated with every vertex of the polygon. @@ -28825,102 +28915,82 @@ This method controls whether the position between two cached points is interpola Return the list of vertex colors. - - + + - Set the polygon texture. - - - - - - - Return the polygon texture + Set the polygon fill color. If the polygon has a texture defined, the defined texture will be multiplied by the polygon fill color. This, also, is the default color for those vertices that are not defined by [method get_vertex_colors]. - - + + - Set the offset of the polygon texture. Initially the texture will appear anchored to the polygon position, the offset is used to move the texture location away from that point (notice that the texture origin is set to its top left corner, so when offset is 0,0 the top left corner of the texture is at the polygon position), for example setting the offset to 10, 10 will move the texture 10 units to the left and 10 units to the top. - - - - - - - Return the polygon texture offset. + Set the polygon as the defined polygon bounding box minus the defined polygon (the defined polygon will appear as a hole on the square that contains the defined polygon). - - + + - Set the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation. - - - - - - - Return the rotation in radians of the texture polygon. + Add extra padding around the bounding box, making it bigger. Too small a value can make the polygon triangulate strangely, due to numerical imprecision. - - + + - Set the value that will multiply the uv coordinates ([method get_uv]) when applying the texture. Larger values make the texture smaller, and vice versa. + Set the an offset that will be added to the vertices' position. E.g. if the offset is set to (10,10) then all the polygon points will move 10 units to the right and 10 units to the bottom. - - - + + + - Return the uv coordinate multiplier. + Define the set of vertices that will represent the polygon. - - + + - Set the polygon as the defined polygon bounding box minus the defined polygon (the defined polygon will appear as a hole on the square that contains the defined polygon). + Set the polygon texture. - - - + + + - Return whether this polygon is inverted or not. + Set the offset of the polygon texture. Initially the texture will appear anchored to the polygon position, the offset is used to move the texture location away from that point (notice that the texture origin is set to its top left corner, so when offset is 0,0 the top left corner of the texture is at the polygon position), for example setting the offset to 10, 10 will move the texture 10 units to the left and 10 units to the top. - - + + - Add extra padding around the bounding box, making it bigger. Too small a value can make the polygon triangulate strangely, due to numerical imprecision. + Set the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation. - - - + + + - Return the added padding around the bounding box. + Set the value that will multiply the uv coordinates ([method get_uv]) when applying the texture. Larger values make the texture smaller, and vice versa. - - + + - Set the an offset that will be added to the vertices' position. E.g. if the offset is set to (10,10) then all the polygon points will move 10 units to the right and 10 units to the bottom. + Set the texture coordinates for every vertex of the polygon. There should be one uv vertex for every vertex in the polygon. If there are less, the undefined ones will be assumed to be (0,0). Extra uv vertices are ignored. - - - + + + - Return the offset for the polygon vertices. + Set the color for each vertex of the polygon. There should be one color for every vertex in the polygon. If there are less, the undefined ones will be assumed to be [method get_color]. Extra color entries are ignored. + Colors are interpolated between vertices, resulting in smooth gradients when they differ. @@ -28933,14 +29003,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -28951,6 +29013,20 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + @@ -28961,10 +29037,10 @@ This method controls whether the position between two cached points is interpola - - + + - + @@ -28985,17 +29061,11 @@ This method controls whether the position between two cached points is interpola - - - - + + + + - - - - - - @@ -29011,18 +29081,23 @@ This method controls whether the position between two cached points is interpola Popup is a base [Control] used to show dialogs and popups. It's a subwindow and modal by default (see [Control]) and has helpers for custom popup behavior. - - - + + + - Popup (show the control in modal form) in the center of the screen, at the current size, or at a size determined by "size". + Returns whether the popup will hide other popups when shown on the screen. - - + + + Popup (show the control in modal form). + + + + - Popup (show the control in modal form) in the center of the screen, scaled at a ratio of size of the screen. + Popup (show the control in modal form) in the center of the screen, at the current size, or at a size determined by "size". @@ -29032,9 +29107,11 @@ This method controls whether the position between two cached points is interpola Popup (show the control in modal form) in the center of the screen, ensuring the size is never smaller than [code]minsize[/code]. - + + + - Popup (show the control in modal form). + Popup (show the control in modal form) in the center of the screen, scaled at a ratio of size of the screen. @@ -29044,23 +29121,16 @@ This method controls whether the position between two cached points is interpola Make the popup hide other popups when shown on the screen. - - - - - Returns whether the popup will hide other popups when shown on the screen. - - - + - This signal is emitted when a popup is hidden. + This signal is emitted when a popup is about to be shown. (often used in [PopupMenu] for clearing the list of options and creating a new one according to the current context). - + - This signal is emitted when a popup is about to be shown. (often used in [PopupMenu] for clearing the list of options and creating a new one according to the current context). + This signal is emitted when a popup is hidden. @@ -29093,28 +29163,23 @@ This method controls whether the position between two cached points is interpola PopupMenu is the typical Control that displays a list of options. They are popular in toolbars or context menus. - - - - + + - + - + - Add a new item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. + Add a new checkable item with text "label". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - - + + - - - Add a new item with text "label". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. @@ -29130,26 +29195,27 @@ This method controls whether the position between two cached points is interpola Add a new checkable item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - - + + - + - + - Add a new checkable item with text "label". An id can optionally be provided, as well as an accelerator. If no id is provided, one will be created from the index. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - - + + - + + + - Adds an item with a submenu. The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. An id can optionally be provided, but if is isn't provided, one will be created from the index. + Add a new item with text "label" and icon "texture". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. @@ -29162,25 +29228,23 @@ This method controls whether the position between two cached points is interpola - - + + + + + Add a new item with text "label". An id can optionally be provided, as well as an accelerator keybinding. If no id is provided, one will be created from the index. - - - - - - - + + Add a separator between items. Separators also occupy an index. - + @@ -29188,102 +29252,87 @@ This method controls whether the position between two cached points is interpola - - - - + + - - Set the text of the item at index "idx". - - - - + - + - Set the icon of the item at index "idx". + Adds an item with a submenu. The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. An id can optionally be provided, but if is isn't provided, one will be created from the index. - - - - - + - Set the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused. + Clear the popup menu, in effect removing all items. - + + + - - - Sets the metadata of an item, which might be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items. + Return the id of the item at index "idx". - + + + - - - Set the checkstate status of the item at index "idx". + Return the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused. - - - - - + + + - Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked. + Return the amount of items. - + + + - - + Return the icon of the item at index "idx". - - - - + + + + - Sets the submenu of the item at index "idx". The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. + Find and return the index of the item containing a given id. - + - - - Mark the item at index "idx" as a seperator, which means that it would be displayed as a mere line. + Return the metadata of an item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items. - + + + - - - Set whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - + + + - - - Set the id of the item at index "idx". + Return the submenu name of the item at index "idx". @@ -29295,124 +29344,145 @@ This method controls whether the position between two cached points is interpola Return the text of the item at index "idx". - - + + - Return the icon of the item at index "idx". + Return whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - + + + - Return the metadata of an item, which might be of any type. You can set it with [method set_item_metadata], which provides a simple way of assigning context data to items. + Return the checkstate status of the item at index "idx". - - + + - Return the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused. + Return whether the item at index "idx" is disabled. When it is disabled it can't be selected, or its action invoked. - - + + + Return whether the item is a seperator. If it is, it would be displayed as a line. - - - + - Return the submenu name of the item at index "idx". + Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one. - - - + + + - Return whether the item is a seperator. If it is, it would be displayed as a line. + Set the id of the item at index "idx". - - - + + + - Return whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. + Set the accelerator of the item at index "idx". Accelerators are special combinations of keys that activate the item, no matter which control is focused. - - - + + + - Return the checkstate status of the item at index "idx". + Set whether the item at index "idx" has a checkbox. Note that checkable items just display a checkmark, but don't have any built-in checking behavior and must be checked/unchecked manually. - - - + + + - Return whether the item at index "idx" is disabled. When it is disabled it can't be selected, or its action invoked. + Mark the item at index "idx" as a seperator, which means that it would be displayed as a mere line. - - - + + + - Return the id of the item at index "idx". + Set the checkstate status of the item at index "idx". - - - - + + + + - Find and return the index of the item containing a given id. + Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked. - - - + + + + + - Return the amount of items. + Set the icon of the item at index "idx". - + + + + + - Add a separator between items. Separators also occupy an index. + Sets the metadata of an item, which might be of any type. You can later get it with [method get_item_metadata], which provides a simple way of assigning context data to items. - + + + - Removes the item at index "idx" from the menu. Note that the indexes of items after the removed item are going to be shifted by one. - + + + + + - Clear the popup menu, in effect removing all items. + Sets the submenu of the item at index "idx". The submenu is the name of a child PopupMenu node that would be shown when the item is clicked. + + + + + + + + + Set the text of the item at index "idx". @@ -29428,33 +29498,33 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - + - + - + - + - + @@ -29482,25 +29552,32 @@ This method controls whether the position between two cached points is interpola Portals provide virtual openings to [VisualInstance] nodes, so cameras can look at them from the outside. Note that portals are a visibility optimization technique, and are in no way related to the game of the same name (as in, they are not used for teleportation). For more information on how rooms and portals work, see [VisualInstance]. Portals are represented as 2D convex polygon shapes (in the X,Y local plane), and are placed on the surface of the areas occupied by a [VisualInstance], to indicate that the room can be accessed or looked-at through them. If two rooms are next to each other, and two similar portals in each of them share the same world position (and are parallel and opposed to each other), they will automatically "connect" and form "doors" (for example, the portals that connect a kitchen to a living room are placed in the door they share). Portals must always have a [VisualInstance] node as a parent, grandparent or far parent, or else they will not be active. - - - + + + - Set the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. + Return the range for auto-connecting two portals from different rooms sharing the same space. - - + + - Return the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. + Return the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). - - - + + + - Enable the portal (it is enabled by default though), disabling it will cause the parent [VisualInstance] to not be visible any longer when looking through the portal. + Return the color for when the portal goes beyond the disable distance (see [method set_disable_distance]) and becomes disabled. + + + + + + + Return the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. @@ -29510,18 +29587,18 @@ This method controls whether the position between two cached points is interpola Return whether the portal is active. When disabled it causes the parent [VisualInstance] to not be visible any longer when looking through the portal. - - + + - Set the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). + Set the range for auto-connecting two portals from different rooms sharing the same space. - - - + + + - Return the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). + Set the distance threshold for disabling the portal. Every time that the portal goes beyond "distance", it disables itself, becoming the opaque color (see [method set_disabled_color]). @@ -29531,25 +29608,18 @@ This method controls whether the position between two cached points is interpola When the portal goes beyond the disable distance (see [method set_disable_distance]), it becomes opaque and displayed with color "color". - - - - - Return the color for when the portal goes beyond the disable distance (see [method set_disable_distance]) and becomes disabled. - - - - + + - Set the range for auto-connecting two portals from different rooms sharing the same space. + Enable the portal (it is enabled by default though), disabling it will cause the parent [VisualInstance] to not be visible any longer when looking through the portal. - - - + + + - Return the range for auto-connecting two portals from different rooms sharing the same space. + Set the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. @@ -29588,31 +29658,31 @@ This method controls whether the position between two cached points is interpola General purpose progress bar. Shows fill percentage from right to left. - - - - - - + + + + + + - + - + - + - + @@ -29624,12 +29694,6 @@ This method controls whether the position between two cached points is interpola General purpose proximity-detection node. - - - - - - @@ -29638,6 +29702,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -29650,9 +29720,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -29676,21 +29746,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + + + @@ -29700,15 +29764,21 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + - - - + + + @@ -29718,9 +29788,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -29736,6 +29806,38 @@ This method controls whether the position between two cached points is interpola Quaternion is a 4 dimensional vector that is used to represent a rotation. It mainly exists to perform SLERP (spherical-linear interpolation) between to rotations obtained by a Matrix3 cheaply. Adding quaternions also cheaply adds the rotations, however quaternions need to be often normalized, or else they suffer from precision issues. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -29816,48 +29918,16 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - @@ -29868,12 +29938,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -29882,6 +29946,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -29894,71 +29964,70 @@ This method controls whether the position between two cached points is interpola Range is a base class for [Control] nodes that change a floating point [i]value[/i] between a [i]minimum[/i] and a [i]maximum[/i], using [i]step[/i] and [i]page[/i], for example a [ScrollBar]. - + - Return the current value. + Return the maximum value. - + + Return the minimum value. - + - Return the minimum value. + Return the page size, if page is 0, paging is disabled. - + - Return the maximum value. + Return the stepping, if step is 0, stepping is disabled. - + - Return the stepping, if step is 0, stepping is disabled. + Return value mapped to 0 to 1 (unit) range. - + - Return the page size, if page is 0, paging is disabled. + Return the current value. - + - Return value mapped to 0 to 1 (unit) range. - - - + + + - - - + + + - - + + - Set minimum value, clamped range value to it if it's less. @@ -29967,11 +30036,11 @@ This method controls whether the position between two cached points is interpola - - + + - Set step value. If step is 0, stepping will be disabled. + Set minimum value, clamped range value to it if it's less. @@ -29981,34 +30050,35 @@ This method controls whether the position between two cached points is interpola Set page size. Page is mainly used for scrollbars or anything that controls text scrolling. - - + + - Set value mapped to 0 to 1 (unit) range, it will then be converted to the actual value within min and max. - - + + + Set step value. If step is 0, stepping will be disabled. - - - + + + + Set value mapped to 0 to 1 (unit) range, it will then be converted to the actual value within min and max. - - + + - - - + + + @@ -30024,6 +30094,11 @@ This method controls whether the position between two cached points is interpola + + + This signal is emitted when min, max, range or step change. + + @@ -30031,11 +30106,6 @@ This method controls whether the position between two cached points is interpola This signal is emitted when value changes. - - - This signal is emitted when min, max, range or step change. - - @@ -30048,6 +30118,15 @@ This method controls whether the position between two cached points is interpola Raw byte array. Contains bytes. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -30092,15 +30171,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -30111,21 +30181,19 @@ This method controls whether the position between two cached points is interpola - - + + - - - + + + - - - + @@ -30135,12 +30203,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -30153,33 +30215,39 @@ This method controls whether the position between two cached points is interpola - + - + - - - + + + - - - + + + - - - + + + + + + + + + @@ -30189,31 +30257,33 @@ This method controls whether the position between two cached points is interpola - + + + - - + + - - - + + + - + - - - + + + @@ -30229,25 +30299,22 @@ This method controls whether the position between two cached points is interpola A RayCast2D represents a line from its origin to its destination position [code]cast_to[/code], it is used to query the 2D space in order to find the closest object intersecting with the ray. - - + + - Enables the RayCast2D. Only enabled raycasts will be able to query the space and report collisions. + Adds a collision exception so the ray does not report collisions with the specified [code]node[/code]. - - - + + + - Returns whether this raycast is enabled or not - - - + - Sets the ray destination point, so that the ray will test from the ray's origin to [code]local_point[/code] + Removes all collision exception for this ray. @@ -30257,13 +30324,6 @@ This method controls whether the position between two cached points is interpola Return the destination point of this ray object - - - - - Return whether the closest object the ray is pointing to is colliding with the vector (considering the vector length). - - @@ -30278,6 +30338,13 @@ This method controls whether the position between two cached points is interpola Returns the collision shape of the closest object the ray is pointing to. + + + + + Returns the normal of the intersecting object shape face containing the collision point. + + @@ -30285,30 +30352,31 @@ This method controls whether the position between two cached points is interpola Returns the collision point in which the ray intersects the closest object. - - + + - Returns the normal of the intersecting object shape face containing the collision point. + Returns the layer mask for this ray. - - - + + + - - - + + + - Adds a collision exception so the ray does not report collisions with the specified [code]node[/code]. + Return whether the closest object the ray is pointing to is colliding with the vector (considering the vector length). - - - + + + + Returns whether this raycast is enabled or not @@ -30318,33 +30386,35 @@ This method controls whether the position between two cached points is interpola Removes a collision exception so the ray does report collisions with the specified [code]node[/code]. - + + + - Removes all collision exception for this ray. - - + + + Sets the ray destination point, so that the ray will test from the ray's origin to [code]local_point[/code] - - - + + + - Returns the layer mask for this ray. + Enables the RayCast2D. Only enabled raycasts will be able to query the space and report collisions. - + - - - + + + @@ -30358,18 +30428,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -30382,13 +30452,6 @@ This method controls whether the position between two cached points is interpola Ray 2D shape resource for physics. A ray is not really a collision body, instead it tries to separate itself from whatever is touching its far endpoint. It's often useful for characters. - - - - - Set the length of the ray. - - @@ -30396,6 +30459,13 @@ This method controls whether the position between two cached points is interpola Return the length of the ray. + + + + + Set the length of the ray. + + @@ -30408,6 +30478,15 @@ This method controls whether the position between two cached points is interpola Real Array. Array of floating point values. Can only contain floats. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -30438,15 +30517,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -30459,6 +30529,32 @@ This method controls whether the position between two cached points is interpola Rect2 provides an 2D Axis-Aligned Bounding Box. It consists of a position, a size, and several utility functions. It is typically used for fast overlap tests. + + + + + + + + + Construct a [Rect2] by position and size. + + + + + + + + + + + + + + + Construct a [Rect2] by x, y, width and height. + + @@ -30536,43 +30632,17 @@ This method controls whether the position between two cached points is interpola Combine this [Rect2] with another, a larger one is returned that contains both. - - - - - - - - - Construct a [Rect2] by position and size. - - - - - - - - - - - - - - - Construct a [Rect2] by x, y, width and height. - - + + Ending corner. + Position (starting corner). Size from position to end. - - Ending corner. - @@ -30585,13 +30655,6 @@ This method controls whether the position between two cached points is interpola Rectangle Shape for 2D Physics. This shape is useful for modeling box-like 2D objects. - - - - - Set the half extents, the actual width and height of this shape is twice the half extents. - - @@ -30599,6 +30662,13 @@ This method controls whether the position between two cached points is interpola Return the half extents, the actual width and height of this shape is twice the half extents. + + + + + Set the half extents, the actual width and height of this shape is twice the half extents. + + @@ -30674,6 +30744,11 @@ This method controls whether the position between two cached points is interpola Word boundaries [code]\b[/code], [code]\B[/code] + + + This method resets the state of the object, as it was freshly created. Namely, it unassigns the regular expression of this object, and forgets all captures made by the last [method find]. + + @@ -30698,16 +30773,13 @@ This method controls whether the position between two cached points is interpola This method tries to find the pattern within the string, and returns the position where it was found. It also stores any capturing group (see [method get_capture]) for further retrieval. - - - This method resets the state of the object, as it was freshly created. Namely, it unassigns the regular expression of this object, and forgets all captures made by the last [method find]. - - - - + + + + - Returns whether this object has a valid regular expression assigned. + Returns a captured group. A captured group is the part of a string that matches a part of the pattern delimited by parentheses (unless they are non-capturing parentheses [i](?:)[/i]). @@ -30717,15 +30789,6 @@ This method controls whether the position between two cached points is interpola Returns the number of capturing groups. A captured group is the part of a string that matches a part of the pattern delimited by parentheses (unless they are non-capturing parentheses [i](?:)[/i]). - - - - - - - Returns a captured group. A captured group is the part of a string that matches a part of the pattern delimited by parentheses (unless they are non-capturing parentheses [i](?:)[/i]). - - @@ -30741,6 +30804,13 @@ This method controls whether the position between two cached points is interpola Return a list of all the captures made by the regular expression. + + + + + Returns whether this object has a valid regular expression assigned. + + @@ -30751,18 +30821,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -30785,39 +30855,32 @@ This method controls whether the position between two cached points is interpola Resource is the base class for all resource types. Resources are primarily data containers. They are reference counted and freed when no longer in use. They are also loaded only once from disk, and further attempts to load the resource will return the same reference (all this in contrast to a [Node], which is not reference counted and can be instanced from disk as many times as desired). Resources can be saved externally on disk or bundled into another object, such as a [Node] or another resource. - - + + + + - Set the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. Fails if another [Resource] already has path "path". - - - + + + - Set the path of the resource. Differs from set_path(), if another [Resource] exists with "path" it over-takes it, instead of failing. - + - Return the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. - - - - - - - Set the name of the resources, any name is valid (it doesn't have to be unique). Name is for descriptive purposes only. + Return the name of the resources, any name is valid (it doesn't have to be unique). Name is for descriptive purposes only. - + - Return the name of the resources, any name is valid (it doesn't have to be unique). Name is for descriptive purposes only. + Return the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. @@ -30833,18 +30896,25 @@ This method controls whether the position between two cached points is interpola - - - + + + + Set the name of the resources, any name is valid (it doesn't have to be unique). Name is for descriptive purposes only. - - - - + + + + + Set the path of the resource. This is useful mainly for editors when saving/loading, and shouldn't be changed by anything else. Fails if another [Resource] already has path "path". + + + + + Set the path of the resource. Differs from set_path(), if another [Resource] exists with "path" it over-takes it, instead of failing. @@ -30863,8 +30933,10 @@ This method controls whether the position between two cached points is interpola - - + + + + @@ -30875,19 +30947,21 @@ This method controls whether the position between two cached points is interpola - - - - + + - - + + + + + + + + - - @@ -30899,11 +30973,11 @@ This method controls whether the position between two cached points is interpola - + + + - - @@ -30913,9 +30987,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -30927,15 +31001,11 @@ This method controls whether the position between two cached points is interpola - - + + + + - - - - - - @@ -30958,31 +31028,31 @@ This method controls whether the position between two cached points is interpola Return the loaded resource (only if loaded). Otherwise, returns null. - + - Poll the load. If OK is returned, this means poll will have to be called again. If ERR_EOF is returned, them the load has finished and the resource can be obtained by calling [method get_resource]. + Return the load stage. The total amount of stages can be queried with [method get_stage_count] - + + Return the total amount of stages (calls to [method poll]) needed to completely load this resource. - + - Return the load stage. The total amount of stages can be queried with [method get_stage_count] + Poll the load. If OK is returned, this means poll will have to be called again. If ERR_EOF is returned, them the load has finished and the resource can be obtained by calling [method get_resource]. - + - Return the total amount of stages (calls to [method poll]) needed to completely load this resource. @@ -30997,15 +31067,29 @@ This method controls whether the position between two cached points is interpola Resource Loader. This is a static object accessible as [ResourceLoader]. GDScript has a simplified load() function, though. - - + + - + + + + + + + + + + Return the list of recognized extensions for a resource type. + + + + + + - Load a resource interactively, the returned object allows to load with high granularity. @@ -31028,13 +31112,15 @@ This method controls whether the position between two cached points is interpola - - + + - + + + - Return the list of recognized extensions for a resource type. + Load a resource interactively, the returned object allows to load with high granularity. @@ -31044,22 +31130,6 @@ This method controls whether the position between two cached points is interpola Change the behavior on missing sub-resources. Default is to abort load. - - - - - - - - - - - - - - - - @@ -31081,20 +31151,20 @@ This method controls whether the position between two cached points is interpola Add a resource to the preloader. Set the text-id that will be used to identify it (retrieve it/erase it/etc). - + + + - Remove a resource from the preloader by text id. + Return the resource given a text-id. - - - - - + + + - Rename a resource inside the preloader, from a text-id to a new text-id. + Return the list of resources inside the preloader. @@ -31106,20 +31176,20 @@ This method controls whether the position between two cached points is interpola Return true if the preloader has a given resource. - - - + - Return the resource given a text-id. + Remove a resource from the preloader by text id. - - - + + + + + - Return the list of resources inside the preloader. + Rename a resource inside the preloader, from a text-id to a new text-id. @@ -31134,6 +31204,15 @@ This method controls whether the position between two cached points is interpola Resource Saving Interface. This interface is used for saving resources to disk. + + + + + + + Return the list of extensions available for saving a resource of a given type. + + @@ -31147,29 +31226,20 @@ This method controls whether the position between two cached points is interpola Save a resource to disk, to a given path. - - - - - - - Return the list of extensions available for saving a resource of a given type. - - + + + + - - - - @@ -31180,207 +31250,207 @@ This method controls whether the position between two cached points is interpola Label that displays rich text. Rich text can contain custom text, fonts, images and some basic formatting. It also adapts itself to given width/heights. - - + + - - + + - + + + + + - - - + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - + + + - - - + + + - - - - - - - + + + - + + + + Return true if selecting the text inside this richtext is allowed. - + + + - + - - + + + + - - - + - - + + - - - + - - + + - - - + + + - - - + + + - - + + - - + + - - - + + + - - - + - Set to true if selecting the text inside this richtext is allowed. - - - + + + - Return true if selecting the text inside this richtext is allowed. - - - - + + - - - - + + - - + + - - - + + + - - + + + Set to true if selecting the text inside this richtext is allowed. - - - + + + - - - + + + + + + + @@ -31390,9 +31460,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -31414,16 +31484,12 @@ This method controls whether the position between two cached points is interpola - - - - - - + + @@ -31440,33 +31506,37 @@ This method controls whether the position between two cached points is interpola - + + + + + - - - + - + - + - - - - - + + + - + + + + + @@ -31485,130 +31555,139 @@ This method controls whether the position between two cached points is interpola Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default it works in addition to the usual physics behavior, but [method set_use_custom_integrator] allows you to disable the default behavior and do fully custom force integration for a body. - - + + + + - Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. + Apply a positioned impulse (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied once, and only once. Both the impulse and the offset from the body origin are in global coordinates. - - + + - Return the current body mode, see [method set_mode]. + Return the current body angular damp. Default is -1. - - - + + + - Set the body mass. + Return the current body angular velocity. - + + + + + Return the current axis lock of the body. One of AXIS_LOCK_* enum. + + + - Return the current body mass. + Return the current body bounciness. - - - + + + - Set the body weight given standard earth-weight (gravity 9.8). + Return a list of the bodies colliding with this one. - + - Return the current body weight, given standard earth-weight (gravity 9.8). + Return the current body friction, from 0 (frictionless) to 1 (max friction). - - - + + + - Set the body friction, from 0 (frictionless) to 1 (max friction). + Return the current body gravity scale. - + - Return the current body friction, from 0 (frictionless) to 1 (max friction). + Return the current body linear damp. Default is -1. - - - + + + - Set the body bounciness, from 0 (no bounciness) to 1 (max bounciness). + Return the current body linear velocity. - + - Return the current body bounciness. + Return the current body mass. - - - + + + - Set the body linear velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. + Return the maximum contacts that can be reported. See [method set_max_contacts_reported]. - - + + - Return the current body linear velocity. + Return the current body mode, see [method set_mode]. - - - + + + - Set the body angular velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. + Return the current body weight, given standard earth-weight (gravity 9.8). - - + + - Return the current body angular velocity. + Return whether the body has the ability to fall asleep when not moving. See [method set_can_sleep]. - - - + + + - Set the gravity factor. This factor multiplies gravity intensity just for this body. + Return whether contact monitoring is enabled. - - + + - Return the current body gravity scale. + Return whether the body is sleeping. - - - + + + - Set the linear damp for this body. Default of -1, cannot be less than -1. If this value is different from -1, any linear damp derived from the world or areas will be overridden. + Return whether this body is using continuous collision detection. - - + + - Return the current body linear damp. Default is -1. + Return whether the body is using a custom integrator. @@ -31618,39 +31697,40 @@ This method controls whether the position between two cached points is interpola Set the angular damp for this body. Default of -1, cannot be less than -1. If this value is different from -1, any angular damp derived from the world or areas will be overridden. - - - + + + - Return the current body angular damp. Default is -1. + Set the body angular velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. - - + + - Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. + Set the axis lock of the body, from the AXIS_LOCK_* enum. Axis lock stops the body from moving along the specified axis(X/Y/Z) and rotating along the other two axes. - - - + + + - Return the maximum contacts that can be reported. See [method set_max_contacts_reported]. + Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. - - + + - Pass true to disable the internal force integration (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. + Set the body bounciness, from 0 (no bounciness) to 1 (max bounciness). - - - + + + - Return whether the body is using a custom integrator. + Set the body ability to fall asleep when not moving. This saves an enormous amount of processor time when there are plenty of rigid bodies (non static) in a scene. + Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] / [method set_applied_force] wakes them up. Until then, they behave like a static body. @@ -31660,92 +31740,82 @@ This method controls whether the position between two cached points is interpola Enable contact monitoring. This allows the body to emit signals when it collides with another. - - - - - Return whether contact monitoring is enabled. - - - - + + - Set the continuous collision detection mode from the enum CCD_MODE_*. - Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. The first is more precise, and misses less impacts by small, fast-moving objects. The second is faster to compute, but can miss small, fast-moving objects. + Set the body friction, from 0 (frictionless) to 1 (max friction). - - - + + + - Return whether this body is using continuous collision detection. + Set the gravity factor. This factor multiplies gravity intensity just for this body. - - + + - Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. + Set the linear damp for this body. Default of -1, cannot be less than -1. If this value is different from -1, any linear damp derived from the world or areas will be overridden. - - - - + + - Apply a positioned impulse (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied once, and only once. Both the impulse and the offset from the body origin are in global coordinates. + Set the body linear velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. - - + + - Set whether a body is sleeping or not. Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] wakes them up. Until then, they behave like a static body. + Set the body mass. - - - + + + - Return whether the body is sleeping. + Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. - - + + - Set the body ability to fall asleep when not moving. This saves an enormous amount of processor time when there are plenty of rigid bodies (non static) in a scene. - Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] / [method set_applied_force] wakes them up. Until then, they behave like a static body. + Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. - - - + + + - Return whether the body has the ability to fall asleep when not moving. See [method set_can_sleep]. + Set whether a body is sleeping or not. Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] wakes them up. Until then, they behave like a static body. - - + + - Set the axis lock of the body, from the AXIS_LOCK_* enum. Axis lock stops the body from moving along the specified axis(X/Y/Z) and rotating along the other two axes. + Set the continuous collision detection mode from the enum CCD_MODE_*. + Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. The first is more precise, and misses less impacts by small, fast-moving objects. The second is faster to compute, but can miss small, fast-moving objects. - - - + + + - Return the current axis lock of the body. One of AXIS_LOCK_* enum. + Pass true to disable the internal force integration (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. - - - + + + - Return a list of the bodies colliding with this one. + Set the body weight given standard earth-weight (gravity 9.8). @@ -31799,18 +31869,18 @@ This method controls whether the position between two cached points is interpola - - Static mode. The body behaves like a [StaticBody], and can only move by user code. - - - Kinematic body. The body behaves like a [KinematicBody], and can only move by user code. - Rigid body. This is the "natural" state of a rigid body. It is affected by forces, and can move, rotate, and be affected by user code. + + Static mode. The body behaves like a [StaticBody], and can only move by user code. + Character body. This behaves like a rigid body, but can not rotate. + + Kinematic body. The body behaves like a [KinematicBody], and can only move by user code. + @@ -31830,67 +31900,71 @@ This method controls whether the position between two cached points is interpola Called during physics processing, allowing you to read and safely modify the simulation state for the object. By default it works in addition to the usual physics behavior, but [method set_use_custom_integrator] allows you to disable the default behavior and do fully custom force integration for a body. - - + + + + - Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. - - - - - - - Return the current body mode, see [method set_mode]. + Add a positioned force to the applied force and torque. As with [method apply_impulse], both the force and the offset from the body origin are in global coordinates. - - + + + + - Set the body mass. + Apply a positioned impulse (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied once, and only once. Both the impulse and the offset from the body origin are in global coordinates. - + - Return the body mass. + Return the angular damp for this body. - + - Return the body's moment of inertia. This is usually automatically computed from the mass and the shapes. Note that this doesn't seem to work in a [code]_ready[/code] function: it apparently has not been auto-computed yet. + Return the body angular velocity. This changes by physics granularity. See [method set_angular_velocity]. - - - + + + - Set the body's moment of inertia. This is like mass, but for rotation: it determines how much torque it takes to rotate the body. The moment of inertia is usually computed automatically from the mass and the shapes, but this function allows you to set a custom value. Set 0 (or negative) inertia to return to automatically computing it. + Return the applied force vector. - - - + + + - Set the body weight given standard earth-weight (gravity 9.8). Not really useful for 2D since most measures for this node are in pixels. + Return the torque which is being applied to this body. - + - Return the body weight given standard earth-weight (gravity 9.8). + Return the body bounciness. - - - + + + - Set the body friction, from 0 (frictionless) to 1 (full friction). + Return a list of the bodies colliding with this one. + + + + + + + Return whether this body is using continuous collision detection. @@ -31900,74 +31974,95 @@ This method controls whether the position between two cached points is interpola Return the body friction. - - - + + + - Set the body bounciness, from 0 (no bounce) to 1 (full bounce). + Return the gravity factor. - + - Return the body bounciness. + Return the body's moment of inertia. This is usually automatically computed from the mass and the shapes. Note that this doesn't seem to work in a [code]_ready[/code] function: it apparently has not been auto-computed yet. - - - + + + - Set the gravity factor. This factor multiplies gravity intensity just for this body. + Return the linear damp for this body. - + + + + + Return the body linear velocity. This changes by physics granularity. See [method set_linear_velocity]. + + + - Return the gravity factor. + Return the body mass. - - - + + + - Set the linear damp for this body. If this value is different from -1, any linear damp derived from the world or areas will be overridden. + Return the maximum contacts that can be reported. See [method set_max_contacts_reported]. - + + + + + Return the current body mode, see [method set_mode]. + + + - Return the linear damp for this body. + Return the body weight given standard earth-weight (gravity 9.8). - - - + + + - Set the angular damp for this body. If this value is different from -1, any angular damp derived from the world or areas will be overridden. + Return true if the body has the ability to fall asleep when not moving. See [method set_can_sleep]. - - + + - Return the angular damp for this body. + Return whether contact monitoring is enabled. - - - + + + - Set the body linear velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. + Return whether the body is sleeping. - - + + - Return the body linear velocity. This changes by physics granularity. See [method set_linear_velocity]. + Return true if the body is not doing any built-in force integration. + + + + + + + Set the angular damp for this body. If this value is different from -1, any angular damp derived from the world or areas will be overridden. @@ -31977,39 +32072,40 @@ This method controls whether the position between two cached points is interpola Set the body angular velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. - - - + + + - Return the body angular velocity. This changes by physics granularity. See [method set_angular_velocity]. + Set the applied force vector. This is the equivalent of pushing a box over the ground: the force applied is applied constantly. - - + + - Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. + Set a constant torque which will be applied to this body. - - - + + + - Return the maximum contacts that can be reported. See [method set_max_contacts_reported]. + Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. - - + + - Pass true to disable the internal force integration (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. + Set the body bounciness, from 0 (no bounce) to 1 (full bounce). - - - + + + - Return true if the body is not doing any built-in force integration. + Set the body ability to fall asleep when not moving. This saves an enormous amount of processor time when there are plenty of rigid bodies (non static) in a scene. + Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] / [method set_applied_force] wakes them up. Until then, they behave like a static body. @@ -32019,13 +32115,6 @@ This method controls whether the position between two cached points is interpola Enable contact monitoring. This allows the body to emit signals when it collides with another. - - - - - Return whether contact monitoring is enabled. - - @@ -32034,64 +32123,60 @@ This method controls whether the position between two cached points is interpola Continuous collision detection tries to predict where a moving body will collide, instead of moving it and correcting its movement if it collided. The first is more precise, and misses less impacts by small, fast-moving objects. The second is faster to compute, but can miss small, fast-moving objects. - - - + + + - Return whether this body is using continuous collision detection. + Set the body friction, from 0 (frictionless) to 1 (full friction). - - + + - Set an axis velocity. The velocity in the given vector axis will be set as the given vector length. This is useful for jumping behavior. + Set the gravity factor. This factor multiplies gravity intensity just for this body. - - - - + + - Apply a positioned impulse (which will be affected by the body mass and shape). This is the equivalent of hitting a billiard ball with a cue: a force that is applied once, and only once. Both the impulse and the offset from the body origin are in global coordinates. + Set the body's moment of inertia. This is like mass, but for rotation: it determines how much torque it takes to rotate the body. The moment of inertia is usually computed automatically from the mass and the shapes, but this function allows you to set a custom value. Set 0 (or negative) inertia to return to automatically computing it. - - + + - Set the applied force vector. This is the equivalent of pushing a box over the ground: the force applied is applied constantly. + Set the linear damp for this body. If this value is different from -1, any linear damp derived from the world or areas will be overridden. - - - + + + - Return the applied force vector. + Set the body linear velocity. Can be used sporadically, but [b]DON'T SET THIS IN EVERY FRAME[/b], because physics may be running in another thread and definitely runs at a different granularity. Use [method _integrate_forces] as your process loop if you want to have precise control of the body state. - - + + - Set a constant torque which will be applied to this body. + Set the body mass. - - - + + + - Return the torque which is being applied to this body. + Set the maximum contacts to report. Bodies can keep a log of the contacts with other bodies, this is enabled by setting the maximum amount of contacts reported to a number greater than 0. - - - - + + - Add a positioned force to the applied force and torque. As with [method apply_impulse], both the force and the offset from the body origin are in global coordinates. + Set the body mode, from the MODE_* enum. This allows to change to a static body or a character body. @@ -32101,26 +32186,18 @@ This method controls whether the position between two cached points is interpola Set whether a body is sleeping or not. Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] / [method set_applied_force] wakes them up. Until then, they behave like a static body. - - - - - Return whether the body is sleeping. - - - - + + - Set the body ability to fall asleep when not moving. This saves an enormous amount of processor time when there are plenty of rigid bodies (non static) in a scene. - Sleeping bodies are not affected by forces until a collision or an [method apply_impulse] / [method set_applied_force] wakes them up. Until then, they behave like a static body. + Pass true to disable the internal force integration (like gravity or air friction) for this body. Other than collision response, the body will only move as determined by the [method _integrate_forces] function, if defined. - - - + + + - Return true if the body has the ability to fall asleep when not moving. See [method set_can_sleep]. + Set the body weight given standard earth-weight (gravity 9.8). Not really useful for 2D since most measures for this node are in pixels. @@ -32136,13 +32213,6 @@ This method controls whether the position between two cached points is interpola Return whether the body would collide, if it tried to move in the given vector. This method allows two extra parameters: A margin, which increases slightly the size of the shapes involved in the collision detection, and an object of type [Physics2DTestMotionResult], which will store additional information about the collision (should there be one). - - - - - Return a list of the bodies colliding with this one. - - @@ -32194,18 +32264,6 @@ This method controls whether the position between two cached points is interpola - - Static mode. The body behaves like a [StaticBody2D], and can only move by user code. - - - Kinematic body. The body behaves like a [KinematicBody2D], and can only move by user code. - - - Rigid body. This is the "natural" state of a rigid body. It is affected by forces, and can move, rotate, and be affected by user code. - - - Character body. This behaves like a rigid body, but can not rotate. - Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. @@ -32215,6 +32273,18 @@ This method controls whether the position between two cached points is interpola Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. + + Rigid body. This is the "natural" state of a rigid body. It is affected by forces, and can move, rotate, and be affected by user code. + + + Static mode. The body behaves like a [StaticBody2D], and can only move by user code. + + + Character body. This behaves like a rigid body, but can not rotate. + + + Kinematic body. The body behaves like a [KinematicBody2D], and can only move by user code. + @@ -32225,9 +32295,7 @@ This method controls whether the position between two cached points is interpola Room contains the data to define the bounds of a scene (using a BSP Tree). It is instanced by a [VisualInstance] node to create rooms. See that class documentation for more information about rooms. - - - + @@ -32237,19 +32305,21 @@ This method controls whether the position between two cached points is interpola - + + + - - + + - - - + + + @@ -32263,24 +32333,12 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - @@ -32295,6 +32353,18 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + @@ -32319,18 +32389,18 @@ This method controls whether the position between two cached points is interpola Calling this method overrides previously existing data. Stereo samples are interleaved pairs of left and right points (in that order), but count as one sample for length purposes. - - + + - Return the sample format. + Return sample data as little endian. - - + + - Return whether the current sample was created as stereo. + Return the sample format. @@ -32340,29 +32410,25 @@ This method controls whether the position between two cached points is interpola Return the sample length in samples. Stereo samples count as one, even if they are made of a left and a right sample. - - - + + + - Set sample data. Data must be little endian, no matter the host platform, and exactly as long as to fit all samples. The length of this array can be calculated as follows: - Get the sample length ([method get_length]). - If the sample format is FORMAT_PCM16, multiply it by 2. - If the sample format is FORMAT_IMA_ADPCM, divide it by 2 (rounding any fraction up), then add 4. - If the sample is stereo ([method is_stereo]), multiply it by 2. + Return the loop begin position. - - + + - Return sample data as little endian. + Return the loop end position. - - - + + + - Set the mix rate for the sample (expected playback frequency). + Return the loop format. @@ -32372,18 +32438,22 @@ This method controls whether the position between two cached points is interpola Return the mix rate for the sample. - - - + + + - Set the loop format (use LOOP_* constants as argument). + Return whether the current sample was created as stereo. - - - + + + - Return the loop format. + Set sample data. Data must be little endian, no matter the host platform, and exactly as long as to fit all samples. The length of this array can be calculated as follows: + Get the sample length ([method get_length]). + If the sample format is FORMAT_PCM16, multiply it by 2. + If the sample format is FORMAT_IMA_ADPCM, divide it by 2 (rounding any fraction up), then add 4. + If the sample is stereo ([method is_stereo]), multiply it by 2. @@ -32393,13 +32463,6 @@ This method controls whether the position between two cached points is interpola Set the loop begin position. It must be a valid frame and less than the loop end position. - - - - - Return the loop begin position. - - @@ -32407,11 +32470,18 @@ This method controls whether the position between two cached points is interpola Set the loop end position. It must be a valid frame and greater than the loop begin position. - - - + + + - Return the loop end position. + Set the loop format (use LOOP_* constants as argument). + + + + + + + Set the mix rate for the sample (expected playback frequency). @@ -32478,13 +32548,13 @@ This method controls whether the position between two cached points is interpola Remove the sample matching the given text ID. - + + + - - - Set the volume (in dB) for the given sample. + Return the pitch scale for the given sample. @@ -32505,13 +32575,13 @@ This method controls whether the position between two cached points is interpola Set the pitch scale for the given sample. - - - + + + - Return the pitch scale for the given sample. + Set the volume (in dB) for the given sample. @@ -32526,181 +32596,149 @@ This method controls whether the position between two cached points is interpola SamplePlayer is a [Node] meant for simple sample playback. A library of samples is loaded and played back "as is", without positioning or anything. - - + + + + - Set the sample library for the player. + Return the current chorus send level for a given voice. - - + + - Return the sample library used by the player. + Return the default chorus send level of the player. - - - + + + - Set the polyphony of the player (maximum amount of simultaneous voices). + Return the default filter cutoff frequency of the player. - - + + - Return the polyphony of the player. + Return the default filter gain of the player. - - - - - - - + + + - Play a sample referenced by its name. - Optionally, the playback can be made "unique" to force stopping all other samples currently played. The voices allocated for playback will then be returned. + Return the default filter resonance of the player. - - - + + + - Stop a given voice. + Return the default filter type in use (see FILTER_* constants) for the player. - + + + - Stop all playing voices. + Return the default panning of the player. - - - - - + + + - Set the mix rate (in Hz) of a given voice. + Return the default pan depth of the player. - - - - - + + + - Set the pitch scale of a given voice. A ratio of 1.0 is the normal scale. + Return the default pan height of the player. - - - - - + + + - Set the volume of a given voice using a linear scale. - The "volume" argument should be a positive factor ranging from 0.0 (mute) up to 16.0 (i.e. 24 dB). - A factor of 1.0 means that the voice will be played at normal system volume. Factors above 1.0 might be limited by the platform's audio output. + Return the default pitch scale of the player. - - - - - + + + - Set the volume of a given voice in dB. - The "dB" argument can range from -80 to 24 dB, 0 dB being the maximum volume. Every 6 dB (resp. -6 dB), the volume is increased (resp. reduced) by half. + Return the default reverberation send level of the player. - - - - - - - - - + + + - Set the panning of a voice. Panning goes from -1.0 (left) to +1.0 (right). - Optionally, for hardware than support 3D sound, one can also set depth and height (also in range -1.0 to +1.0). + Return the default reverberation room type of the player (see REVERB_* enum). - - - - - - - - - - - + + + - Set the filter for a given voice, using the given type (see FILTER_* constants), cutoff frequency (from 20 to 16,384 Hz) and resonance (from 0 to 4.0). - Optionally, a gain can also be given (from 0 to 2.0). + Return the default volume (on a linear scale) of the player. - - - - - + + + - Set the chorus send level of a voice (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. + Return the default volume (in dB) of the player. - + + + - - - - - Set the reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) of a voice. + Return the current filter cutoff frequency for a given voice. - - + + - Return the current mix rate for a given voice. + Return the current filter gain for a given voice. - + - Return the current pitch scale for a given voice. + Return the current filter resonance for a given voice. - - + + - Return the current volume (on a linear scale) for a given voice. + Return the current filter type in use (see FILTER_* constants) for a given voice. - - + + - Return the current volume (in dB) for a given voice. + Return the current mix rate for a given voice. @@ -32730,103 +32768,107 @@ This method controls whether the position between two cached points is interpola Return the current pan height for a given voice. - - + + - Return the current filter type in use (see FILTER_* constants) for a given voice. + Return the current pitch scale for a given voice. - - + + - - - Return the current filter cutoff frequency for a given voice. + Return the polyphony of the player. - + - Return the current filter resonance for a given voice. + Return the current reverberation send level for a given voice. - - + + - Return the current filter gain for a given voice. + Return the current reverberation room type for a given voice (see REVERB_* enum). - - + + - - - Return the current chorus send level for a given voice. + Return the sample library used by the player. - - + + - Return the current reverberation room type for a given voice (see REVERB_* enum). + Return the current volume (on a linear scale) for a given voice. - + - Return the current reverberation send level for a given voice. + Return the current volume (in dB) for a given voice. - - - + + + - Set the default pitch scale of the player. A ratio of 1.0 is the normal scale. + Return whether the player is currently active. - - + + + + - Set the default volume of the player using a linear scale. - The "volume" argument should be a positive factor ranging from 0.0 (mute) up to 16.0 (i.e. 24 dB). - A factor of 1.0 means that the voice will be played at normal system volume. Factors above 1.0 might be limited by the platform's audio output. + Return whether the given voice is currently active. - - + + + + + + - Set the default volume of the player in dB. - The "dB" argument can range from -80 to 24 dB, 0 dB being the maximum volume. Every 6 dB (resp. -6 dB), the volume is increased (resp. reduced) by half. + Play a sample referenced by its name. + Optionally, the playback can be made "unique" to force stopping all other samples currently played. The voices allocated for playback will then be returned. - - + + - + - + + Set the chorus send level of a voice (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. + + + + - Set the default panning of the player. Panning goes from -1.0 (left) to +1.0 (right). - Optionally, for hardware than support 3D sound, one can also set depth and height (also in range -1.0 to +1.0). + Set the default chorus send level of the player (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. @@ -32843,11 +32885,23 @@ This method controls whether the position between two cached points is interpola Optionally, a gain can also be given (from 0 to 2.0). - - + + + + + + - Set the default chorus send level of the player (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. + Set the default panning of the player. Panning goes from -1.0 (left) to +1.0 (right). + Optionally, for hardware than support 3D sound, one can also set depth and height (also in range -1.0 to +1.0). + + + + + + + Set the default pitch scale of the player. A ratio of 1.0 is the normal scale. @@ -32859,111 +32913,127 @@ This method controls whether the position between two cached points is interpola Set the default reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) of the player. - - - - - Return the default pitch scale of the player. - - - - - - - Return the default volume (on a linear scale) of the player. - - - - - + + + - Return the default volume (in dB) of the player. + Set the default volume of the player using a linear scale. + The "volume" argument should be a positive factor ranging from 0.0 (mute) up to 16.0 (i.e. 24 dB). + A factor of 1.0 means that the voice will be played at normal system volume. Factors above 1.0 might be limited by the platform's audio output. - - - + + + - Return the default panning of the player. + Set the default volume of the player in dB. + The "dB" argument can range from -80 to 24 dB, 0 dB being the maximum volume. Every 6 dB (resp. -6 dB), the volume is increased (resp. reduced) by half. - - - + + + + + + + + + + + - Return the default pan depth of the player. + Set the filter for a given voice, using the given type (see FILTER_* constants), cutoff frequency (from 20 to 16,384 Hz) and resonance (from 0 to 4.0). + Optionally, a gain can also be given (from 0 to 2.0). - - - + + + + + - Return the default pan height of the player. + Set the mix rate (in Hz) of a given voice. - - - + + + + + + + + + - Return the default filter type in use (see FILTER_* constants) for the player. + Set the panning of a voice. Panning goes from -1.0 (left) to +1.0 (right). + Optionally, for hardware than support 3D sound, one can also set depth and height (also in range -1.0 to +1.0). - - - + + + + + - Return the default filter cutoff frequency of the player. + Set the pitch scale of a given voice. A ratio of 1.0 is the normal scale. - - - + + + - Return the default filter resonance of the player. + Set the polyphony of the player (maximum amount of simultaneous voices). - - - + + + + + + + - Return the default filter gain of the player. + Set the reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) of a voice. - - - + + + - Return the default chorus send level of the player. + Set the sample library for the player. - - - + + + + + - Return the default reverberation room type of the player (see REVERB_* enum). + Set the volume of a given voice using a linear scale. + The "volume" argument should be a positive factor ranging from 0.0 (mute) up to 16.0 (i.e. 24 dB). + A factor of 1.0 means that the voice will be played at normal system volume. Factors above 1.0 might be limited by the platform's audio output. - - - + + + + + - Return the default reverberation send level of the player. + Set the volume of a given voice in dB. + The "dB" argument can range from -80 to 24 dB, 0 dB being the maximum volume. Every 6 dB (resp. -6 dB), the volume is increased (resp. reduced) by half. - - - + + + - Return whether the player is currently active. + Stop a given voice. - - - - - + - Return whether the given voice is currently active. + Stop all playing voices. @@ -32995,6 +33065,9 @@ This method controls whether the position between two cached points is interpola High-shelf filter is used for voice. + + Value returned if the voice ID is invalid. + Small reverberation room (house room). @@ -33007,9 +33080,6 @@ This method controls whether the position between two cached points is interpola Huge reverberation room (cathedral, warehouse). - - Value returned if the voice ID is invalid. - @@ -33020,32 +33090,34 @@ This method controls whether the position between two cached points is interpola Sample player for positional 2D Sound. Plays sound samples positionally, left and right depending on the distance/place on the screen. - - - + + + - Set the sample library for the player. + Return the polyphony of the player. - - + + - Return the sample library used by the player. + Return the amplitude used for random pitch scale variations. - - - + + + - Set the polyphony of the player (maximum amount of simultaneous voices). + Return the sample library used by the player. - - + + + + - Return the polyphony of the player. + Return whether a voice is still active or has stopped playing. @@ -33060,31 +33132,33 @@ This method controls whether the position between two cached points is interpola Return a voice ID which can be used to modify the voice parameters, or INVALID_VOICE if the voice or sample are invalid. - - - - + + - Change the pitch scale of a currently playing voice. + Set the polyphony of the player (maximum amount of simultaneous voices). - - - - + + - Change the volume scale (in dB) of a currently playing voice. + Set the amplitude for random pitch scale variations. If different from zero, the pitch scale will vary randomly around 1.0 in a range defined by val. + The actual pitch scale will be, with "variation" ranging from -val to val: + * variation > 0: 1.0 + variation + * variation < 0: 1.0/(1.0 - variation) - - - - + + - Return whether a voice is still active or has stopped playing. + Set the sample library for the player. + + + + + Stop all playing voices. @@ -33094,26 +33168,22 @@ This method controls whether the position between two cached points is interpola Stop a given voice. - - - Stop all playing voices. - - - - + + + + - Set the amplitude for random pitch scale variations. If different from zero, the pitch scale will vary randomly around 1.0 in a range defined by val. - The actual pitch scale will be, with "variation" ranging from -val to val: - * variation > 0: 1.0 + variation - * variation < 0: 1.0/(1.0 - variation) + Change the pitch scale of a currently playing voice. - - - + + + + + - Return the amplitude used for random pitch scale variations. + Change the volume scale (in dB) of a currently playing voice. @@ -33132,67 +33202,63 @@ This method controls whether the position between two cached points is interpola - - + + + + - - + + - - - - + + - - + + - - - - + + - - + + - - + + - - + + - - @@ -33204,80 +33270,84 @@ This method controls whether the position between two cached points is interpola - - + + - + - - - + + + - - - - + + + + - + + + - - + + - - + + + + - - - + + + - - + + - - + + @@ -33294,241 +33364,241 @@ This method controls whether the position between two cached points is interpola - - + + - + - - - - - + - + - + - + + + - - + + - + - - + + + + - - + + - - - - - + + + - - - + + + - - + + - - + + + + - - + + - - + + + + + + + + + + - - - + + + - - + + - - + + + + + + - - - + + + - + - + - - - + + + - + + + - - - - - - + + - - + + - - - - - - - - - - - - - - - - + + - - + + - - - + + + + + + + + + - - - - - + - - - - + + - - - + + + + + + + - - + + + + - + - - - + - - - - + + - + + + - + - + @@ -33542,18 +33612,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -33573,13 +33643,11 @@ This method controls whether the position between two cached points is interpola Return true if this script can be instance (ie not a library). - - + + - - - Return true if a given object uses an instance of this script. + Return the script source code (if available). @@ -33589,18 +33657,13 @@ This method controls whether the position between two cached points is interpola Return true if the script contains source code. - - + + - - Return the script source code (if available). - - - - + - Set the script source code. + Return true if a given object uses an instance of this script. @@ -33611,6 +33674,13 @@ This method controls whether the position between two cached points is interpola + + + + + Set the script source code. + + @@ -33623,18 +33693,18 @@ This method controls whether the position between two cached points is interpola Scrollbars are a [Range] based [Control], that display a draggable area (the size of the page). Horizontal ([HScrollBar]) and Vertical ([VScrollBar]) versions are available. - - - - - - + + + + + + @@ -33647,25 +33717,25 @@ This method controls whether the position between two cached points is interpola A ScrollContainer node with a [Control] child and scrollbar child ([HScrollbar], [VScrollBar], or both) will only draw the Control within the ScrollContainer area. Scrollbars will automatically be drawn at the right (for vertical) or bottom (for horizontal) and will enable dragging to move the viewable Control (and its children) within the ScrollContainer. Scrollbars will also automatically resize the grabber based on the minimum_size of the Control relative to the ScrollContainer. Works great with a [Panel] control. - - - + + + - Set allows horizontal scrool. + Return current horizontal scroll value. - - + + - Return true if horizontal scrool is allowed. + Return current vertical scroll value. - - - + + + - Set allows vertical scrool. + Return true if horizontal scrool is allowed. @@ -33675,32 +33745,32 @@ This method controls whether the position between two cached points is interpola Return true if vertical scrool is allowed. - - + + - Set horizontal scroll value. + Set allows horizontal scrool. - - - + + + - Return current horizontal scroll value. + Set allows vertical scrool. - + - Set vertical scroll value. + Set horizontal scroll value. - - - + + + - Return current vertical scroll value. + Set vertical scroll value. @@ -33715,32 +33785,32 @@ This method controls whether the position between two cached points is interpola Segment Shape for 2D Collision Detection, consists of two points, 'a' and 'b'. - - - + + + - Set the first point's position. + Return the first point's position. - + - Return the first point's position. + Return the second point's position. - - + + - Set the second point's position. + Set the first point's position. - - - + + + - Return the second point's position. + Set the second point's position. @@ -33755,18 +33825,18 @@ This method controls whether the position between two cached points is interpola A synchronization Semaphore. Element used in multi-threadding. Initialized to zero on creation. - + - Tries to wait for the [Semaphore], if it's value is zero, blocks until non-zero. + Lowers the [Semaphore], allowing one more thread in. - + - Lowers the [Semaphore], allowing one more thread in. + Tries to wait for the [Semaphore], if it's value is zero, blocks until non-zero. @@ -33793,64 +33863,64 @@ This method controls whether the position between two cached points is interpola To be changed, ignore. - - + + + + - - - - - - - - - - - + + + - + - - + + - + - - - - + + + + - - - - + + + + + + + + + + - - - - + + + + @@ -33871,17 +33941,15 @@ This method controls whether the position between two cached points is interpola - + - - - - - + + + @@ -33889,28 +33957,30 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + + + + + - - + + @@ -33919,48 +33989,54 @@ This method controls whether the position between two cached points is interpola - - - + + + + + - + + + - + - + - + + + - + + + - - - + - + - - + + @@ -33969,78 +34045,70 @@ This method controls whether the position between two cached points is interpola - + - + - - - + + + - + - + + + - - - + - + - - - - - + - + - + - - + + - - - + + + - - - - - - + + @@ -34049,118 +34117,122 @@ This method controls whether the position between two cached points is interpola - + - + - + - - + + - + + + + + + + - + - + - + - - + + - + - + + + - - - + - + - + - + - - - + - - - + - + + + - + - + - + - - + + - + - + - + - - + + @@ -34169,38 +34241,38 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - - + + @@ -34209,18 +34281,18 @@ This method controls whether the position between two cached points is interpola - + - + - - + + @@ -34229,12 +34301,12 @@ This method controls whether the position between two cached points is interpola - + - + @@ -34249,38 +34321,38 @@ This method controls whether the position between two cached points is interpola - + - + - - + + - + - + - + - + - - + + @@ -34289,18 +34361,18 @@ This method controls whether the position between two cached points is interpola - + - + - - + + @@ -34309,38 +34381,38 @@ This method controls whether the position between two cached points is interpola - + + + - - - + - - - + + + - + - + - + - - + + @@ -34349,18 +34421,18 @@ This method controls whether the position between two cached points is interpola - + - + - - + + @@ -34369,20 +34441,18 @@ This method controls whether the position between two cached points is interpola - + - - - + - - + + @@ -34391,113 +34461,113 @@ This method controls whether the position between two cached points is interpola - - - + + + - + + + - - - + - - - + - + + + - - + + - + - + + + + + - + - + - - + + - - - - - - - + - + - - - - - + - + - - + + + + - + + + + + - + + + - - - - - + + + @@ -34509,25 +34579,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - + - + - + - + - + @@ -34549,10 +34609,12 @@ This method controls whether the position between two cached points is interpola - + + + @@ -34569,6 +34631,8 @@ This method controls whether the position between two cached points is interpola + + @@ -34581,157 +34645,163 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -34741,31 +34811,31 @@ This method controls whether the position between two cached points is interpola - - - - - - - + + + - + + + + + - - - + + + @@ -34791,23 +34861,22 @@ This method controls whether the position between two cached points is interpola Base class for all 2D Shapes. All 2D shape types inherit from this. - - - - - Use a custom solver bias. No need to change this unless you really know what you are doing. - The solver bias is a factor controlling how much two objects "rebound" off each other, when colliding, to avoid them getting into each other because of numerical imprecision. - - - - + + + + + + + + - Return the custom solver bias. + Return whether this shape is colliding with another. + This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). - - + + @@ -34816,7 +34885,7 @@ This method controls whether the position between two cached points is interpola - Return whether this shape is colliding with another. + Return a list of the points where this shape touches another. If there are no collisions, the list is empty. This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). @@ -34838,20 +34907,6 @@ This method controls whether the position between two cached points is interpola This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test onto the other object ([code]shape_motion[/code]). - - - - - - - - - - - Return a list of the points where this shape touches another. If there are no collisions, the list is empty. - This method needs the transformation matrix for this shape ([code]local_xform[/code]), the shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/code]). - - @@ -34870,6 +34925,21 @@ This method controls whether the position between two cached points is interpola This method needs the transformation matrix for this shape ([code]local_xform[/code]), the movement to test on this shape ([code]local_motion[/code]), the shape to check collisions with ([code]with_shape[/code]), the transformation matrix of that shape ([code]shape_xform[/code]), and the movement to test onto the other object ([code]shape_motion[/code]). + + + + + Return the custom solver bias. + + + + + + + Use a custom solver bias. No need to change this unless you really know what you are doing. + The solver bias is a factor controlling how much two objects "rebound" off each other, when colliding, to avoid them getting into each other because of numerical imprecision. + + @@ -34880,9 +34950,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -34892,23 +34962,23 @@ This method controls whether the position between two cached points is interpola - + + + - + - - - - - + + + @@ -34931,6 +35001,20 @@ This method controls whether the position between two cached points is interpola Add a bone, with name "name". [method get_bone_count] will become the bone index. + + + + + + + Deprecated soon. + + + + + Clear all the bones in this skeleton. + + @@ -34940,44 +35024,54 @@ This method controls whether the position between two cached points is interpola Return the bone index that matches "name" as its name. - - + + + + + Return the amount of bones in the skeleton. + + + + - Return the name of the bone at index "index" - - + + - Return the bone index which is the parent of the bone at "bone_idx". If -1, then bone has no parent. Note that the parent bone returned will always be less than "bone_idx". - + + + - - - Set the bone index "parent_idx" as the parent of the bone at "bone_idx". If -1, then bone has no parent. Note: "parent_idx" must be less than "bone_idx". + Return the name of the bone at index "index" - + + + - Return the amount of bones in the skeleton. + Return the bone index which is the parent of the bone at "bone_idx". If -1, then bone has no parent. Note that the parent bone returned will always be less than "bone_idx". - + + + + Return the pose transform for bone "bone_idx". @@ -34989,21 +35083,21 @@ This method controls whether the position between two cached points is interpola Return the rest transform for a bone "bone_idx". - + + + - - - Set the rest transform for bone "bone_idx" - + + + - - + Deprecated soon. @@ -35014,91 +35108,67 @@ This method controls whether the position between two cached points is interpola - + - + - Deprecated soon. - + - + - Deprecated soon. - - - + - - Deprecated soon. - - - - - Clear all the bones in this skeleton. - - - - - - + - Return the pose transform for bone "bone_idx". - + - + - Return the pose transform for bone "bone_idx". + Set the bone index "parent_idx" as the parent of the bone at "bone_idx". If -1, then bone has no parent. Note: "parent_idx" must be less than "bone_idx". - + + Return the pose transform for bone "bone_idx". - - - + - - - - - - - + + Set the rest transform for bone "bone_idx" - + - + + Deprecated soon. - - - + @@ -35118,13 +35188,6 @@ This method controls whether the position between two cached points is interpola Base class for GUI Sliders. - - - - - Set amount of ticks to display in slider. - - @@ -35139,6 +35202,13 @@ This method controls whether the position between two cached points is interpola Return true if ticks are visible on borders. + + + + + Set amount of ticks to display in slider. + + @@ -35156,19 +35226,19 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + + + @@ -35178,22 +35248,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - @@ -35214,12 +35268,28 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + @@ -35230,19 +35300,19 @@ This method controls whether the position between two cached points is interpola Base class for playing spatial 2D sound. - + + + - - - - - + + + @@ -35268,14 +35338,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -35284,14 +35346,14 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + @@ -35302,9 +35364,17 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + @@ -35320,98 +35390,90 @@ This method controls whether the position between two cached points is interpola Spatial is the base for every type of 3D [Node]. It contains a 3D [Transform] which can be set or get as local or global. If a Spatial [Node] has Spatial children, their transforms will be relative to the parent. - - - + + + - Set the transform locally, relative to the parent spatial node. - + - Return the local transform, relative to the bone parent. + Return the global transform, relative to worldspace. - - - + + + + Return the parent [Spatial], or an empty [Object] if no parent exists or parent is not of type [Spatial]. - + - - - + + + - + - - - + + + + Return the local transform, relative to the bone parent. - + - - - - - - - - + + - - + + + + - Set the transform globally, relative to worldspace. - - - + + + - Return the global transform, relative to worldspace. - - - + - Return the parent [Spatial], or an empty [Object] if no parent exists or parent is not of type [Spatial]. - - - + + + - - - + + + @@ -35421,138 +35483,146 @@ This method controls whether the position between two cached points is interpola - - + + - + + + + + - - + + + + + + - - - + - + + + + + - + + + - - - + + + - - - + + + - - + + - - + + - - - + + + + Set the transform globally, relative to worldspace. - - - - + + - - - - - + - - + + - - + + - - + + - - + + - - + + - + + + + Set the transform locally, relative to the parent spatial node. - + + + - - - - - + - - - - - - + + + + + + @@ -35588,19 +35658,19 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + + + @@ -35630,9 +35700,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -35642,15 +35712,11 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + + + @@ -35664,37 +35730,41 @@ This method controls whether the position between two cached points is interpola - - - - + + - - - - + + - - - + + + + + - + + + - + + + + + @@ -35754,145 +35824,145 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - + + - - - + + + - - + + - - - + + + - - - + + + - - - + + + - - - + + + - - + + - - + + - - - + + + - - - + @@ -35906,18 +35976,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -35930,31 +36000,30 @@ This method controls whether the position between two cached points is interpola SpinBox is a numerical input text field. It allows entering integers and floats. - - - + + + - Set a specific suffix. - + - Return the specific suffix. - - - + + + - Set a prefix. + Return the specific suffix. - - + + + Return if the spinbox is editable. @@ -35964,17 +36033,18 @@ This method controls whether the position between two cached points is interpola Set whether the spinbox is editable. - - - + + + - Return if the spinbox is editable. + Set a prefix. - - - + + + + Set a specific suffix. @@ -35993,11 +36063,11 @@ This method controls whether the position between two cached points is interpola Container for splitting two controls vertically or horizontally, with a grabber that allows adjusting the split offset or ratio. - - - + + + - Set the split offset. + Return visibility of the split dragger(One of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]). @@ -36007,13 +36077,6 @@ This method controls whether the position between two cached points is interpola Return the split offset. - - - - - Set if the split must be collapsed. - - @@ -36021,6 +36084,13 @@ This method controls whether the position between two cached points is interpola Return true if the split is collapsed. + + + + + Set if the split must be collapsed. + + @@ -36028,11 +36098,11 @@ This method controls whether the position between two cached points is interpola Set visibility of the split dragger([i]mode[/i] must be one of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]). - - - + + + - Return visibility of the split dragger(One of [DRAGGER_VISIBLE], [DRAGGER_HIDDEN] or [DRAGGER_HIDDEN_COLLAPSED]). + Set the split offset. @@ -36077,67 +36147,67 @@ This method controls whether the position between two cached points is interpola General purpose Sprite node. This Sprite node can show any texture as a sprite. The texture can be used as a spritesheet for animation, or only a region from a bigger texture can referenced, like an atlas. - - - + + + - Set the base texture for the sprite. + Return the texture frame for a sprite-sheet, works when vframes or hframes are greater than 1. - - + + - Return the base texture for the sprite. + Return the amount of horizontal frames. See [method set_hframes]. - - - + + + - Set whether the sprite should be centered on the origin. + Return color modulation for the sprite. All sprite pixels are multiplied by this color. - - + + - Return if the sprite is centered at the local origin. + Return sprite draw offset. - - - + + + - Set the sprite draw offset, useful for setting rotation pivots. + Return the region rect to read from. - - + + - Return sprite draw offset. + Return the base texture for the sprite. - - - + + + - Set true to flip the sprite horizontally. + Return the amount of vertical frames. See [method set_vframes]. - + - Return true if the sprite is flipped horizontally. + Return if the sprite is centered at the local origin. - - - + + + - Set true to flip the sprite vertically. + Return true if the sprite is flipped horizontally. @@ -36147,13 +36217,6 @@ This method controls whether the position between two cached points is interpola Return true if the sprite is flipped vertically. - - - - - Set the sprite as a sub-region of a bigger texture. Useful for texture-atlases. - - @@ -36161,18 +36224,25 @@ This method controls whether the position between two cached points is interpola Return if the sprite reads from a region. - - + + - Set the region rect to read from. + Set whether the sprite should be centered on the origin. - - - + + + - Return the region rect to read from. + Set true to flip the sprite horizontally. + + + + + + + Set true to flip the sprite vertically. @@ -36182,53 +36252,53 @@ This method controls whether the position between two cached points is interpola Set the texture frame for a sprite-sheet, works when vframes or hframes are greater than 1. - - - + + + - Return the texture frame for a sprite-sheet, works when vframes or hframes are greater than 1. + Set the amount of horizontal frames and converts the sprite into a sprite-sheet. This is useful for animation. - - + + - Set the amount of vertical frames and converts the sprite into a sprite-sheet. This is useful for animation. + Set color modulation for the sprite. All sprite pixels are multiplied by this color. Color may contain rgb values above 1 to achieve a highlight effect. - - - + + + - Return the amount of vertical frames. See [method set_vframes]. + Set the sprite draw offset, useful for setting rotation pivots. - - + + - Set the amount of horizontal frames and converts the sprite into a sprite-sheet. This is useful for animation. + Set the sprite as a sub-region of a bigger texture. Useful for texture-atlases. - - - + + + - Return the amount of horizontal frames. See [method set_hframes]. + Set the region rect to read from. - - + + - Set color modulation for the sprite. All sprite pixels are multiplied by this color. Color may contain rgb values above 1 to achieve a highlight effect. + Set the base texture for the sprite. - - - + + + - Return color modulation for the sprite. All sprite pixels are multiplied by this color. + Set the amount of vertical frames and converts the sprite into a sprite-sheet. This is useful for animation. @@ -36247,38 +36317,38 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + @@ -36289,33 +36359,33 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + - - + + - - - + + + @@ -36335,87 +36405,77 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - - - - - - - - + + - - + + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + - - - + + + @@ -36425,9 +36485,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -36439,46 +36499,56 @@ This method controls whether the position between two cached points is interpola - - - - + + - - + + - - - + + + - - - + + + + + + + + + + + + + + + - - - - - - + + + + + + @@ -36495,33 +36565,31 @@ This method controls whether the position between two cached points is interpola - - - + + + + + - + - - - - - + - + + + - - @@ -36533,43 +36601,39 @@ This method controls whether the position between two cached points is interpola - + + + - + - - + + - + + + - - - - - - - + - - - + @@ -36577,31 +36641,37 @@ This method controls whether the position between two cached points is interpola - + - - - + - + - + - + + + - + + + + + + + @@ -36619,25 +36689,11 @@ This method controls whether the position between two cached points is interpola Alternatively, a constant linear or angular velocity can be set for the static body, so even if it doesn't move, it affects other bodies as if it was moving (this is useful for simulating conveyor belts or conveyor wheels). - - - - - Set a constant linear velocity for the body. This does not move the body, but affects other bodies touching it, as if it was moving. - - - - - - - Set a constant angular velocity for the body. This does not rotate the body, but affects other bodies touching it, as if it was rotating. - - - - + + - Return the constant linear velocity for the body. + Return the body bounciness. @@ -36647,11 +36703,11 @@ This method controls whether the position between two cached points is interpola Return the constant angular velocity for the body. - - - + + + - Set the body friction, from 0 (frictionless) to 1 (full friction). + Return the constant linear velocity for the body. @@ -36668,11 +36724,25 @@ This method controls whether the position between two cached points is interpola Set the body bounciness, from 0 (not bouncy) to 1 (bouncy). - - - + + + - Return the body bounciness. + Set a constant angular velocity for the body. This does not rotate the body, but affects other bodies touching it, as if it was rotating. + + + + + + + Set a constant linear velocity for the body. This does not move the body, but affects other bodies touching it, as if it was moving. + + + + + + + Set the body friction, from 0 (frictionless) to 1 (full friction). @@ -36689,18 +36759,18 @@ This method controls whether the position between two cached points is interpola Alternatively, a constant linear or angular velocity can be set for the static body, so even if it doesn't move, it affects other bodies as if it was moving (this is useful for simulating conveyor belts or conveyor wheels). - - - + + + - Set a constant linear velocity for the body. This does not move the body, but affects other bodies touching it, as if it was moving. + Return the body bounciness. - - - + + + - Set a constant angular velocity for the body. This does not rotate the body, but affects other bodies touching it, as if it was rotating. + Return the constant angular velocity for the body. @@ -36710,39 +36780,39 @@ This method controls whether the position between two cached points is interpola Return the constant linear velocity for the body. - + - Return the constant angular velocity for the body. + Return the body friction. - - + + - Set the body friction, from 0 (frictionless) to 1 (full friction). + Set the body bounciness, from 0 (not bouncy) to 1 (bouncy). - - - + + + - Return the body friction. + Set a constant angular velocity for the body. This does not rotate the body, but affects other bodies touching it, as if it was rotating. - - + + - Set the body bounciness, from 0 (not bouncy) to 1 (bouncy). + Set a constant linear velocity for the body. This does not move the body, but affects other bodies touching it, as if it was moving. - - - + + + - Return the body bounciness. + Set the body friction, from 0 (frictionless) to 1 (full friction). @@ -36757,40 +36827,32 @@ This method controls whether the position between two cached points is interpola StreamPeer is an abstraction and base class for stream-based protocols (such as TCP or Unix Sockets). It provides an API for sending and receiving data through streams as raw data or strings. - + - - - Send a chunk of data through the connection, blocking if necessary until the data is done sending. This function returns an Error code. + Get a signed 16 bit value from the stream. - - + + - - - Send a chunk of data through the connection, if all the data could not be sent at once, only part of it will. This function returns two values, an Error code and an integer, describing how much data was actually sent. + Get a signed 32 bit value from the stream. - - + + - - - Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will block until the desired amount is received. This function returns two values, an Error code and a data array. + Get a signed 64 bit value from the stream. - - + + - - - Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will return how many were actually received. This function returns two values, an Error code, and a data array. + Get a signed byte from the stream. @@ -36800,197 +36862,205 @@ This method controls whether the position between two cached points is interpola Return the amount of bytes this [StreamPeer] has available. - - + + + + - Set this [StreamPeer] to use big-endian format. Default is false. + Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will block until the desired amount is received. This function returns two values, an Error code and a data array. - - + + - Return whether this [StreamPeer] is using big-endian format. + Get a double-precision float from the stream. - - - + + + - Put a signed byte into the stream. + Get a single-precision float from the stream. - - + + + + - Put an unsigned byte into the stream. + Return a chunk data with the received bytes. The amount of bytes to be received can be requested in the "bytes" argument. If not enough bytes are available, the function will return how many were actually received. This function returns two values, an Error code, and a data array. - - + + + + - Put a signed 16 bit value into the stream. + Get a string with byte-length "bytes" from the stream. - - - + + + - Put an unsigned 16 bit value into the stream. + Get an unsigned 16 bit value from the stream. - - - + + + - Put a signed 32 bit value into the stream. + Get an unsigned 32 bit value from the stream. - - - + + + - Put an unsigned 32 bit value into the stream. + Get an unsigned 16 bit value from the stream. - - - + + + - Put a signed 64 bit value into the stream. + Get an unsigned byte from the stream. - - + + + + - Put an unsigned 64 bit value into the stream. + Get an utf8 string with byte-length "bytes" from the stream (this decodes the string sent as utf8). - - - + + + - Put a single-precision float into the stream. + Get a Variant from the stream. - - - + + + - Put a double-precision float into the stream. + Return whether this [StreamPeer] is using big-endian format. - - + + - Put a zero-terminated utf8 string into the stream. + Put a signed 16 bit value into the stream. - - + + - Put a Variant into the stream. + Put a signed 32 bit value into the stream. - - - + + + - Get a signed byte from the stream. + Put a signed 64 bit value into the stream. - - - + + + - Get an unsigned byte from the stream. + Put a signed byte into the stream. - + + + - Get a signed 16 bit value from the stream. + Send a chunk of data through the connection, blocking if necessary until the data is done sending. This function returns an Error code. - - - + + + - Get an unsigned 16 bit value from the stream. + Put a double-precision float into the stream. - - - + + + - Get a signed 32 bit value from the stream. + Put a single-precision float into the stream. - - + + + + - Get an unsigned 32 bit value from the stream. + Send a chunk of data through the connection, if all the data could not be sent at once, only part of it will. This function returns two values, an Error code and an integer, describing how much data was actually sent. - - - + + + - Get a signed 64 bit value from the stream. + Put an unsigned 16 bit value into the stream. - - - + + + - Get an unsigned 16 bit value from the stream. + Put an unsigned 32 bit value into the stream. - - - + + + - Get a single-precision float from the stream. + Put an unsigned 64 bit value into the stream. - - - + + + - Get a double-precision float from the stream. + Put an unsigned byte into the stream. - - - - + + - Get a string with byte-length "bytes" from the stream. + Put a zero-terminated utf8 string into the stream. - - - - + + - Get an utf8 string with byte-length "bytes" from the stream (this decodes the string sent as utf8). + Put a Variant into the stream. - - - + + + - Get a Variant from the stream. + Set this [StreamPeer] to use big-endian format. Default is false. @@ -37026,6 +37096,11 @@ This method controls whether the position between two cached points is interpola Connect to a peer using an underlying [StreamPeer] "stream", when "validate_certs" is true, [StreamPeerSSL] will validate that the certificate presented by the peer matches the "for_hostname". + + + Disconnect from host. + + @@ -37033,11 +37108,6 @@ This method controls whether the position between two cached points is interpola Return the status of the connection, one of STATUS_* enum. - - - Disconnect from host. - - @@ -37073,18 +37143,9 @@ This method controls whether the position between two cached points is interpola Connect to the specified IP:port pair. Returns [OK] on success or [FAILED] on failure. - - - - - Return whether this peer is connected. Returns true while connecting and connected. - - - - - + - Return the status of the connection, one of STATUS_* enum. + Disconnect from host. @@ -37101,9 +37162,18 @@ This method controls whether the position between two cached points is interpola Return the port of this peer. - + + + - Disconnect from host. + Return the status of the connection, one of STATUS_* enum. + + + + + + + Return whether this peer is connected. Returns true while connecting and connected. @@ -37130,58 +37200,74 @@ This method controls whether the position between two cached points is interpola Base class for audio stream playback. Audio stream players inherit from it. - - - + + + - Set the [EventStream] this player will play. + Return the size of the audio buffer. - - + + - Return the currently assigned stream. + Return the length of the stream, in seconds. - - - + + + - Play the currently assigned stream, starting from a given position (in seconds). + Return the number of times the playback has looped. - + + + - Stop the playback. + Return the point in time the stream will rewind to, when looping. - - + + - Return whether this player is playing. + Return the playback position, in seconds. - - - + + + - Pause stream playback. + Return the currently assigned stream. - - + + - Return whether the playback is currently paused. + Return the name of the currently assigned stream. This is not the file name, but a field inside the file. If no stream is assigned, if returns "<No Stream>". - - - + + + - Set whether the stream will be restarted at the end. + Return the playback volume for this player. + + + + + + + Return the playback volume for this player, in decibels. + + + + + + + Return whether this player will start playing as soon as it enters the scene tree. @@ -37191,32 +37277,39 @@ This method controls whether the position between two cached points is interpola Return whether the stream will be restarted at the end. - - - + + + - Set the playback volume for this player. This is a float between 0.0 (silent) and 1.0 (full volume). Values over 1.0 will amplify sound even more, but may introduce distortion. Negative values will just invert the output waveform, which produces no audible difference. + Return whether the playback is currently paused. - - + + - Return the playback volume for this player. + Return whether this player is playing. - - + + - Set the playback volume for this player, in decibels. This is a float between -80.0 (silent) and 0.0 (full volume). Values under -79.0 get truncated to -80, but values over 0.0 do not, so the warnings for overamplifying (see [method set_volume]) still apply. + Play the currently assigned stream, starting from a given position (in seconds). - - - + + + - Return the playback volume for this player, in decibels. + Set the playback position, in seconds. + + + + + + + Set whether this player will start playing as soon as it enters the scene tree. @@ -37227,11 +37320,11 @@ This method controls whether the position between two cached points is interpola Default is 500 milliseconds. - - - + + + - Return the size of the audio buffer. + Set whether the stream will be restarted at the end. @@ -37241,60 +37334,37 @@ This method controls whether the position between two cached points is interpola Set the point in time the stream will rewind to, when looping. - - - - - Return the point in time the stream will rewind to, when looping. - - - - - - - Return the name of the currently assigned stream. This is not the file name, but a field inside the file. If no stream is assigned, if returns "<No Stream>". - - - - - - - Return the number of times the playback has looped. - - - - - + + + - Return the playback position, in seconds. + Pause stream playback. - - + + - Set the playback position, in seconds. + Set the [EventStream] this player will play. - - + + - Set whether this player will start playing as soon as it enters the scene tree. + Set the playback volume for this player. This is a float between 0.0 (silent) and 1.0 (full volume). Values over 1.0 will amplify sound even more, but may introduce distortion. Negative values will just invert the output waveform, which produces no audible difference. - - - + + + - Return whether this player will start playing as soon as it enters the scene tree. + Set the playback volume for this player, in decibels. This is a float between -80.0 (silent) and 0.0 (full volume). Values under -79.0 get truncated to -80, but values over 0.0 do not, so the warnings for overamplifying (see [method set_volume]) still apply. - - - + - Return the length of the stream, in seconds. + Stop the playback. @@ -37819,6 +37889,15 @@ This method controls whether the position between two cached points is interpola String Array. Array of strings. Can only contain strings. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -37849,15 +37928,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -37870,24 +37940,18 @@ This method controls whether the position between two cached points is interpola StyleBox is [Resource] that provides an abstract base class for drawing stylized boxes for the UI. StyleBoxes are used for drawing the styles of buttons, line edit backgrounds, tree backgrounds, etc. and also for testing a transparency mask for pointer signals. If mask test fails on a StyleBox assigned as mask to a control, clicks and motion signals will go through it to the one below. - - - - + + - Test a position in a rectangle, return whether it passes the mask test. - - - - - + + + - Set the default offset "offset" of the margin "margin" (see MARGIN_* enum) for a StyleBox, Controls that draw styleboxes with context inside need to know the margin, so the border of the stylebox is not occluded. @@ -37915,25 +37979,31 @@ This method controls whether the position between two cached points is interpola Return the minimum size that this stylebox can be shrunk to. - + + Return the "offset" of a stylebox, this is a helper function, like writing [code]Vector2(style.get_margin(MARGIN_LEFT), style.get_margin(MARGIN_TOP))[/code]. - - - + + + + + - Return the "offset" of a stylebox, this is a helper function, like writing [code]Vector2(style.get_margin(MARGIN_LEFT), style.get_margin(MARGIN_TOP))[/code]. + Set the default offset "offset" of the margin "margin" (see MARGIN_* enum) for a StyleBox, Controls that draw styleboxes with context inside need to know the margin, so the border of the stylebox is not occluded. - - + + + + + Test a position in a rectangle, return whether it passes the mask test. @@ -37960,63 +38030,63 @@ This method controls whether the position between two cached points is interpola Stylebox of a single color. Displays the stylebox of a single color, alternatively a border with light/dark colors can be assigned. - - - + + + - - + + - - - + + + - + - - - + + + - + - - + + - - - + + + - - + + - - - + + + @@ -38026,9 +38096,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -38044,11 +38114,20 @@ This method controls whether the position between two cached points is interpola This StyleBox is similar to [StyleBoxTexture], but only meant to be used for mask testing. It takes an image and applies stretch rules to determine if the point clicked is masked or not. - - + + + + + Return whether the expand property is set(default). When expanding, the image will use the same rules as [StyleBoxTexture] for expand. If not expanding, the image will always be tested at its original size. + + + + + + - Set the image used for mask testing. Pixels (converted to grey) that have a value, less than 0.5 will fail the test. + Return the expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand. @@ -38065,13 +38144,6 @@ This method controls whether the position between two cached points is interpola Set the expand property (default). When expanding, the image will use the same rules as [StyleBoxTexture] for expand. If not expanding, the image will always be tested at its original size. - - - - - Return whether the expand property is set(default). When expanding, the image will use the same rules as [StyleBoxTexture] for expand. If not expanding, the image will always be tested at its original size. - - @@ -38081,13 +38153,11 @@ This method controls whether the position between two cached points is interpola Set an expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand. - - - - + + - Return the expand margin size (from enum MARGIN_*). Parts of the image below the size of the margin (and in the direction of the margin) will not expand. + Set the image used for mask testing. Pixels (converted to grey) that have a value, less than 0.5 will fail the test. @@ -38102,23 +38172,17 @@ This method controls whether the position between two cached points is interpola Texture Based 3x3 scale style. This stylebox performs a 3x3 scaling of a texture, where only the center cell is fully stretched. This allows for the easy creation of bordered styles. - - - - - - - - + + - + + + - - @@ -38130,43 +38194,49 @@ This method controls whether the position between two cached points is interpola - - - - - + + + - - + + - - - - + + - - - + + + + + - - + + + + - - - + + + + + + + + + @@ -38182,14 +38252,8 @@ This method controls whether the position between two cached points is interpola Helper tool to create geometry. - - - - - - - - + + @@ -38206,12 +38270,34 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + @@ -38224,8 +38310,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -38236,38 +38322,24 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - - - - + - - + + + + - - - - @@ -38276,15 +38348,13 @@ This method controls whether the position between two cached points is interpola - - - - - + - + + + @@ -38300,6 +38370,13 @@ This method controls whether the position between two cached points is interpola TCP Server class. Listens to connections on a port and returns a [StreamPeerTCP] when got a connection. + + + + + Return true if a connection is available for taking. + + @@ -38311,11 +38388,9 @@ This method controls whether the position between two cached points is interpola Listen on a port, alternatively give a white-list of accepted hosts. - - - + - Return true if a connection is available for taking. + Stop listening. @@ -38325,11 +38400,6 @@ This method controls whether the position between two cached points is interpola If a connection is available, return a StreamPeerTCP with the connection/ - - - Stop listening. - - @@ -38343,18 +38413,11 @@ This method controls whether the position between two cached points is interpola Children controls of this one automatically. - - + + - Return the amount of tabs. - - - - - - - Bring a tab (and the Control it represents) to the front, and hide the rest. + Return whether the tabs should be visible or hidden. @@ -38370,19 +38433,10 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - Set tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center. @@ -38392,27 +38446,27 @@ This method controls whether the position between two cached points is interpola Return tab alignment, from the ALIGN_* enum. - - + + + + - Set whether the tabs should be visible or hidden. - - + + - Return whether the tabs should be visible or hidden. + Return the amount of tabs. - + + + - - - Set a title for the tab. Tab titles are by default the children node name, but this can be overridden. @@ -38424,33 +38478,49 @@ This method controls whether the position between two cached points is interpola Return the title for the tab. Tab titles are by default the children node name, but this can be overridden. - + - + + Bring a tab (and the Control it represents) to the front, and hide the rest. + + + + - Set an icon for a tab. - - - + + + + + Set tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center. + + + + + + Set an icon for a tab. - - + + + + + Set a title for the tab. Tab titles are by default the children node name, but this can be overridden. - - - + + + + Set whether the tabs should be visible or hidden. @@ -38470,39 +38540,39 @@ This method controls whether the position between two cached points is interpola - - - - - + - + - + - + + + - + - + - + - + - + - + - + + + @@ -38514,14 +38584,16 @@ This method controls whether the position between two cached points is interpola Simple tabs control, similar to [TabContainer] but is only in charge of drawing tabs, not interact with children. - - - + + + + + - - + + @@ -38532,32 +38604,28 @@ This method controls whether the position between two cached points is interpola - - - - - + + + - - + + - - - + + + - - - - + + @@ -38570,10 +38638,8 @@ This method controls whether the position between two cached points is interpola - - - - + + @@ -38584,33 +38650,37 @@ This method controls whether the position between two cached points is interpola - - - + + + + + - - + + + + - + - + - + @@ -38624,47 +38694,47 @@ This method controls whether the position between two cached points is interpola + + - - - + - + - + - + + + + + - - - + - - - + - + - + - + - + - + @@ -38688,57 +38758,55 @@ This method controls whether the position between two cached points is interpola TextEdit is meant for editing large, multiline text. It also has facilities for editing code, such as syntax highlighting support and multiple levels of undo/redo. - - + + + + + + + + - Set the entire text. + Add color region (given the delimiters) and its colors. - - + + + + - Insert a given text at the cursor position. + Add a keyword and its color. - - - + - Return the amount of total lines in the text. + Clear all the syntax coloring information. - - - + - Return the whole text. + Clear the undo history. - - - - - + - Return the text of a specific line. + Copy the current selection. - - - - - + + + + Gets whether the text editor caret is blinking. - - - - - + + + + Gets the text editor caret blink speed. @@ -38762,13 +38830,6 @@ This method controls whether the position between two cached points is interpola Set the text editor caret to blink. - - - - - Gets whether the text editor caret is blinking. - - @@ -38776,32 +38837,20 @@ This method controls whether the position between two cached points is interpola Set the text editor caret blink speed. Cannot be less then or equal to 0. - - - - - Gets the text editor caret blink speed. - - - - + + - - Set the text editor as read-only. Text can be displayed but not edited. - - - - + - Enable text wrapping when it goes beyond he edge of what is visible. - - + + + + - Set the maximum amount of characters editable. @@ -38809,39 +38858,33 @@ This method controls whether the position between two cached points is interpola Cut the current selection. - - - Copy the current selection. - - - + + + + + - Paste the current selection. + Return the text of a specific line. - + + + - Select all the text. + Return the amount of total lines in the text. - - - - - - - - - + + + - Perform selection, from line/column to line/column. - - + + - Return true if the selection is active. + Return the selection begin column. @@ -38851,32 +38894,32 @@ This method controls whether the position between two cached points is interpola Return the selection begin line. - - + + - Return the selection begin column. + Return the text inside the selection. - + - Return the selection end line. + Return the selection end column. - + - Return the selection end column. + Return the selection end line. - + - Return the text inside the selection. + Return the whole text. @@ -38885,24 +38928,36 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - + + Insert a given text at the cursor position. + + + + + + + Return true if the selection is active. + + + + + + + Return true if the syntax coloring is enabled. + + + + - Perform a search inside the text. Search flags can be specified in the SEARCH_* enum. - + - Perform undo operation. + Paste the current selection. @@ -38910,45 +38965,58 @@ This method controls whether the position between two cached points is interpola Perform redo operation. - + + + + + + + + + + + - Clear the undo history. + Perform a search inside the text. Search flags can be specified in the SEARCH_* enum. - - + + + + + + + + - Set to enable the syntax coloring. + Perform selection, from line/column to line/column. - - - + - Return true if the syntax coloring is enabled. + Select all the text. - - - - + + - Add a keyword and its color. + Set a custom background color. A background color with alpha==0 disables this. - - - - - - + + - + + Set the maximum amount of characters editable. + + + + - Add color region (given the delimiters) and its colors. + Set the text editor as read-only. Text can be displayed but not edited. @@ -38958,37 +39026,34 @@ This method controls whether the position between two cached points is interpola Set the color for symbols. - - + + - Set a custom background color. A background color with alpha==0 disables this. + Set to enable the syntax coloring. - + + + - Clear all the syntax coloring information. + Set the entire text. - - + + + Enable text wrapping when it goes beyond he edge of what is visible. - - - + + Perform undo operation. - - - Emitted when the text changes. - - Emitted when the cursor changes. @@ -38998,17 +39063,13 @@ This method controls whether the position between two cached points is interpola + + + Emitted when the text changes. + + - - Match case when searching. - - - Match whole words when searching. - - - Search from end to beginning. - @@ -39023,49 +39084,58 @@ This method controls whether the position between two cached points is interpola + + Match case when searching. + + + Match whole words when searching. + + + Search from end to beginning. + - - - - - + - + - + - + - - - - - + - + - + - + - + - + - + + + + + + + - + - + + + @@ -39077,54 +39147,6 @@ This method controls whether the position between two cached points is interpola A texture works by registering an image in the video hardware, which then can be used in 3D models or 2D [Sprite] or GUI [Control]. - - - - - Return the texture width. - - - - - - - Return the texture height. - - - - - - - Return the texture size. - - - - - - - Return the texture RID as used in the [VisualServer]. - - - - - - - - - - - - - Change the texture flags. - - - - - - - Return the current texture flags. - - @@ -39165,28 +39187,76 @@ This method controls whether the position between two cached points is interpola + + + + + Return the current texture flags. + + + + + + + Return the texture height. + + + + + + + Return the texture RID as used in the [VisualServer]. + + + + + + + Return the texture size. + + + + + + + Return the texture width. + + + + + + + + + + + + + Change the texture flags. + + Generate mipmaps, to enable smooth zooming out of the texture. + + Repeat (instead of clamp to edge). + + Turn on magnifying filter, to enable smooth zooming in of the texture. Texture is a video surface. - - Default flags. Generate mipmaps, repeat, and filter are enabled. - - - - + + Default flags. Generate mipmaps, repeat, and filter are enabled. @@ -39199,99 +39269,99 @@ This method controls whether the position between two cached points is interpola Only the normal texture is required, the others are optional. - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + - - - + + + @@ -39307,26 +39377,26 @@ This method controls whether the position between two cached points is interpola Control frame that simply draws an assigned texture. It can stretch or not. It's a simple way to just show an image in a UI. - - - + + + - - + + - - - + + + - - + + @@ -39337,9 +39407,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -39349,9 +39419,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -39381,21 +39451,21 @@ This method controls whether the position between two cached points is interpola [ProgressBar] implementation that is easier to theme (by just passing a few textures). - - - + + + - - + + - - - + + + @@ -39405,39 +39475,45 @@ This method controls whether the position between two cached points is interpola - - - + + + - + + + + + + + - - + + - - - + + + - - + + - - - + + + @@ -39447,21 +39523,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - + - - - + + + @@ -39490,19 +39560,15 @@ This method controls whether the position between two cached points is interpola Theme resources can be alternatively loaded by writing them in a .theme file, see wiki for more info. - + - - - - - + @@ -39510,9 +39576,7 @@ This method controls whether the position between two cached points is interpola - - - + @@ -39528,26 +39592,20 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + - - - - + + + + + + @@ -39556,17 +39614,17 @@ This method controls whether the position between two cached points is interpola - - + + - - - + - + + + @@ -39574,7 +39632,7 @@ This method controls whether the position between two cached points is interpola - + @@ -39582,22 +39640,12 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - @@ -39608,17 +39656,17 @@ This method controls whether the position between two cached points is interpola - - + + - - - + - + + + @@ -39626,7 +39674,7 @@ This method controls whether the position between two cached points is interpola - + @@ -39634,22 +39682,34 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + - - + + - - - + + + + + + + @@ -39664,7 +39724,9 @@ This method controls whether the position between two cached points is interpola - + + + @@ -39672,26 +39734,18 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - + + @@ -39700,7 +39754,7 @@ This method controls whether the position between two cached points is interpola - + @@ -39710,18 +39764,22 @@ This method controls whether the position between two cached points is interpola - + + + - - - - + + + + + + @@ -39732,21 +39790,33 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + - - - - + + + + + + - + + + + + + + @@ -39762,6 +39832,20 @@ This method controls whether the position between two cached points is interpola A unit of execution in a process. Can run methods on [Object]s simultaneously. The use of synchronization via [Mutex], [Semaphore] is advised if working with shared objects. + + + + + Return the id of the thread, uniquely identifying it among all threads. + + + + + + + Whether this thread is currently active, an active Thread cannot start work on a new method but can be joined with [method wait_to_finish]. + + @@ -39778,20 +39862,6 @@ This method controls whether the position between two cached points is interpola Returns OK on success, or ERR_CANT_CREATE on failure. - - - - - Return the id of the thread, uniquely identifying it among all threads. - - - - - - - Whether this thread is currently active, an active Thread cannot start work on a new method but can be joined with [method wait_to_finish]. - - @@ -39818,233 +39888,192 @@ This method controls whether the position between two cached points is interpola To optimize drawing and culling (sort of like [GridMap]), you can specify a quadrant size, so chunks of the map will be batched together at drawing time. - - - + - Set the current tileset. + Clear all cells. - - + + - - Return the current tileset. - - - - + + + - Set the orientation mode as square, isometric or custom (use MODE_* constants as argument). + Return the tile index of the referenced cell. - - + + - Return the orientation mode. - - - - - - - Set an half offset on the X coordinate, Y coordinate, or none (use HALF_OFFSET_* constants as argument). - Half offset sets every other tile off by a half tile size in the specified direction. + Return the cell size. - + - - Return the current half offset configuration. - - - - + - Set custom transform matrix, to use in combination with the custom orientation mode. + Return the tile index of the cell referenced by a Vector2. - - + + - Return the custom transform matrix. + Return true if tiles are to be centered in x coordinate (by default this is false and they are drawn from upper left cell corner). - - - + + + - Set the cell size. + Return true if tiles are to be centered in y coordinate (by default this is false and they are drawn from upper left cell corner). - - + + - Return the cell size. + Return the collision bounce parameter. - - - + + + - Set the quadrant size, this optimizes drawing by batching chunks of map at draw/cull time. - Allowed values are integers ranging from 1 to 128. + Return the collision friction parameter. - + - Return the quadrant size. - - - - - - - Set the tile origin to the tile center or its top-left corner (use TILE_ORIGIN_* constants as argument). + Return the collision layer. - + - Return the tile origin configuration. - - - - - - - Set tiles to be centered in x coordinate. (by default this is false and they are drawn from upper left cell corner). + Return the collision mask. - + - Return true if tiles are to be centered in x coordinate (by default this is false and they are drawn from upper left cell corner). - - - - - - - Set tiles to be centered in y coordinate. (by default this is false and they are drawn from upper left cell corner). + Return whether the tilemap handles collisions as a kinematic body. - - + + - Return true if tiles are to be centered in y coordinate (by default this is false and they are drawn from upper left cell corner). - - - - - - - Set the Y sort mode. Enabled Y sort mode means that children of the tilemap will be drawn in the order defined by their Y coordinate. - A tile with a higher Y coordinate will therefore be drawn later, potentially covering up the tile(s) above it if its sprite is higher than its cell size. + Return the custom transform matrix. - - + + - Return the Y sort mode. + Return the current half offset configuration. - - - + + + - Set the tilemap to handle collisions as a kinematic body (enabled) or a static body (disabled). + Return the orientation mode. - - + + - Return whether the tilemap handles collisions as a kinematic body. - - - + + + - Set the collision layer. - Layers are referenced by binary indexes, so allowable values to describe the 20 available layers range from 0 to 2^20-1. + Return the quadrant size. - + - Return the collision layer. + Return the tile origin configuration. - - - + + + - Set the collision masks. - Masks are referenced by binary indexes, so allowable values to describe the 20 available masks range from 0 to 2^20-1. + Return the current tileset. - - + + - Return the collision mask. + Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1). - - + + + + + + - Set the collision friction parameter. - Allowable values range from 0 to 1. + Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector). - - + + - - Return the collision friction parameter. - - - - + + + - Set the collision bounce parameter. - Allowable values range from 0 to 1. + Return whether the referenced cell is flipped over the X axis. - - + + + + + + - Return the collision bounce parameter. + Return whether the referenced cell is flipped over the Y axis. - - - + + + + Return the Y sort mode. - - + + + + + + + Return the absolute world position corresponding to the tilemap (grid-based) coordinates given as an argument. + Optionally, the tilemap's potential half offset can be ignored. @@ -40066,6 +40095,13 @@ This method controls whether the position between two cached points is interpola Optionally, the tile can also be flipped over the X and Y coordinates or transposed. + + + + + Set the cell size. + + @@ -40083,81 +40119,115 @@ This method controls whether the position between two cached points is interpola Optionally, the tile can also be flipped over the X and Y axes or transposed. - - - - + + - + + Set tiles to be centered in x coordinate. (by default this is false and they are drawn from upper left cell corner). + + + + - Return the tile index of the referenced cell. + Set tiles to be centered in y coordinate. (by default this is false and they are drawn from upper left cell corner). - - - - + + - Return the tile index of the cell referenced by a Vector2. + Set the collision bounce parameter. + Allowable values range from 0 to 1. - - - - + + - + + Set the collision friction parameter. + Allowable values range from 0 to 1. + + + + - Return whether the referenced cell is flipped over the X axis. + Set the collision layer. + Layers are referenced by binary indexes, so allowable values to describe the 20 available layers range from 0 to 2^20-1. - - - - + + - + + Set the collision masks. + Masks are referenced by binary indexes, so allowable values to describe the 20 available masks range from 0 to 2^20-1. + + + + - Return whether the referenced cell is flipped over the Y axis. + Set the tilemap to handle collisions as a kinematic body (enabled) or a static body (disabled). - - - - + + - + + Set custom transform matrix, to use in combination with the custom orientation mode. + + + + - Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector). + Set an half offset on the X coordinate, Y coordinate, or none (use HALF_OFFSET_* constants as argument). + Half offset sets every other tile off by a half tile size in the specified direction. - + + + - Clear all cells. + Set the orientation mode as square, isometric or custom (use MODE_* constants as argument). - - - + + + - Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1). - - - - + + - + + Set the quadrant size, this optimizes drawing by batching chunks of map at draw/cull time. + Allowed values are integers ranging from 1 to 128. + + + + - Return the absolute world position corresponding to the tilemap (grid-based) coordinates given as an argument. - Optionally, the tilemap's potential half offset can be ignored. + Set the tile origin to the tile center or its top-left corner (use TILE_ORIGIN_* constants as argument). + + + + + + + Set the current tileset. + + + + + + + Set the Y sort mode. Enabled Y sort mode means that children of the tilemap will be drawn in the order defined by their Y coordinate. + A tile with a higher Y coordinate will therefore be drawn later, potentially covering up the tile(s) above it if its sprite is higher than its cell size. @@ -40178,6 +40248,15 @@ This method controls whether the position between two cached points is interpola + + Half offset on the X coordinate. + + + Half offset on the Y coordinate. + + + Half offset disabled. + Returned when a cell doesn't exist. @@ -40190,15 +40269,6 @@ This method controls whether the position between two cached points is interpola Custom orientation mode. - - Half offset on the X coordinate. - - - Half offset on the Y coordinate. - - - Half offset disabled. - Tile origin at its top-left corner. @@ -40216,110 +40286,100 @@ This method controls whether the position between two cached points is interpola Tiles are referenced by a unique integer ID. - - - + - Create a new tile which will be referenced by the given ID. + Clear all tiles. - + - - - Set the name of the tile, for descriptive purposes. + Create a new tile which will be referenced by the given ID. - - + + - + - Return the name of the tile. + Find the first tile matching the given name. - - - - - + + + - Set the texture of the tile. + Return the ID following the last currently used ID, useful when creating a new tile. - - + + - - - Return the texture of the tile. + Return an array of all currently used tile IDs. - + - - - Set the material of the tile. + Remove the tile referenced by the given ID. - - + + - Return the material of the tile. + Return the light occluder of the tile. - + + + - - - Set the texture offset of the tile. + Return the material of the tile. - - + + - Return the texture offset of the tile. + Return the name of the tile. - + + + - - - Set the shape offset of the tile. + Return the navigation polygon of the tile. - + - Return the shape offset of the tile. + Return the offset of the tile's navigation polygon. - + + + - - - Set the tile sub-region in the texture. This is common in texture atlases. + Return the offset of the tile's light occluder. @@ -40331,15 +40391,6 @@ This method controls whether the position between two cached points is interpola Return the tile sub-region in the texture. - - - - - - - Set a shape for the tile, enabling physics to collide with it. - - @@ -40349,13 +40400,13 @@ This method controls whether the position between two cached points is interpola Return the shape of the tile. - + + + - - - Set an array of shapes for the tile, enabling physics to collide with it. + Return the shape offset of the tile. @@ -40367,58 +40418,67 @@ This method controls whether the position between two cached points is interpola Return the array of shapes of the tile. - + + + - - - Set a navigation polygon for the tile. + Return the texture of the tile. - - + + - Return the navigation polygon of the tile. + Return the texture offset of the tile. - + - + - Set an offset for the tile's navigation polygon. + Set a light occluder for the tile. - - - + + + - Return the offset of the tile's navigation polygon. + Set the material of the tile. - + - + - Set a light occluder for the tile. + Set the name of the tile, for descriptive purposes. - - - + + + - Return the light occluder of the tile. + Set a navigation polygon for the tile. + + + + + + + + + Set an offset for the tile's navigation polygon. @@ -40430,48 +40490,58 @@ This method controls whether the position between two cached points is interpola Set an offset for the tile's light occluder. - - - + + + - Return the offset of the tile's light occluder. + Set the tile sub-region in the texture. This is common in texture atlases. - + + + - Remove the tile referenced by the given ID. + Set a shape for the tile, enabling physics to collide with it. - + + + + + - Clear all tiles. + Set the shape offset of the tile. - - - + + + + + - Return the ID following the last currently used ID, useful when creating a new tile. + Set an array of shapes for the tile, enabling physics to collide with it. - - - - + + + + - Find the first tile matching the given name. + Set the texture of the tile. - - - + + + + + - Return an array of all currently used tile IDs. + Set the texture offset of the tile. @@ -40486,39 +40556,25 @@ This method controls whether the position between two cached points is interpola Timer node. This is a simple node that will emit a timeout callback when the timer runs out. It can optionally be set to loop. - - - - - Set wait time in seconds. When the time is over, it will emit the timeout signal. - - - + - Return the wait time in seconds. - - - - - - - Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart. + Return the time left for timeout in seconds if the timer is active, 0 otherwise. - - + + - Return true if configured as one-shot. + Return the timer's processing mode. - - - + + + - Set to automatically start when entering the scene. + Return the wait time in seconds. @@ -40528,14 +40584,18 @@ This method controls whether the position between two cached points is interpola Return true if set to automatically start when entering the scene. - + + + - Start the timer. + Return if the timer is active or not. - + + + - Stop (cancel) the timer. + Return true if configured as one-shot. @@ -40545,18 +40605,18 @@ This method controls whether the position between two cached points is interpola Set whether the timer is active or not. An inactive timer will be paused until it is activated again. - - - + + + - Return if the timer is active or not. + Set to automatically start when entering the scene. - - - + + + - Return the time left for timeout in seconds if the timer is active, 0 otherwise. + Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart. @@ -40566,11 +40626,21 @@ This method controls whether the position between two cached points is interpola Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument). - - - + + + - Return the timer's processing mode. + Set wait time in seconds. When the time is over, it will emit the timeout signal. + + + + + Start the timer. + + + + + Stop (cancel) the timer. @@ -40600,28 +40670,28 @@ This method controls whether the position between two cached points is interpola - + - + + + + + - - - - - - - + + + @@ -40630,21 +40700,21 @@ This method controls whether the position between two cached points is interpola - - - + + + - + - - - + + + @@ -40654,39 +40724,33 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - - - + + + - - + + - - + + - - - + + + @@ -40696,25 +40760,31 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - + + + + + + + + + - + - + @@ -40730,6 +40800,59 @@ This method controls whether the position between two cached points is interpola Transform is used to store transformations, including translations. It consists of a Matrix3 "basis" and Vector3 "origin". Transform is used to represent transformations of any object in space. It is similar to a 4x3 matrix. + + + + + + + + + + + + + Construct the Transform from four Vector3. Each axis creates the basis. + + + + + + + + + + + Construct the Transform from a Matrix3 and Vector3. + + + + + + + + + Construct the Transform from a Matrix32. + + + + + + + + + Construct the Transform from a Quat. The origin will be Vector3(0, 0, 0) + + + + + + + + + Construct the Transform from a Matrix3. The origin will be Vector3(0, 0, 0) + + @@ -40809,59 +40932,6 @@ This method controls whether the position between two cached points is interpola Inverse-transforms vector "v" by this transform. - - - - - - - - - - - - - Construct the Transform from four Vector3. Each axis creates the basis. - - - - - - - - - - - Construct the Transform from a Matrix3 and Vector3. - - - - - - - - - Construct the Transform from a Matrix32. - - - - - - - - - Construct the Transform from a Quat. The origin will be Vector3(0, 0, 0) - - - - - - - - - Construct the Transform from a Matrix3. The origin will be Vector3(0, 0, 0) - - @@ -40882,11 +40952,20 @@ This method controls whether the position between two cached points is interpola Translations are resources that can be loaded/unloaded on demand. They map a string to another string. - - + + + + - Set the locale of the translation. + Add a message for translation. + + + + + + + Erase a message. @@ -40896,15 +40975,6 @@ This method controls whether the position between two cached points is interpola Return the locale of the translation. - - - - - - - Add a message for translation. - - @@ -40914,11 +40984,10 @@ This method controls whether the position between two cached points is interpola Return a message for translation. - - - + + + - Erase a message. @@ -40928,10 +40997,11 @@ This method controls whether the position between two cached points is interpola Return all the messages (keys). - - - + + + + Set the locale of the translation. @@ -40945,39 +41015,39 @@ This method controls whether the position between two cached points is interpola - - + + - - - + - + - - - + - - + + - + + + + + @@ -40991,6 +41061,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -41003,25 +41079,29 @@ This method controls whether the position between two cached points is interpola - - - + - - - - + + + + + + + + + + - + + + - - @@ -41033,147 +41113,143 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - - + + - - + + - + - - + + + + - - - - - + - - + + + + - + + + - + - - + + - - + + - - - - - + - - - + - - - + + + - - - + + + - - - + + + - + - + - - - + + + - - - + + + + + - - + + - - - + + + @@ -41183,21 +41259,21 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + @@ -41207,50 +41283,48 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - + - + + + + + - - + + - + - - + + + + + + @@ -41261,99 +41335,95 @@ This method controls whether the position between two cached points is interpola - - - - - + - + - - - - - - + + + + + + - - - + - + - + - + - + - + + + - + - + + + + + - + - + - + - + - + - + - + - + - + - + - + - - - - - + - + - + - + - + @@ -41363,95 +41433,63 @@ This method controls whether the position between two cached points is interpola - + - - - - - - - - - + - - - - - + - + - - - + - + - - - - - + - + - + - + - - - - - - - + - - + + - - - - - - - - - + @@ -41459,49 +41497,41 @@ This method controls whether the position between two cached points is interpola - - - - - + + + - - + + - + + + - - - - - - - - - - + + - + + + - - @@ -41511,29 +41541,19 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - + + + - - + + - + @@ -41545,47 +41565,55 @@ This method controls whether the position between two cached points is interpola - + - - + + + + - - + + + + - - + + + + - - + + - + - + + + - + - + @@ -41593,53 +41621,77 @@ This method controls whether the position between two cached points is interpola - + - - - + + + - + + + - + + + - - - - + + + + + + + + + + + + + + + + - + - + - + + + + + + + + + @@ -41653,89 +41705,107 @@ This method controls whether the position between two cached points is interpola - + + + - - - + + + + + - + - + - + + + + + - + - - - + + + - - - + - + - + - + - - - + - + - + - + + + + + + + - - - + + + - + + + + + - + + + + + @@ -41771,39 +41841,63 @@ This method controls whether the position between two cached points is interpola Many of the methods accept [code]trans_type[/code] and [code]ease_type[/code]. The first accepts an TRANS_* constant, and refers to the way the timing of the animation is handled (you might want to see [code]http://easings.net/[/code] for some examples). The second accepts an EASE_* constant, and controls the where [code]trans_type[/code] is applied to the interpolation (in the begining, the end, or both). If you don't know which transision and easing to pick, you can try different TRANS_* constants with EASE_IN_OUT, and use the one that looks best. - + - - Returns true if any tweens are currently running, and false otherwise. Note that this method doesn't consider tweens that have ended. - - - - + + + + + + + + + + + + + + + + + - Activate/deactivate the tween. You can use this for pausing animations, though [method stop_all] and [method resume_all] might be more fit for this. + Follow [code]method[/code] of [code]object[/code] and apply the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] later. Methods are animated by calling them with consequitive values. + [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. - + - - Returns true if repeat has been set from editor GUI or [method set_repeat]. - - - - + + + + + + + + + + + + + + + + + - Make the tween repeat after all tweens have finished. + Follow [code]property[/code] of [code]object[/code] and apply it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Note that [code]target:target_property[/code] would equal [code]object:property[/code] at the end of the tween. + [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. - - - + + + - Set the speed multiplier of the tween. Set it to 1 for normal speed, 2 for two times nromal speed, and 0.5 for half of the normal speed. Setting it to 0 would pause the animation, but you might consider using [method set_active] or [method stop_all] and [method resume_all] for this. + Returns the time needed for all tweens to end in seconds, measured from the start. Thus, if you have two tweens, one ending 10 seconds after the start and the other - 20 seconds, it would return 20 seconds, as by that time all tweens would have finished. @@ -41813,46 +41907,122 @@ This method controls whether the position between two cached points is interpola Returns the speed that has been set from editor GUI or [method set_repeat]. - - + + + + + Returns the process mode that has been set from editor GUI or [method set_tween_process_mode] + + + + + + + + + + + + + + + + + + + + - Set whether the Tween uses [code]_process[/code] or [code]_fixed_process[/code] (accepts TWEEN_PROCESS_IDLE and TWEEN_PROCESS_FIXED constants, respectively). + Call [code]callback[/code] of [code]object[/code] after [code]times_in_sec[/code]. [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. - - + + + + + + + + + + + + + + + + + + - Returns the process mode that has been set from editor GUI or [method set_tween_process_mode] + Call [code]callback[/code] of [code]object[/code] after [code]times_in_sec[/code] on the main thread (similar to [methog Object.call_deferred). [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. - + + + + + + + + + + + + + + + + + - Start the tween node. You can define tweens both before and after this. + Animate [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. + [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. - + - + + + + + + + + + + + + + - Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. + Animate [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. + [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. - + - Resets all tweens to their initial values (the ones given, not those before the tween). + Returns true if any tweens are currently running, and false otherwise. Note that this method doesn't consider tweens that have ended. - + + + + + Returns true if repeat has been set from editor GUI or [method set_repeat]. + + + @@ -41860,17 +42030,17 @@ This method controls whether the position between two cached points is interpola - Stop animating a tween, given its object and property/method pair. + Stop animating and completely remove a tween, given its object and property/method pair. - + - Stop animating all tweens. + Stop animating and completely remove all tweens. - + @@ -41878,17 +42048,17 @@ This method controls whether the position between two cached points is interpola - Continue animating a stopped tween, given its object and property/method pair. + Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. - + - Continue animating all stopped tweens. + Resets all tweens to their initial values (the ones given, not those before the tween). - + @@ -41896,14 +42066,14 @@ This method controls whether the position between two cached points is interpola - Stop animating and completely remove a tween, given its object and property/method pair. + Continue animating a stopped tween, given its object and property/method pair. - + - Stop animating and completely remove all tweens. + Continue animating all stopped tweens. @@ -41915,152 +42085,71 @@ This method controls whether the position between two cached points is interpola Seek the animation to the given [code]time[/code] in seconds. - - - + + + - Returns the current time of the tween. + Activate/deactivate the tween. You can use this for pausing animations, though [method stop_all] and [method resume_all] might be more fit for this. - - - + + + - Returns the time needed for all tweens to end in seconds, measured from the start. Thus, if you have two tweens, one ending 10 seconds after the start and the other - 20 seconds, it would return 20 seconds, as by that time all tweens would have finished. + Make the tween repeat after all tweens have finished. - - - - - - - - - - - - - - - - - - + + - Animate [code]property[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. - [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. + Set the speed multiplier of the tween. Set it to 1 for normal speed, 2 for two times nromal speed, and 0.5 for half of the normal speed. Setting it to 0 would pause the animation, but you might consider using [method set_active] or [method stop_all] and [method resume_all] for this. - - - - - - - - - - - - - - - - - - + + - Animate [code]method[/code] of [code]object[/code] from [code]initial_val[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. - [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. + Set whether the Tween uses [code]_process[/code] or [code]_fixed_process[/code] (accepts TWEEN_PROCESS_IDLE and TWEEN_PROCESS_FIXED constants, respectively). - + - - - - - - - - - - - - - - - - - Call [code]callback[/code] of [code]object[/code] after [code]times_in_sec[/code]. [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. + Start the tween node. You can define tweens both before and after this. - + - - - - - - - - - - - - - + - Call [code]callback[/code] of [code]object[/code] after [code]times_in_sec[/code] on the main thread (similar to [methog Object.call_deferred). [code]arg1[/code]-[code]arg5[/code] are arguments to be passed to the callback. + Stop animating a tween, given its object and property/method pair. - + - - - - - - - - - - - - - - - - - - - Follow [code]property[/code] of [code]object[/code] and apply it on [code]target_property[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Note that [code]target:target_property[/code] would equal [code]object:property[/code] at the end of the tween. - [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. + Stop animating all tweens. - + - + - + - + @@ -42071,7 +42160,7 @@ This method controls whether the position between two cached points is interpola - Follow [code]method[/code] of [code]object[/code] and apply the returned value on [code]target_method[/code] of [code]target[/code], beginning from [code]initial_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] later. Methods are animated by calling them with consequitive values. + Animate [code]method[/code] of [code]object[/code] from the value returned by [code]initial.initial_method[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. @@ -42101,30 +42190,11 @@ This method controls whether the position between two cached points is interpola [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. - - + + - - - - - - - - - - - - - - - - - - - Animate [code]method[/code] of [code]object[/code] from the value returned by [code]initial.initial_method[/code] to [code]final_val[/code] for [code]times_in_sec[/code] seconds, [code]delay[/code] seconds later. Methods are animated by calling them with consecuitive values. - [code]trans_type[/code] accepts TRANS_* constants, and is the way the animation is interpolated, while [code]ease_type[/code] accepts EASE_* constants, and controls the place of the interpolation (the begining, the end, or both). You can read more about them in the class description. + Returns the current time of the tween. @@ -42138,35 +42208,41 @@ This method controls whether the position between two cached points is interpola This signal is emitted when a tween ends. - + - - - - - This signal is emitted each step of the tweening. + This signal is emitted when a tween starts. - + + + + + - This signal is emitted when a tween starts. + This signal is emitted each step of the tweening. - - The [Tween] should use [code]_fixed_process[/code] for timekeeping when this is enabled. + + Signifies that the interpolation should be focused in the beginning. - - The [Tween] should use [code]_process[/code] for timekeeping when this is enabled (default). + + Signifies that the interpolation should be focused in the end. + + + Signifies that the interpolation should be focused in both ends. + + + Signifies that the interpolation should be focused in both ends, but they should be switched (a bit hard to explain, try it for yourself to be sure). Means that the animation is interpolated linearly. @@ -42174,6 +42250,9 @@ This method controls whether the position between two cached points is interpola Means that the animation is interpolated using a sine wave. + + Means that the animation is interpolated backing out at edges. + Means that the animation is interpolated with a quinary (to the power of 5) function. @@ -42198,20 +42277,11 @@ This method controls whether the position between two cached points is interpola Means that the animation is interpolated by bouncing at, but never surpassing, the end. - - Means that the animation is interpolated backing out at edges. - - - Signifies that the interpolation should be focused in the beginning. - - - Signifies that the interpolation should be focused in the end. - - - Signifies that the interpolation should be focused in both ends. + + The [Tween] should use [code]_fixed_process[/code] for timekeeping when this is enabled. - - Signifies that the interpolation should be focused in both ends, but they should be switched (a bit hard to explain, try it for yourself to be sure). + + The [Tween] should use [code]_process[/code] for timekeeping when this is enabled (default). @@ -42227,24 +42297,6 @@ This method controls whether the position between two cached points is interpola functions or property changes, then commiting the action. - - - - - - - Create a new action. After this is called, do all - your calls to [method add_do_method], - [method add_undo_method], [method add_do_property] - and [method add_undo_property]. - - - - - Commit the action. All 'do' methods/properties are - called/set when this function is called. - - @@ -42265,6 +42317,26 @@ This method controls whether the position between two cached points is interpola arguments. + + + + + + + + + Set a property with a custom value. + + + + + + + Add a 'do' reference that will be erased if the 'do' + history is lost. This is useful mostly for new nodes + created for the 'do' call. Do not use for resources. + + @@ -42286,17 +42358,6 @@ This method controls whether the position between two cached points is interpola calls. - - - - - - - - - Set a property with a custom value. - - @@ -42308,15 +42369,6 @@ This method controls whether the position between two cached points is interpola Undo setting of a property with a custom value. - - - - - Add a 'do' reference that will be erased if the 'do' - history is lost. This is useful mostly for new nodes - created for the 'do' call. Do not use for resources. - - @@ -42333,6 +42385,24 @@ This method controls whether the position between two cached points is interpola references. + + + Commit the action. All 'do' methods/properties are + called/set when this function is called. + + + + + + + + + Create a new action. After this is called, do all + your calls to [method add_do_method], + [method add_undo_method], [method add_do_property] + and [method add_undo_property]. + + @@ -42386,24 +42456,24 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - - - + + + @@ -42417,22 +42487,22 @@ This method controls whether the position between two cached points is interpola - + - - - + - + - + + + @@ -42465,16 +42535,16 @@ This method controls whether the position between two cached points is interpola - + - - + + @@ -42491,11 +42561,11 @@ This method controls whether the position between two cached points is interpola - + - + @@ -42507,6 +42577,17 @@ This method controls whether the position between two cached points is interpola 2-element structure that can be used to represent positions in 2d-space, or any other pair of numeric values. + + + + + + + + + Constructs a new Vector2 from the given x and y. + + @@ -42677,31 +42758,20 @@ This method controls whether the position between two cached points is interpola Returns a perpendicular vector. - - - - - - - - - Constructs a new Vector2 from the given x and y. - - + + Height of the vector (Same as Y). + + + Width of the vector (Same as X). + X component of the vector. Y component of the vector. - - Width of the vector (Same as X). - - - Height of the vector (Same as Y). - @@ -42714,6 +42784,15 @@ This method controls whether the position between two cached points is interpola An Array specifically designed to hold Vector2. + + + + + + + Construct a new [Vector2Array]. Optionally, you can pass in an Array that will be converted. + + @@ -42744,15 +42823,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Construct a new [Vector2Array]. Optionally, you can pass in an Array that will be converted. - - @@ -42765,6 +42835,19 @@ This method controls whether the position between two cached points is interpola Vector3 is one of the core classes of the engine, and includes several built-in helper functions to perform basic vector math operations. + + + + + + + + + + + Returns a Vector3 with the given components. + + @@ -42928,19 +43011,6 @@ This method controls whether the position between two cached points is interpola Return a copy of the vector, snapped to the lowest neared multiple. - - - - - - - - - - - Returns a Vector3 with the given components. - - @@ -42973,6 +43043,15 @@ This method controls whether the position between two cached points is interpola An Array specifically designed to hold Vector3. + + + + + + + Construct a new Vector3Array. Optionally, you can pass in an Array that will be converted. + + @@ -43003,15 +43082,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Construct a new Vector3Array. Optionally, you can pass in an Array that will be converted. - - @@ -43022,37 +43092,42 @@ This method controls whether the position between two cached points is interpola - - - + + + - + - - - + + + - - + + + Returns the VehicleBody's velocity vector. To get the absolute speed in scalar value, get the length of the return vector in pixels/second. Example: + [codeblock] + # vehicle is an instance of VehicleBody + var speed = vehicle.get_linear_velocity().length() + [/codeblock] - - - + + + - + @@ -43064,33 +43139,28 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + - - - + + + - Returns the VehicleBody's velocity vector. To get the absolute speed in scalar value, get the length of the return vector in pixels/second. Example: - [codeblock] - # vehicle is an instance of VehicleBody - var speed = vehicle.get_linear_velocity().length() - [/codeblock] @@ -43103,62 +43173,62 @@ This method controls whether the position between two cached points is interpola - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - + - - - + + + - - + + @@ -43169,57 +43239,57 @@ This method controls whether the position between two cached points is interpola - - - + + + - + - - - + + + - - + + - - - + + + - - + + - - - + + + - - + + - - - + + + @@ -43233,89 +43303,85 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - + + + - + + + - - + + - - - + + + - - + + - - - + + + - + - - - + + + - - + + - - - + + + - - + + - - - + - - - + + + @@ -43325,9 +43391,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -43337,27 +43403,31 @@ This method controls whether the position between two cached points is interpola - - - + + + - - + + - - - + + + - - - + + + + + + + @@ -43398,18 +43468,11 @@ This method controls whether the position between two cached points is interpola Finally, viewports can also behave as render targets, in which case they will not be visible unless the associated texture is used to draw. - - - - - Set the viewport rect. If the viewport is child of a control, it will use the same rect as the parent. - - - - + + - Return the viewport rect. If the viewport is child of a control, it will use the same rect as the parent. Otherwise, if the rect is empty, the viewport will use all the allowed space. + Return the 3D world of the viewport, or if no such present, the one of the parent viewport. @@ -43419,32 +43482,11 @@ This method controls whether the position between two cached points is interpola Return the 2D world of the viewport. - - - - - Change the 3D world of the viewport. - - - - - - - Return the 3D world of the viewport. - - - - + + - Return the 3D world of the viewport, or if no such present, the one of the parent viewport. - - - - - - - Set the canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]s. This is relative to the global canvas transform of the viewport. + Return the active 3D camera. @@ -43454,11 +43496,11 @@ This method controls whether the position between two cached points is interpola Get the canvas transform of the viewport. - - - + + + - Set the global canvas transform of the viewport. The canvas transform is relative to this. + Get the total transform of the viewport. @@ -43468,76 +43510,67 @@ This method controls whether the position between two cached points is interpola Get the global canvas transform of the viewport. - - + + - Get the total transform of the viewport. + Get the mouse position, relative to the viewport. - - + + - Return the final, visible rect in global screen coordinates. + Get whether picking for all physics objects inside the viewport is enabled. - - - + + + - If this viewport is a child of another viewport, keep the previously drawn background visible. + Return the viewport rect. If the viewport is child of a control, it will use the same rect as the parent. Otherwise, if the rect is empty, the viewport will use all the allowed space. - + - Return whether the viewport lets whatever is behind it to show. - - - - - - - - - - - Set the size of the viewport. If the enable parameter is true, it would use the override, otherwise it would use the default size. If the size parameter is equal to [code](-1, -1)[/code], it won't update the size. + Return whether automatic clearing of the render target on each frame is enabled. - - + + - Get the size override set with [method set_size_override]. + Get whether the rendered texture has filters enabled. - + - Get the enabled status of the size override set with [method set_size_override]. + Get whether the rendered texture will have mipmaps generated. - - - + + + - Set whether the size override affects stretch as well. + Get the render target's texture, for use with various objects that you want to texture with the viewport. - - + + - Get the enabled status of the size strech override set with [method set_size_override_stretch]. + Get when the render target would be updated, will be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. - + + + - Queue a multithreaded screenshot, you can retrive it at a later frame via [method get_screen_capture]. + Set whether the render target is flipped on the Y axis. @@ -43547,187 +43580,195 @@ This method controls whether the position between two cached points is interpola Return the captured screenshot after [method queue_screen_capture]. You might need to check more than one frame untill the right image is returned. - - - + + + - Set the viewport's render target mode. + Get the size override set with [method set_size_override]. - - + + - Return whether the viewport is set as a render target by [method set_as_render_target]. + Get the viewport RID from the visual server. - - - + + + - Set whether the render target should be flipped on the Y axis. + Return the final, visible rect in global screen coordinates. - - + + - Set whether the render target is flipped on the Y axis. + Return the 3D world of the viewport. - - - + + + - Enable/disable automatic clearing of the render target on each frame. You might find it better to disable this if you are using the viewport for rarely updated textures. To clear manually, check [method render_target_clear] + Returs the drag data from the GUI, that was previously returned by [method Control.get_drag_data]. - + - Return whether automatic clearing of the render target on each frame is enabled. + Returs whether there are shown modals on-screen. - + + + - Clear the render target manually. + Return whether the viewport lets whatever is behind it to show. - - + + - Set whether the rendered texture should have filters enabled. Disable if you want the texture's pixels be visible. - + - Get whether the rendered texture has filters enabled. + Returns whether the viewport sends sounds to the speakers. - - - + + + - Set whether the rendered texture should have mipmaps generated. Mipmaps allow the texture to have better antialiasing from far away. + Returns whether the viewport sends soundsfrom 2D emitters to the speakers. - + - Get whether the rendered texture will have mipmaps generated. + Return whether input to the viewport is disabled. - - - + + + - Set when the render target should be updated, has to be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. + Return whether the viewport is set as a render target by [method set_as_render_target]. - - + + - Get when the render target would be updated, will be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. + Get the enabled status of the size override set with [method set_size_override]. - - + + - Get the render target's texture, for use with various objects that you want to texture with the viewport. + Get the enabled status of the size strech override set with [method set_size_override_stretch]. - - - + + + - Enable/disable picking for all physics objects inside the viewport. + Return whether the viewport is using a world separate from the parent viewport's world. - - - + - Get whether picking for all physics objects inside the viewport is enabled. + Queue a multithreaded screenshot, you can retrive it at a later frame via [method get_screen_capture]. - - - + - Get the viewport RID from the visual server. + Clear the render target manually. - - + + + Makes the viewport send sounds to the speakers. - - + + + Makes the viewport send sounds from 2D emitters to the speakers. - + + + - Force update of the 2D and 3D worlds. + Set the viewport's render target mode. - - + + - Make the viewport use a world separate from the parent viewport's world. + Set the canvas transform of the viewport, useful for changing the on-screen positions of all child [CanvasItem]s. This is relative to the global canvas transform of the viewport. - - - + + + - Return whether the viewport is using a world separate from the parent viewport's world. + Set whether input to the viewport is disabled. - - - + + + - Return the active 3D camera. + Set the global canvas transform of the viewport. The canvas transform is relative to this. - + - Makes the viewport send sounds to the speakers. + Enable/disable picking for all physics objects inside the viewport. - - - + + + - Returns whether the viewport sends sounds to the speakers. + Set the viewport rect. If the viewport is child of a control, it will use the same rect as the parent. - + - Makes the viewport send sounds from 2D emitters to the speakers. + Enable/disable automatic clearing of the render target on each frame. You might find it better to disable this if you are using the viewport for rarely updated textures. To clear manually, check [method render_target_clear] - - - + + + - Returns whether the viewport sends soundsfrom 2D emitters to the speakers. + Set whether the rendered texture should have filters enabled. Disable if you want the texture's pixels be visible. + + + + + + + Set whether the rendered texture should have mipmaps generated. Mipmaps allow the texture to have better antialiasing from far away. @@ -43737,46 +43778,75 @@ This method controls whether the position between two cached points is interpola Map a part of the screen to the render target directly. - - - + + + - Get the mouse position, relative to the viewport. + Set when the render target should be updated, has to be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. - - + + - Wrap the mouse to a position, relative to the viewport. + Set whether the render target should be flipped on the Y axis. - - - + + + + + + + - Returs whether there are shown modals on-screen. + Set the size of the viewport. If the enable parameter is true, it would use the override, otherwise it would use the default size. If the size parameter is equal to [code](-1, -1)[/code], it won't update the size. - - - + + + - Returs the drag data from the GUI, that was previously returned by [method Control.get_drag_data]. + Set whether the size override affects stretch as well. - - + + - Set whether input to the viewport is disabled. + If this viewport is a child of another viewport, keep the previously drawn background visible. - - - + + + - Return whether input to the viewport is disabled. + Make the viewport use a world separate from the parent viewport's world. + + + + + + + Change the 3D world of the viewport. + + + + + + + + + + + Force update of the 2D and 3D worlds. + + + + + + + Wrap the mouse to a position, relative to the viewport. @@ -43810,25 +43880,25 @@ This method controls whether the position between two cached points is interpola Used to display a [Viewport] node at some position in the world, without having to mess with [RenderTargetTexture]s. - - - + + + - Set the path to the shown [Viewport] node. + Get color modulation for the texture. All texture pixels are multiplied by this color. - - + + - Return the path to the shown [Viewport] node. + get the offset to the origin of the texture. - - - + + + - Set whether the viewport's texture should be centered on the origin. + Return the path to the shown [Viewport] node. @@ -43838,18 +43908,11 @@ This method controls whether the position between two cached points is interpola Return whether the viewport's texture is centered on the origin. - - + + - Set the offset to the origin of the texture. - - - - - - - get the offset to the origin of the texture. + Set whether the viewport's texture should be centered on the origin. @@ -43859,11 +43922,18 @@ This method controls whether the position between two cached points is interpola Set color modulation for the texture. All texture pixels are multiplied by this color. Color may contain rgb values above 1 to achieve a highlight effect. - - - + + + - Get color modulation for the texture. All texture pixels are multiplied by this color. + Set the offset to the origin of the texture. + + + + + + + Set the path to the shown [Viewport] node. @@ -43878,32 +43948,32 @@ This method controls whether the position between two cached points is interpola The VisibilityEnabler will disable [RigidBody] and [AnimationPlayer] nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler itself. - + + + - - - Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler is not in view. See the constants for enablers and what they affect. + Returns whether the specified enabler was set to true or not. - - - + + + - Returns whether the specified enabler was set to true or not. + Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler is not in view. See the constants for enablers and what they affect. - - This enabler will freeze [RigidBody] nodes. - This enabler will pause [AnimationPlayer] nodes. + + This enabler will freeze [RigidBody] nodes. + @@ -43916,43 +43986,43 @@ This method controls whether the position between two cached points is interpola The VisibilityEnabler2D will disable [RigidBody2D], [AnimationPlayer], and other nodes when they are not visible. It will only affect other nodes within the same scene as the VisibilityEnabler2D itself. - + + + - - - Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler2D is not in view. See the constants for enablers and what they affect. + Returns whether the specified enabler was set to true or not. - - - + + + - Returns whether the specified enabler was set to true or not. + Set an enabler to true for all nodes of its type to be disabled when the VisibilityEnabler2D is not in view. See the constants for enablers and what they affect. - - This enabler will freeze [RigidBody2D] nodes. - This enabler will pause [AnimationPlayer] nodes. + + This enabler will freeze [RigidBody2D] nodes. + This enabler will stop [Particles2D] nodes. - - This enabler will stop the parent's _process function. This enabler will stop the parent's _fixed_process function. + + @@ -43965,13 +44035,6 @@ This method controls whether the position between two cached points is interpola The VisibilityNotifier is used to notify when its bounding box enters the screen, is visible on the screen, or when it exits the screen. - - - - - Set the visibility bounding box of the VisibilityNotifier. - - @@ -43986,13 +44049,15 @@ This method controls whether the position between two cached points is interpola Return true if any part of the bounding box is on the screen. - - - + + + - Emitted when the VisibilityNotifier enters the screen. + Set the visibility bounding box of the VisibilityNotifier. - + + + @@ -44000,9 +44065,9 @@ This method controls whether the position between two cached points is interpola Emitted when the VisibilityNotifier enters a [Camera]'s view. - + - Emitted when the VisibilityNotifier exits the screen. + Emitted when the VisibilityNotifier enters the screen. @@ -44012,6 +44077,11 @@ This method controls whether the position between two cached points is interpola Emitted when the VisibilityNotifier exits a [Camera]'s view. + + + Emitted when the VisibilityNotifier exits the screen. + + @@ -44024,13 +44094,6 @@ This method controls whether the position between two cached points is interpola The VisibilityNotifier2D is used to notify when its bounding rectangle enters the screen, is visible on the screen, or when it exits the screen. - - - - - Set the visibility bounding rectangle of the VisibilityNotifier2D. - - @@ -44045,6 +44108,13 @@ This method controls whether the position between two cached points is interpola Return true if any part of the bounding rectangle is on the screen. + + + + + Set the visibility bounding rectangle of the VisibilityNotifier2D. + + @@ -44081,6 +44151,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -44093,12 +44169,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -44112,153 +44182,173 @@ This method controls whether the position between two cached points is interpola The visual server is completely opaque, the internals are entirely implementation specific and cannot be accessed. - - - - - - - - - - + + - + + + + + - - + + - + + + + + - - + + - - - - - + + + + + + + - - - + - - - - - + - - - - - - - + + + - - + + - + - + - - + + - + + + + + - - - + + + + + + + + + - + - + - + - + - + + + + + + + + + - + - + - + + + + + + + - - - + - + + + + + + + + + - + - - - - + + - - - + + + @@ -44266,69 +44356,81 @@ This method controls whether the position between two cached points is interpola - - + + - - + + + + + + - + - + + + + + - + - + + + + + - + + + - + - + - + + + + + - + - - - + - + - - - + - + - - - + @@ -44336,137 +44438,119 @@ This method controls whether the position between two cached points is interpola - - - - + + - - - - + + - + - + + + - - - - + + + + - - - + - + - - - - - - + + + + - + + + + + + + - - - + - - - + - + - - - - + + - - - - + + - - - - + + - - - + - - - - - - - + @@ -44474,106 +44558,104 @@ This method controls whether the position between two cached points is interpola - + + + - - - - + + - + + + - - - - + + - + - - - + - - - + - + - + - - - + - - + + - + - + - - + + + + - + - - + + - + + + + + - - - - - - + + + + - - + + @@ -44582,27 +44664,25 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - - + + - - - + + + @@ -44610,65 +44690,59 @@ This method controls whether the position between two cached points is interpola - - + + - + + + - - - - - - - + + + - + - - - + - - - - + + - + - + - + - + - + @@ -44676,23 +44750,25 @@ This method controls whether the position between two cached points is interpola - - + + - + + + + + - + - - - + @@ -44700,109 +44776,113 @@ This method controls whether the position between two cached points is interpola - + + + - - - - + + - - - + - + - - + + - + - + - - - + + + + + - + - + - - - + + + + + - + + + + + + + + + - + + + + + - - - + - + - + - - - - - - - - - + @@ -44810,18 +44890,16 @@ This method controls whether the position between two cached points is interpola - + - - - - + + @@ -44830,213 +44908,221 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - + - - + + + + - + - - - - - + - - + + + + - + - + + + + + - - + + - - - + + + - + - - + + - + + + - + - - + + + + - - - + + + + + + + - + - - - + - + - + - - - - - + - + - + - + - + + + - - - - + + + + - + + + - + - - + + - - + + + + - + + + - + - + + + - - - + + + - + - - + + - - - - @@ -45044,93 +45130,95 @@ This method controls whether the position between two cached points is interpola - - + + + + - - + + - - + + - + - + - - - + + + + + - + - - - - - - - + - + - + - - - + + + + + - + - + + + - - - + + + - + @@ -45138,115 +45226,107 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - - + + + + - - - - + + - + - + - - - - + + - + - - - - - - - + - - - + + + - + - - + + + + - - + + + + - + + + - - - - + + - + - + - + - - - + - + @@ -45254,43 +45334,43 @@ This method controls whether the position between two cached points is interpola - + - + - - + + + + + + + + - - - + - + - - + + - - - - - + @@ -45298,286 +45378,276 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - + + - - + + + + - + + + + + - + - + + + - - - - - - - - - + - + - - - - - - - + - + - + + + + + + + + + - - - - - - - - - - - + - - - - - + - - - - + + + + + + + + + + + + + + - + - + + + - + + + - - - - + + + + - + - - - + - - - - + + - - + + - + - - - - - - + + - + - - - - - - - - - + + + - + - - - - - + - + + + - - - + + + + + - + + + + + - + + + + + - - + + + + - - - - + + + + - - - - - - - - - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + + + + + + + + + @@ -45588,153 +45658,153 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + - + @@ -45765,11 +45835,11 @@ This method controls whether the position between two cached points is interpola Windowdialog is the base class for all window-based dialogs. It's a by-default toplevel [Control] that draws a window decoration and allows motion and resizing. - - - + + + - Set the title of the window. + Return the close [TextureButton]. @@ -45779,34 +45849,34 @@ This method controls whether the position between two cached points is interpola Return the title of the window. - - - + + + - Return the close [TextureButton]. + Set the title of the window. - + - + - + - - - + - + - + + + @@ -45818,39 +45888,39 @@ This method controls whether the position between two cached points is interpola Class that has everything pertaining to a world. A physics space, a visual scenario and a sound space. Spatial nodes register their resources into the current world. - - + + - - + + - + - - - + + + - - + + - - - + + + @@ -45872,8 +45942,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -45884,8 +45954,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -45900,18 +45970,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -45922,76 +45992,76 @@ This method controls whether the position between two cached points is interpola - + - - + + + + - + + + - - + + - - + + + + - - + + + + - + - - - + - - - - + + - - - - + + - - - - + + @@ -46004,40 +46074,40 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + - + - + - - - + - + + + + + @@ -46064,13 +46134,6 @@ This method controls whether the position between two cached points is interpola Sort all child nodes based on their Y positions. The child node must inherit from [CanvasItem] for it to be sorted. Nodes that have a higher Y position will be drawn later, so they will appear on top of nodes that have a lower Y position. - - - - - Set whether the children nodes are sorted or not. (default true) - - @@ -46078,6 +46141,13 @@ This method controls whether the position between two cached points is interpola Returns true if the children nodes are being sorted. + + + + + Set whether the children nodes are sorted or not. (default true) + + -- cgit v1.2.3