From 5b3551a91f44f2e7ada7019d6d624738a7385a51 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9mi=20Verschelde?= Date: Sat, 25 Jun 2016 01:52:14 +0200 Subject: [PATCH] classref: Sync with the new sorting behaviour --- doc/base/classes.xml | 42280 ++++++++++++++++++++--------------------- 1 file changed, 21140 insertions(+), 21140 deletions(-) diff --git a/doc/base/classes.xml b/doc/base/classes.xml index fa1ee7a1f4e..032b9d39ed9 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. + Make a color from red, green, blue and alpha. Arguments can range from 0 to 255. - + - Standard cosine function. + Remove sign (works for integer and float). - + - Standard tangent function. - - - - - - - - - Hyperbolic sine. - - - - - - - - - Hyperbolic cosine. - - - - - - - - - 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,13 +79,142 @@ Arc-tangent that takes a 2D vector as argument, returns the full -pi to +pi range. - + + + + + + + Decode a byte array back to a value. + + + - Square root. + Ceiling (rounds up to nearest integer). + + + + + + + + + + + + + Clamp both values to a range. + + + + + + + + + + + Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in [@Global Scope]. + + + + + + + + + Standard cosine function. + + + + + + + + + Hyperbolic cosine. + + + + + + + + + Convert from decibels to linear energy (audio). + + + + + + + + + Return the amount of decimals in the floating point value. + + + + + + + + + + + + + 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. + + + + + + + + + + + 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. + + + + + + + + + Exponential logarithm. + + + + + + + + + Floor (rounds down to nearest integer). @@ -131,87 +239,42 @@ Module (remainder of x/y) that wraps equally in positive and negative. - - + + - + + + - Floor (rounds down to nearest integer). + Return a reference to the specified function. - - + + - + - Ceiling (rounds up to nearest integer). + Hash the variable passed and return an integer. - - + + - + - Round to nearest integer. + Convert a script class instance to a dictionary (useful for serializing). - - + + - + - Remove sign (works for integer and float). - - - - - - - - - Return sign (-1 or +1). - - - - - - - - - - - Power function, x elevate to y. - - - - - - - - - Natural logarithm. - - - - - - - - - Exponential logarithm. - - - - - - - - - Return true if the float is not a number. + Get an object by its ID. @@ -223,35 +286,13 @@ Return true if the float is infinite. - + - - - 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. - - - - - - - - - - - Snap float value to a given step. + Return true if the float is not a number. @@ -267,87 +308,6 @@ Linear interpolates between two values by a normalized value. - - - - - - - - - - - Decreases time by a specified amount. - - - - - - - Reset the seed of the random number generator with a new, different one. - - - - - - - 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). - - - - - - - - - - - Random range, any floating point value between 'from' and 'to' - - - - - - - - - Set seed for the random number generator. - - - - - - - - - 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. - - @@ -357,13 +317,22 @@ Convert from linear energy to decibels (audio). - - + + - + - Convert from decibels to linear energy (audio). + Load a resource from the filesystem, pass a valid path as argument. + + + + + + + + + Natural logarithm. @@ -388,19 +357,6 @@ Return the minimum of two values. - - - - - - - - - - - Clamp both values to a range. - - @@ -410,55 +366,24 @@ 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. - - - - - - - - - - - Convert from a type to another in the best way possible. The "type" parameter uses the enum TYPE_* in [@Global Scope]. - - - - - - - - - Return the internal type of the given Variant object, using the TYPE_* enum in [@Global Scope]. - - - - - - - - - - - Convert one or more arguments to strings in the best way possible. + Preload a resource from the filesystem. The resource is loaded during script parsing. @@ -472,26 +397,11 @@ Print one or more arguments to strings in the best way possible to a console line. - + - - - - - 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. + Print a stack track at code location, only works when running with debugger turned on. @@ -516,40 +426,76 @@ Print one or more arguments to strings in the best way possible to console. No newline is added at the end. - - + + - + + + - Convert a value to a formatted string that can later be parsed using [method str2var]. + Print one or more arguments to the console with a space between each argument. - - + + - + + + - Convert a formatted string that was returned by [method var2str] to the original value. + Print one or more arguments to the console with a tab between each argument. - - + + - + - Encode a variable value to a byte array. + Convert from radians to degrees. - - + + - + + + - Decode a byte array back to a value. + Random range, any floating point value between 'from' and 'to' + + + + + + + + + Random from seed, pass a seed and an array with both number and new seed is returned. + + + + + + + Random value (0 to 1 float). + + + + + + + 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. + + + + + + + Reset the seed of the random number generator with a new, different one. @@ -561,80 +507,143 @@ 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). - - - - - - - - - Convert a previously converted instances to dictionary back into an instance. Useful for deserializing. - - - - - - - - - Hash the variable passed and return an integer. - - - - - - - - - - - - - - - Make a color from red, green, blue and alpha. Arguments can range from 0 to 255. - - - + - - Print a stack track at code location, only works when running with debugger turned on. - - - - - - + - Get an object by its ID. + Set seed for the random number generator. - - + + - + - Preload a resource from the filesystem. The resource is loaded during script parsing. + Return sign (-1 or +1). + + + + + + + + + Standard sine function. + + + + + + + + + Hyperbolic sine. + + + + + + + + + Square root. + + + + + + + + + + + Snap float value to a given step. + + + + + + + + + + + Convert one or more arguments to strings in the best way possible. + + + + + + + + + Convert a formatted string that was returned by [method var2str] to the original value. + + + + + + + + + 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. @@ -650,15 +659,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. - - @@ -677,8 +677,14 @@ - - [Performance] singleton + + [AudioServer] singleton + + + [AudioServer] singleton + + + [Geometry] singleton [Globals] singleton @@ -686,8 +692,35 @@ [IP] singleton - - [Geometry] singleton + + [Input] singleton + + + [InputMap] singleton + + + [Marshalls] singleton + + + [OS] singleton + + + [PhysicsServer] singleton + + + [Physics2DServer] singleton + + + [PathRemap] singleton + + + [Performance] singleton + + + [Physics2DServer] singleton + + + [PhysicsServer] singleton [ResourceLoader] singleton @@ -695,82 +728,139 @@ [ResourceSaver] singleton - - [PathRemap] singleton - - - [OS] singleton - - - [Marshalls] singleton - - - [TranslationServer] singleton - - - [TranslationServer] singleton - - - [Input] singleton - - - [InputMap] singleton - - - [VisualServer] singleton - - - [VisualServer] singleton - - - [AudioServer] singleton - - - [AudioServer] singleton - - - [PhysicsServer] singleton - - - [PhysicsServer] singleton - - - [Physics2DServer] singleton - - - [Physics2DServer] singleton - - - [SpatialSoundServer] singleton - [SpatialSoundServer] singleton - - [SpatialSound2DServer] 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. @@ -781,17 +871,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 @@ -919,54 +1224,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) @@ -1082,232 +1339,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 + + Add Key on Numpad - - % key + + Number 0 on Numpad - - & key + + Number 1 on Numpad - - ' key + + Number 2 on Numpad - - ( key + + Number 3 on Numpad - - ) key + + Number 4 on Numpad - - * key + + Number 5 on Numpad - - + key + + Number 6 on Numpad - - , key + + Number 7 on Numpad - - - key + + Number 8 on Numpad - - . 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 - - - } key - - - ~ key - - - - - - - ¢ key - - - - - - - - - ¦ key - - - § key + + Number 9 on Numpad ¨ key @@ -1440,345 +1518,253 @@ - - - - - - - - - + - + + Space Key + + + ! key + + + + + + + + + " key + + + # key + + + $ key + + + % key + + + & key + + + ' key + + + ( key + + + ) key + + + * key + + + + key + + + , key + + + - key + + + . key + + + / key + + + Number 0 + + + Number 1 + + + Number 2 + + + Number 3 + + + Number 4 + + + Number 5 - + + Number 6 - - Left Mouse Button + + Number 7 - - Right Mouse Button + + Number 8 - - Middle Mouse Button + + Number 9 - - Mouse wheel up + + : key - - Mouse wheel down + + ; key - - Mouse wheel left button + + Lower than key - - Mouse wheel right button + + = key - + + Greater than key - + + ? key - + + @ key - - Joystick Button 0 + + A Key - - Joystick Button 1 + + B Key - - Joystick Button 2 + + C Key - - Joystick Button 3 + - - Joystick Button 4 + + D Key - - Joystick Button 5 + + E Key - - Joystick Button 6 + + F Key - - Joystick Button 7 + + G Key - - Joystick Button 8 + + H Key - - Joystick Button 9 + + I Key - - Joystick Button 10 + + J Key - - Joystick Button 11 + + K Key - - Joystick Button 12 + + L Key - - Joystick Button 13 + + M Key - - Joystick Button 14 + + N Key - - Joystick Button 15 + + O Key - - Joystick Button 16 + + P Key - - Super Nintendo Entertaiment System controller A button + + Q Key - - Super Nintendo Entertaiment System controller B button + + R Key - - Super Nintendo Entertaiment System controller X button + + S Key - - Super Nintendo Entertaiment System controller Y button + + T Key - - DUALSHOCK circle button + + U Key - - DUALSHOCK X button + + V Key - - DUALSHOCK square button + + W Key - - DUALSHOCK triangle button + + X Key - - SEGA controller B button + + Y Key - - SEGA controller A button + + Z Key - - SEGA controller X button + + [ key - - SEGA controller Y button + + \ key - - XBOX controller B button + + ] key - - XBOX controller A button + + ^ key - - XBOX controller X button + + _ key - - XBOX controller Y button + - + + Left margin, used usually for [Control] or [StyleBox] derived classes. - + + 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. - - Joystick Button Select + - - Joystick Button Start + - - Joystick DPad Up + - - Joystick DPad Down + - - Joystick DPad Left + - - Joystick DPad Right + - - Joystick Left Shoulder Button + - - Joystick Left Trigger - - - Joystick Left Stick Click - - - Joystick Right Shoulder Button - - - Joystick Right Trigger - - - Joystick Right Stick Click - - - Joystick Left Stick Horizontal Axis - - - Joystick Left Stick Vertical Axis - - - Joystick Right Stick Horizontal Axis - - - Joystick Right Stick Vertical Axis - - - - - - - Joystick Left Trigger Analog Axis - - - Joystick Right Trigger Analog Axis - - - - - 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". @@ -1801,32 +1787,34 @@ - - 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). @@ -1834,30 +1822,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]. @@ -1888,6 +1852,9 @@ Variable is of type [InputEvent]. + + Variable is of type [int]. + Variable is of type [Dictionary]. @@ -1910,6 +1877,39 @@ + + 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. + @@ -1920,6 +1920,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. + + @@ -2084,28 +2095,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. - @@ -2118,34 +2118,6 @@ 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. - - - - - - - Return the label used for built-in text. - - - - - - - Set whether the dialog is hidden when accepted (default true). - - - - - - - Return true if the dialog will be hidden when accepted (default true). - - @@ -2169,6 +2141,34 @@ Add custom cancel button to the dialog and return the created button. + + + + + Return true if the dialog will be hidden when accepted (default true). + + + + + + + Return the label used for built-in text. + + + + + + + Return the OK Button. + + + + + + + Return the built-in label text. + + @@ -2178,6 +2178,13 @@ Register a [LineEdit] in the dialog. When the enter key is pressed, the dialog will be accepted. + + + + + Set whether the dialog is hidden when accepted (default true). + + @@ -2185,13 +2192,6 @@ Set the built-in label text. - - - - - Return the built-in label text. - - @@ -2218,39 +2218,18 @@ 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. - - - - - When turned on, offset at (0,0) is the center of the sprite, when off, the top-left corner is. - - - - + + - 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 color modulation for this sprite. @@ -2260,11 +2239,18 @@ Return the offset of the sprite in the node origin. - - - + + + - If true, sprite is flipped horizontally. + Get the [SpriteFrames] resource, which contains all frames. + + + + + + + Return true when centered. See [method set_centered]. @@ -2274,13 +2260,6 @@ Return true if sprite is flipped horizontally. - - - - - If true, sprite is flipped vertically. - - @@ -2288,6 +2267,27 @@ Return true if sprite is flipped vertically. + + + + + When turned on, offset at (0,0) is the center of the sprite, when off, the top-left corner is. + + + + + + + If true, sprite is flipped horizontally. + + + + + + + If true, sprite is flipped vertically. + + @@ -2295,13 +2295,6 @@ Set the visible sprite frame index (from the list of frames inside the [SpriteFrames] resource). - - - - - Return the visible frame index. - - @@ -2309,11 +2302,18 @@ Change the color modulation (multiplication) for this sprite. - - - + + + - Return the color modulation 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. @@ -2333,9 +2333,9 @@ - - - + + + @@ -2351,9 +2351,9 @@ - - - + + + @@ -2387,45 +2387,9 @@ 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. - - - - - - - - - Get the type of a track. - - - - - - - - - Get the path of a track. for more information on the path format, see [method track_set_path] - - - - - - - - - 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" + Clear the animation (clear all tracks and reset all). @@ -2436,201 +2400,31 @@ - - - - - Move a track up. - - - - - - - Move a track down. - - - - - - - - - - - - - - - - - Insert a transform key for a transform track. - - - - - - - - - - - - - Insert a generic key in a given track. - - - - - - - - - Remove a key by index in a given track. - - - - - - - - - Remove a key by position (seconds) in a given track. - - - - - - - - - - - Set the value of an existing key. - - - - - - - - - - - Set the transition curve (easing) for a specific key (see built-in math function "ease"). - - - + - - - - - Return the transition curve (easing) for a specific key (see built-in math function "ease"). + Return the total length of the animation (in seconds). - - - - - - - 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. - + - - - - - - - Find the key index by time in a given track. Optionally, only find it if the exact time is given. + Return the amount of tracks in the animation. - - - - - - - Set the interpolation type of a given track, from the INTERPOLATION_* enum. - - - - - - - - - Return the interpolation type of a given track, from the INTERPOLATION_* enum. - - - - - - - - - - - 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]). - - - - - - - - - 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. - - - - - - - - - - - - - Return all the key indices of a value track, given a position and delta time. + Return whether the animation has the loop flag set. @@ -2668,6 +2462,13 @@ 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. + + @@ -2675,13 +2476,6 @@ 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. - - - - - Return the total length of the animation (in seconds). - - @@ -2689,41 +2483,238 @@ 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. - - - - - Return whether the animation has the loop flag set. - - - - + + + + + + + + + Find the key index by time in a given track. Optionally, only find it if the exact time is given. - + + + + + - Clear the animation (clear all tracks and reset all). + Return the interpolation type of a given track, from the INTERPOLATION_* enum. + + + + + + + + + Return the amount of keys in a given track. + + + + + + + + + + + Return the time at which the key is located. + + + + + + + + + + + Return the transition curve (easing) for a specific key (see built-in math function "ease"). + + + + + + + + + Return the value of a given key in a given track. + + + + + + + + + Get the path of a track. for more information on the path format, see [method track_set_path] + + + + + + + + + Get the type of a track. + + + + + + + + + + + + + Insert a generic key in a given track. + + + + + + + Move a track down. + + + + + + + Move a track up. + + + + + + + + + Remove a key by index in a given track. + + + + + + + + + Remove a key by position (seconds) in a given track. + + + + + + + + + Set the interpolation type of a given track, from the INTERPOLATION_* enum. + + + + + + + + + + + Set the transition curve (easing) for a specific key (see built-in math function "ease"). + + + + + + + + + + + Set the value of an existing key. + + + + + + + + + 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" + + + + + + + + + + + + + + + + + Insert a transform key for a transform 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]). + + + + + + + + + + + + + Return all the key indices of a value track, given a position and delta time. + + + + + + + + + Return whether interpolation is enabled or disabled for a whole track. By default tracks are interpolated. + + + + + + + + + Enable or disable interpolation for a whole track. By default tracks are interpolated. - - Value tracks set values in node properties, but only those which can be Interpolated. - - - Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are Interpolated. - - - Method tracks call functions with given arguments per key. - No interpolation (nearest value). @@ -2733,6 +2724,15 @@ Cubic interpolation. + + Value tracks set values in node properties, but only those which can be Interpolated. + + + Transform tracks are used to change node local transforms or skeleton pose bones. Transitions are Interpolated. + + + Method tracks call functions with given arguments per key. + @@ -2754,29 +2754,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. - - - - + + - + - Request whether an [Animation] name exist within the player. + + + + + + + + + + + + + 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. + + + + + + + + + Find an animation name by resource. @@ -2795,31 +2812,18 @@ 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]. - + - - - - - - - - - - - - - Specify a blend time (in seconds) between two animations, referenced by their names. + Return the name of the animation that will be automatically played when the scene is loaded. @@ -2833,11 +2837,25 @@ Get the blend time between two animations, referenced by their names. - - - + + + - Set the default blend time between animations. + Return the name of the animation being played. + + + + + + + Get the length (in seconds) of the currently being played animation. + + + + + + + Get the position (in seconds) of the currently being played animation. @@ -2847,6 +2865,50 @@ Return the default blend time between animations. + + + + + Return the playback position (in seconds) in an animation channel (or channel 0 if none is provided). + + + + + + + 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). + + + + + + + + + Request whether an [Animation] name exist within the player. + + + + + + + Return true if the player is active. + + + + + + + Return whether an animation is playing. + + @@ -2869,39 +2931,6 @@ Play a given animation by the animation name in reverse. - - - - - Stop the currently playing animation. - - - - - Stop playback of animations (deprecated). - - - - - - - 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(). - - - - - - - Return the name of the animation being played. - - @@ -2909,66 +2938,20 @@ Queue an animation for playback once the current one is done. - - - If animations are queued to play, clear them. - - - - - - - Set the player as active (playing). If false, it - will do nothing. - - - - - - - Return true if the player is active. - - - - - - - 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 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 name of the animation that will be automatically played when the scene is loaded. + Remove an animation from the player (by supplying the same name used to add it). - - - - - 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]). + Rename an existing animation. @@ -2980,25 +2963,12 @@ 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). - - - - - - + + - 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 player as active (playing). If false, it + will do nothing. @@ -3008,32 +2978,62 @@ 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_*. - - - - - Return the mode in which the animation player processes. See [method set_animation_process_mode]. - - - - - - - Get the position (in seconds) of the currently being played animation. - - - - - - - Get the length (in seconds) of the currently being played animation. - - - - + + - Used to skip ahead or skip back in an animation. Delta is the time in seconds to skip. + Set 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. + + + + + + + Set the current animation (even if no playback occurs). Using set_current_animation() and set_active() are similar to calling play(). + + + + + + + Set the default blend time between animations. + + + + + + + AnimationPlayer resolves animation track paths from this node (which is relative to itself), by default root is "..", but it can be changed. + + + + + + + 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). + + + + + + + Stop the currently playing animation. + + + + + Stop playback of animations (deprecated). @@ -3079,6 +3079,181 @@ Add a node of a given type in the graph with given id. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set the animation for an animation node. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -3088,26 +3263,6 @@ Check if a node exists (by name). - - - - - - - - - Rename a node in the graph. - - - - - - - - - Get the node type, will return from NODE_* enum. - - @@ -3128,44 +3283,55 @@ Return the input source for a given node input. - - - - - - - Set the animation for an animation node. - - - - + + - + + + - + + Get the node type, will return from NODE_* enum. + + + + + + + + + + + Rename a node in the graph. + + + + + + - - + + - + + + - - @@ -3177,16 +3343,24 @@ - + + + - - - - + + + + + + + + + + @@ -3217,27 +3391,29 @@ - - - + + + - - - + + + - - - + + + + + @@ -3253,33 +3429,45 @@ - - - + + + + + - - - - - - + + + + + + - - - - + + - + + + + + + + + + + + + + @@ -3287,64 +3475,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3353,14 +3483,6 @@ - - - - - - - - @@ -3369,10 +3491,18 @@ - + - + + + + + + + + + @@ -3385,7 +3515,25 @@ - + + + + + + + + + + + + + + + + + + + @@ -3403,12 +3551,10 @@ - - - + - + @@ -3421,152 +3567,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -3599,6 +3599,176 @@ 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. + + + + + Return the angular damp rate. + + + + + + + Return the gravity intensity. + + + + + + + Return the falloff factor for point gravity. + + + + + + + Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. + + + + + + + Return the linear damp rate. + + + + + + + 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 processing order of this area. + + + + + + + Return the space override mode. + + + + + + + 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 whether this area can be detected by other, monitoring, areas. + + + + + + + Return whether this area detects bodies/areas entering/exiting it. + + + + + + + + + Return whether the area passed is totally or partially inside this area. + + + + + + + + + Return whether the body passed is totally or partially inside 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. + + + + + + + Set whether this area can detect bodies/areas entering/exiting it. + + + + + + + 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). + + + + + + + Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. + + + + + + + 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]. + + + + + + + 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 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. + + + + + + + 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 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. + + @@ -3611,198 +3781,8 @@ 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. - - - - - - - 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 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 falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. - - - - - - - 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. - - - - - - - Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - - - - - - 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 the gravity intensity. - - - - - - - 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 angular 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 the linear damp rate. - - - - - - - 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 the processing order of 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 this area can be detected by other, monitoring, areas. - - - - - - - Set whether this area can detect bodies/areas entering/exiting it. - - - - - - - Return whether this area detects bodies/areas entering/exiting it. - - - - - - - Return a list of the bodies ([PhysicsBody]) that are totally or partially inside this area. - - - - - - - Return a list of the areas that are totally or partially inside this area. - - - - - - - - - Return whether the body passed is totally or partially inside this area. - - - - - - - - - Return whether the area passed is totally or partially inside 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. - - - - - - - - - - - - - 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. - - @@ -3823,26 +3803,6 @@ 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 a body exits this area. The only parameter passed is the body that exited this area. - - - - - - - - - - - - - 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. - - @@ -3863,6 +3823,46 @@ 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 enters this area. The only parameter passed is the body 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 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 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. + + @@ -3875,6 +3875,242 @@ 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. + + + + + Return the angular damp rate. + + + + + + + Return the physics layers this area can scan for collisions. + + + + + + + + + Return an individual bit on the collision mask. + + + + + + + Return the gravity intensity. + + + + + + + Return the falloff factor for point gravity. + + + + + + + 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. + + + + + + + + + Return an individual bit on the layer mask. + + + + + + + Return the linear damp rate. + + + + + + + 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 processing order of this area. + + + + + + + Return the space override mode. + + + + + + + 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 whether this area can be detected by other, monitoring, areas. + + + + + + + Return whether this area detects bodies/areas entering/exiting it. + + + + + + + + + Return whether the area passed is totally or partially inside this area. + + + + + + + + + Return whether the body passed is totally or partially inside 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. + + + + + + + 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 whether this area can detect bodies/areas entering/exiting it. + + + + + + + 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). + + + + + + + Set the falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. + + + + + + + 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]. + + + + + + + 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 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 an area in/out of only one layer easier. + + + + + + + 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. + + + + + + + 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 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. + + @@ -3887,264 +4123,8 @@ 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. - - - - - - - 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 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 falloff factor for point gravity. The greater this value is, the faster the strength of gravity decreases with the square of distance. - - - - - - - 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. - - - - - - - Return the gravity vector. If gravity is a point (see [method is_gravity_a_point]), this will be the attraction center. - - - - - - - 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 the gravity intensity. - - - - - - - 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 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 the angular damp rate. - - - - - - - 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 the processing order of this area. - - - - - - - Set the physics layers this area can scan for collisions. - - - - - - - Return the physics layers this area can scan for collisions. - - - - - - - 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/clear individual bits on the collision mask. This makes selecting the areas scanned easier. - - - - - - - - - Return an individual bit on the collision mask. - - - - - - - - - Set/clear individual bits on the layer mask. This makes getting an area in/out of only one layer easier. - - - - - - - - - Return an individual bit on the layer mask. - - - - - - - Set whether this area can detect bodies/areas entering/exiting it. - - - - - - - Return whether this area detects bodies/areas entering/exiting it. - - - - - - - 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 this area can be detected by other, monitoring, areas. - - - - - - - Return a list of the bodies ([PhysicsBody2D]) that are totally or partially inside this area. - - - - - - - Return a list of the areas that are totally or partially inside this area. - - - - - - - - - Return whether the body passed is totally or partially inside this area. - - - - - - - - - Return whether the area passed is totally or partially inside 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. - - - - - - - - - - - - - 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. - - @@ -4165,26 +4145,6 @@ 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 a body exits this area. The only parameter passed is the body that exited this area. - - - - - - - - - - - - - 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. - - @@ -4205,6 +4165,46 @@ 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 enters this area. The only parameter passed is the body 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 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 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. + + @@ -4217,6 +4217,69 @@ Generic array, contains several elements of any type, accessible by numerical index starting at 0. 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]. + + @@ -4339,69 +4402,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]. - - @@ -4412,21 +4412,15 @@ - - - - - - - - - + + + @@ -4436,15 +4430,21 @@ + + + + + + - - - + + + @@ -4460,6 +4460,34 @@ 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. + + + + + Free a [RID] resource. + + + + + + + Return the global scale for event-based stream playback. + + + + + + + Return the global scale for all voices. + + + + + + + Return the global scale for stream playback. + + @@ -4474,13 +4502,13 @@ 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. + Return the sample data as an array of bytes. The length will be the expected length in bytes. @@ -4501,15 +4529,6 @@ Return the format of the audio sample, in the form of the SAMPLE_FORMAT_* enum. - - - - - - - Return whether the sample is stereo (2 channels). - - @@ -4519,15 +4538,49 @@ 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 initial 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 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 final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. + + + + + + + + + Return the loop format for a sample, as a value from the SAMPLE_LOOP_* enum. + + + + + + + + + Return the mix rate of the given sample. + + + + + + + + + Return whether the sample is stereo (2 channels). @@ -4543,49 +4596,13 @@ If the sample is stereo ([method sample_is_stereo]), multiply it by 2. - - - + - - Return the sample data as an array of bytes. The length will be the expected length in bytes. - - - - - - + - Change the default mix rate of a given sample. - - - - - - - - - Return the mix rate of the given sample. - - - - - - - - - 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 loop format for a sample, as a value from the SAMPLE_LOOP_* enum. + Set the description of an audio sample. Mainly used for organization. @@ -4597,15 +4614,6 @@ Set the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - - - - - - Return the initial loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - @@ -4615,13 +4623,54 @@ Set the final loop point of a sample. Only has effect if sample loop is enabled. See [method sample_set_loop_format]. - - - + + + - Return the final 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. + + + + + + + + + Change the default mix rate of a given sample. + + + + + + + + + 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 global scale for event-based stream ([EventStream]) playback. Default is 1.0. + + + + + + + Set global scale for all voices (not including streams). Default is 1.0. + + + + + + + Set global scale for stream playback. Default is 1.0. @@ -4631,133 +4680,13 @@ Allocate a voice for playback. Voices are persistent. A voice can play a single sample at the same time. See [method sample_create]. - - - - - - - Start playback of a given voice using a given sample. If the voice was already playing it will be restarted. - - - - - - - - - Change the volume of a currently playing voice. Volume is expressed as linear gain where 0.0 is mute and 1.0 is default. - - - - - - - - - - - - - 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 a resonant filter post processing for the voice. Filter type is a value from the FILTER_* enum. - - - - - - - - - Set chorus send post processing for the voice (from 0 to 1). - - - - - - - - - - - Set the reverb send post processing for the voice (from 0 to 1) and the reverb type, from the REVERB_* enum. - - - - - - - - - Set a different playback mix rate for the given voice. - - - - - - - - - Set whether a given voice is positional. This is only interpreted as a hint and used for backends that may support binaural encoding. - - - + - Return the current volume for a given voice. - - - - - - - - - Return the current pan for a given voice (-1 to +1 range). - - - - - - - - - Return the current pan height for a given voice (-1 to +1 range). - - - - - - - - - Return the current pan depth for a given voice (-1 to +1 range). - - - - - - - - - Return the current selected filter type for a given voice, from the FILTER_* enum. + Return the current chorus send for a given voice (0 to 1). @@ -4778,31 +4707,13 @@ Return the current filter resonance for a given voice. - - - - - - - Return the current chorus send for a given voice (0 to 1). - - - + - Return the current reverb type for a given voice from the REVERB_* enum. - - - - - - - - - Return the current reverb send for a given voice (0 to 1). + Return the current selected filter type for a given voice, from the FILTER_* enum. @@ -4814,6 +4725,60 @@ Return the current mix rate for a given voice. + + + + + + + Return the current pan for a given voice (-1 to +1 range). + + + + + + + + + Return the current pan depth for a given voice (-1 to +1 range). + + + + + + + + + Return the current pan height for a given voice (-1 to +1 range). + + + + + + + + + Return the current reverb send for a given voice (0 to 1). + + + + + + + + + Return the current reverb type for a given voice from the REVERB_* enum. + + + + + + + + + Return the current volume for a given voice. + + @@ -4823,6 +4788,90 @@ Return whether the current voice is positional. See [method voice_set_positional]. + + + + + + + Start playback of a given voice using a given sample. If the voice was already playing it will be restarted. + + + + + + + + + Set chorus send post processing for the voice (from 0 to 1). + + + + + + + + + + + + + + + Set a resonant filter post processing for the voice. Filter type is a value from the FILTER_* enum. + + + + + + + + + Set a different playback mix rate for the given voice. + + + + + + + + + + + + + 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 whether a given voice is positional. This is only interpreted as a hint and used for backends that may support binaural encoding. + + + + + + + + + + + Set the reverb send post processing for the voice (from 0 to 1) and the reverb type, from the REVERB_* enum. + + + + + + + + + Change the volume of a currently playing voice. Volume is expressed as linear gain where 0.0 is mute and 1.0 is default. + + @@ -4830,75 +4879,8 @@ Stop a given voice. - - - - - Free a [RID] resource. - - - - - - - Set global scale for stream playback. Default is 1.0. - - - - - - - Return the global scale for stream playback. - - - - - - - Set global scale for all voices (not including streams). Default is 1.0. - - - - - - - Return the global scale for all voices. - - - - - - - Set global scale for event-based stream ([EventStream]) playback. Default is 1.0. - - - - - - - Return the global scale for event-based stream playback. - - - - 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. @@ -4929,6 +4911,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. + @@ -4998,59 +4998,25 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - + + + + + + + @@ -5062,12 +5028,46 @@ - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -5092,11 +5092,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). @@ -5113,11 +5113,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. @@ -5139,54 +5139,6 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5195,126 +5147,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -5325,74 +5163,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -5401,12 +5177,232 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - @@ -5417,6 +5413,10 @@ + + + + @@ -5425,12 +5425,6 @@ - - - - - - @@ -5443,6 +5437,12 @@ + + + + + + @@ -5459,14 +5459,6 @@ - - - - - - - - @@ -5475,15 +5467,23 @@ - - + + + + + + + + + + - - - + + + @@ -5521,62 +5521,6 @@ Called when button is toggled (only if toggle_mode is active). - - - - - Set the button to pressed state (only if toggle_mode is active). - - - - - - - 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 true if mouse entered the button before it exit. - - - - - - - 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]). - - - - - - - Set the button into disabled state. When a button is disabled, it can't be clicked or toggled. - - - - - - - Return whether the button is in disabled state (see [method set_disabled]). - - - - - - - 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). - - @@ -5591,8 +5535,69 @@ 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 whether the button is in disabled state (see [method set_disabled]). + + + + + + + Return true if mouse entered the button before it exit. + + + + + + + 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]). + + + + + + + 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). + + + + + + + Set the button into disabled state. When a button is disabled, it can't be clicked or toggled. + + + + + + + Set the button to pressed state (only if toggle_mode is active). + + + + + + + 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. @@ -5605,11 +5610,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. - - @@ -5644,14 +5644,6 @@ - - - - - - - - @@ -5660,11 +5652,9 @@ - - - - - + + + @@ -5674,9 +5664,19 @@ - - - + + + + + + + + + + + + + @@ -5747,13 +5747,6 @@ Box shape resource, which can be set into a [PhysicsBody] or area. - - - - - Set the half extents for the shape. - - @@ -5761,6 +5754,13 @@ Return the half extents of the shape. + + + + + Set the half extents for the shape. + + @@ -5773,27 +5773,6 @@ 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 text. - - - - - - - Set the icon that will be displayed next to the text inside the button area. - - @@ -5801,20 +5780,6 @@ Return the button icon. - - - - - Set the [i]flat[/i] property of a Button. Flat buttons don't display decoration unless hovered or pressed. - - - - - - - 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. - - @@ -5822,11 +5787,11 @@ 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. + Return the button text. @@ -5843,6 +5808,41 @@ Return the state of the [i]flat[/i] property (see [method set_flat]). + + + + + Set the icon that will be displayed next to the text inside the button area. + + + + + + + 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. + + + + + + + Set the [i]flat[/i] property of a Button. Flat buttons don't display decoration unless hovered or pressed. + + + + + + + Set the button text, which will be displayed inside the button area. + + + + + + + Set the text alignment policy, using one of the ALIGN_* constants. + + @@ -5856,28 +5856,28 @@ - + - + + + + + - - - - - - - + + + @@ -5905,31 +5905,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. @@ -5941,18 +5933,13 @@ Return the icon of the specified button. - - + + + + - Return the amount of buttons in the array. - - - - - - - Return the index of the currently selected button in the array. + Return the text of the specified button. @@ -5962,6 +5949,31 @@ Return the index of the currently hovered button in the array. + + + + + Return the index of the currently selected button in the array. + + + + + + + + + Set the icon of the specified button. + + + + + + + + + Define the text of the specified button. + + @@ -5969,18 +5981,6 @@ Select a button in the array based on the given index. - - - - - Remove the specified button in the array. - - - - - Remove all buttons from the array. - - @@ -6017,6 +6017,20 @@ Group of [Button]. All direct and indirect children buttons become radios. Only one allows being pressed. + + + + + Return the list of all the buttons in the group. + + + + + + + Return the focused button. + + @@ -6031,20 +6045,6 @@ Return the index of the pressed button (by tree order). - - - - - Return the focused button. - - - - - - - Return the list of all the buttons in the group. - - @@ -6068,95 +6068,10 @@ 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. - - - - - - - - - - - - - - - - - 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. - - - - - - - Return whether the Camera is the current one in the [Viewport], or plans to become current (if outside the scene tree). - - @@ -6164,18 +6079,42 @@ Get the camera transform. Subclassed cameras (such as CharacterCamera) may provide different transforms than the [Node] transform. + + + + + + + + + + + + + + + + + + + + + + + + @@ -6188,22 +6127,58 @@ - - + + + Return whether the Camera is the current one in the [Viewport], or plans to become current (if outside the scene tree). - - + + + + - - - + + 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. @@ -6212,36 +6187,61 @@ - - - - - - - - - + + + + + + + + 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). - - - - @@ -6253,24 +6253,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. @@ -6279,118 +6268,6 @@ - - - - - - - - - - - - - - - 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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]). - - @@ -6404,10 +6281,47 @@ - - + + + + + Return the margins needed to drag the camera (see [method set_drag_margin]). + + + + + + + + + + + + + + + + + + + + + Return the scrolling limit in pixels. + + + + + + + Return the scroll offset. + + + + + + @@ -6416,22 +6330,11 @@ - - - - - - - - + + - - - - - - + Return true of this is the current camera (see [method make_current]). @@ -6440,17 +6343,114 @@ - + + + + + + + + + + + + + + + + + + + + + Make this the current 2D camera for the scene (viewport and layer), in case there's many cameras in the scene. + + + + + + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set the scrolling limit in pixels. + + + + + + + Set the scroll offset. Useful for looking around or camera shake animations. + + + + + + + + + + + + + + + + + + + + + + + - Force the camera to update scroll immediately. - - + + @@ -6470,159 +6470,45 @@ 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. - - - - - Show the CanvasItem currently hidden. - - - - - Hide the CanvasItem currently visible. - - - - - - - - - - - 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_*. - - - - - - - Return the current blending mode from enum BLEND_MODE_*. - - - - - - - - - - - - - - - - - - - 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. - - - - + + + + + + + + + - Set canvas item self-opacity. This does not affect the opacity of children items. + Draw a string character using a custom font. Returns the advance, depending on the char width and kerning with an optional next char. - - - - - Return the canvas item self-opacity. - - - - + + + + + + - 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. @@ -6638,6 +6524,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. + + @@ -6647,15 +6561,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. @@ -6699,105 +6637,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. - - - - + + - - - - - - - - - - - Draw a string character using a custom font. Returns the advance, depending on the char width and kerning with an optional next char. + Return the current blending mode from enum BLEND_MODE_*. - - - - - - - + + + - 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. + + + + + + + + + @@ -6810,20 +6705,15 @@ - - - - - - - + + Return a rect containing the editable contents of the item. - - + + @@ -6834,14 +6724,46 @@ - - + + - - + + + + + Return the canvas item opacity. This affects the canvas item and all the children. + + + + + + + Return the canvas item self-opacity. + + + + + + + + + + + + + + + + + + + + + + @@ -6852,28 +6774,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. @@ -6884,28 +6815,97 @@ + + + + + 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 visibility (hidden/visible) changes. - - Emitted when becoming hidden. + + + Emitted when the item rect has changed. + + + + + Emitted when the visibility (hidden/visible) changes. + + @@ -6923,6 +6923,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. @@ -6935,9 +6938,6 @@ Canvas item has exited the canvas. - - Canvas item transform has changed. Only received if requested. - @@ -6946,18 +6946,30 @@ - - + + + + + + + + - - + + + + + + + + @@ -6966,24 +6978,12 @@ - - - - - - - - - - - - @@ -7022,13 +7022,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. - - @@ -7036,27 +7029,6 @@ 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 transform for this layer. - - - - - - - Set the base offset for this layer (helper). - - @@ -7064,13 +7036,6 @@ Return the base offset for this layer (helper). - - - - - Set the base rotation for this layer (helper). - - @@ -7078,13 +7043,6 @@ Return the base rotation for this layer (helper). - - - - - Set rotation of the layer in degree. - - @@ -7092,13 +7050,6 @@ Get rotation of the layer in degree. - - - - - Set the base scale for this layer (helper). - - @@ -7106,6 +7057,20 @@ Return the base scale for this layer (helper). + + + + + Return the base transform for this layer. + + + + + + + Return the viewport RID for this layer. + + @@ -7113,11 +7078,46 @@ Return the [World2D] used by this layer. - - - + + + - Return the viewport RID for this layer. + Set the layer index, determines the draw order, a lower value will be below a higher one. + + + + + + + Set the base offset for this layer (helper). + + + + + + + Set the base rotation for this layer (helper). + + + + + + + Set rotation of the layer in degree. + + + + + + + Set the base scale for this layer (helper). + + + + + + + Set the base transform for this layer. @@ -7132,13 +7132,6 @@ CanvasModulate tints the canvas elements using its asigned color - - - - - Sets the canvas tint color - - @@ -7146,6 +7139,13 @@ Gets the canvas tint color + + + + + Sets the canvas tint color + + @@ -7158,11 +7158,11 @@ Capsule shape resource, which can be set into a [PhysicsBody] or area. - - - + + + - Set the capsule radius. + Return the capsule height. @@ -7179,11 +7179,11 @@ Set the capsule height. - - - + + + - Return the capsule height. + Set the capsule radius. @@ -7198,11 +7198,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]. @@ -7219,11 +7219,11 @@ Set the height of the [CapsuleShape2D]. - - - + + + - Return the height of the [CapsuleShape2D]. + Set the radius of the [CapsuleShape2D]. @@ -7238,13 +7238,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). - - @@ -7252,6 +7245,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). + + @@ -7270,36 +7270,36 @@ - + - + + + + + + + - + - + + + + + + + - - - - - - - - - - - - @@ -7316,32 +7316,32 @@ - + - + + + + + + + + + + + - - - - - - - - - - @@ -7352,13 +7352,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. - - @@ -7366,6 +7359,13 @@ Return the radius of the circle shape. + + + + + Set the radius of the circle shape. + + @@ -7398,88 +7398,10 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -7492,12 +7414,86 @@ - - - + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7512,6 +7508,10 @@ + + + + @@ -7548,38 +7548,16 @@ Add a [Shape2D] to the collision body, with a given custom transform. - - + + + Remove all shapes. + + + + - 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. - - - - - - - - - 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. @@ -7591,6 +7569,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]. + + @@ -7600,6 +7585,13 @@ Return the shape transform in the given index. + + + + + Return whether this object is pickable. + + @@ -7616,18 +7608,6 @@ Remove the shape in the given index. - - - Remove all shapes. - - - - - - - Return the RID of this object. - - @@ -7635,20 +7615,35 @@ 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 whether this object is pickable. + Change a shape in the collision body. + + + + + + + + + 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). + + + + + + + + + Change the shape transform in the collision body. - - - This event fires only once when the mouse pointer enters any shape of this object. - - @@ -7660,6 +7655,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. @@ -7675,42 +7675,12 @@ - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -7723,6 +7693,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -7735,28 +7735,6 @@ 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. - - - - - - - Set whether the polygon is to be a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). - - @@ -7764,20 +7742,6 @@ Return whether the polygon is a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). - - - - - 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 whether this polygon is a trigger. - - @@ -7794,6 +7758,42 @@ Return the index of the last shape generated by the editor. + + + + + Return the list of points that define the polygon. + + + + + + + Return whether this polygon is a trigger. + + + + + + + Set whether the polygon is to be a [ConvexPolygonShape2D] ([code]build_mode==0[/code]), or a [ConcavePolygonShape2D] ([code]build_mode==1[/code]). + + + + + + + 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). + + @@ -7804,15 +7804,9 @@ - - - - - - - - - + + + @@ -7822,12 +7816,6 @@ - - - - - - @@ -7838,9 +7826,21 @@ - - - + + + + + + + + + + + + + + + @@ -7856,11 +7856,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]. @@ -7870,13 +7870,6 @@ Return this shape's [Shape2D]. - - - - - 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). - - @@ -7884,11 +7877,18 @@ Return whether this shape is a trigger. - - - + + + - Return the index of this shape inside its container [CollisionObject2D]. This can be used to directly access the underlying [Shape2D]. + Set this shape's [Shape2D]. This will not appear as a node, but can be directly edited as a property. + + + + + + + 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). @@ -7903,6 +7903,52 @@ 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. + + + + + + + + + Construct the color from an RGBA profile. + + + + + + + + + Construct the color from an RGBA profile. + + @@ -7967,87 +8013,41 @@ 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) + + Red (0 to 1) + + + Red (0 to 255) + Saturation (0 to 1) Value (0 to 1) - - Red (0 to 255) - - - Green (0 to 255) - - - Blue (0 to 255) - - - Alpha (0 to 255) - @@ -8060,6 +8060,15 @@ Array of Color, can only contains colors. Optimized for memory usage, can't fragment the memory. + + + + + + + Create from a generic array. + + @@ -8090,15 +8099,6 @@ Return the array size. - - - - - - - Create from a generic array. - - @@ -8111,11 +8111,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. @@ -8125,11 +8125,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. @@ -8139,6 +8139,13 @@ Returns whether this color picker is in raw mode or not + + + + + Select the current color. + + @@ -8146,18 +8153,11 @@ Set true if you want the color to have an alpha channel (transparency), or false if you want a solid color. - - - - - Returns whether the color has transparency or not. - - - - + + - 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. @@ -8173,20 +8173,20 @@ - - - + - - - + + + + + @@ -8197,13 +8197,6 @@ Encapsulates a [ColorPicker] making it accesible by pressing a button, pressing the button will toggle the [ColorPicker] visibility - - - - - Sets the current color - - @@ -8217,13 +8210,6 @@ - - - - - See [method ColorPicker.set_edit_alpha] - - @@ -8231,6 +8217,20 @@ See [method ColorPicker.is_edit_alpha] + + + + + Sets the current color + + + + + + + See [method ColorPicker.set_edit_alpha] + + @@ -8244,28 +8244,28 @@ - + - + + + + + - - - - - - - + + + @@ -8285,20 +8285,20 @@ Adds the specified color to the end of the ramp, with the specified offset - - - - - Removes the color at the index [i]offset[/i] - - - + + + - - - Sets the offset for the ramp color at index [i]point[/i] + Returns the color of the ramp color at index [i]point[/i] + + + + + + + Returns the colors in the ramp @@ -8310,22 +8310,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 @@ -8337,25 +8333,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] @@ -8365,11 +8356,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. @@ -8384,13 +8384,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). - - @@ -8398,6 +8391,13 @@ Return the faces (an array of triangles). + + + + + Set the faces (an array of triangles). + + @@ -8411,13 +8411,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. - - @@ -8425,6 +8418,13 @@ Return the array of segments. + + + + + Set the array of segments. + + @@ -8435,14 +8435,6 @@ - - - - - - - - @@ -8451,6 +8443,14 @@ + + + + + + + + @@ -8488,15 +8488,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. @@ -8532,22 +8537,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. - - @@ -8567,6 +8556,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). + + @@ -8599,11 +8599,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. - - @@ -8613,6 +8608,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. + + @@ -8648,340 +8648,35 @@ Called when an input event reaches the control. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - 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]). - - - - - - - - - Return the anchor type (ANCHOR_BEGIN, ANCHOR_END, ANCHOR_RATIO) for a given margin (MARGIN_LEFT, MARGIN_TOP, MARGIN_RIGHT, MARGIN_BOTTOM). - - - - - - - - - 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]). - - - - - - - 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]). + Override a single constant (integer) in the theme of this Control. If constant equals Theme.INVALID_CONSTANT, override is cleared. - - + + + + - - - - - - - - - - - - - - - - - - - - - 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 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. - - - - - - - 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 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]). - - - - - - - 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]). - - - - - - - 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 whether the Control is the current focused control (see [method set_focus_mode]). - - - - - 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. - - - - - - - Hint for containers, set horizontal positioning flags. - - - - - - - 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. - - - - - - - Hint for containers, return vertical positioning flags. - - - - - - - Override whole the [Theme] for this Control and all its children controls. - - - - - - - Return a [Theme] override, if one exists (see [method set_theme]). + Override a single font (font) in the theme of this Control. If font is empty, override is cleared. @@ -9010,60 +8705,45 @@ 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. - - - - - - - - - - - - - - - - - Override a single constant (integer) in the theme of this Control. If constant equals Theme.INVALID_CONSTANT, 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). + + + + + + @@ -9076,6 +8756,12 @@ + + + + + + @@ -9086,42 +8772,6 @@ - - - - - - - - - - - Set a tooltip, which will appear when the cursor is resting over this control. - - - - - - - - - Return the tooltip, which will appear when the cursor is resting over this control. - - - - - - - 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. - - @@ -9131,13 +8781,32 @@ Return the cursor shape at a certain position in the control. - - - - + + + + + + + + + + + Return the default cursor shape for this control. See enum CURSOR_* for the list of shapes. + + + + + + - 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. + + + + + + + Returns MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). @@ -9149,11 +8818,182 @@ 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. + + + + + + + + - Ignore mouse events on this control (even touchpad events send mouse events). + + + + + + + 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 [i]window[/i] Control. This is a helper (see [method get_global_pos], [method get_size]). + + + + + + + Hint for containers, return horizontal positioning flags. + + + + + + + + + + + + + + + + + + + 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 minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. + + + + + + + Return the minimum size this Control can shrink to. A control will never be displayed or resized smaller than its minimum size. + + + + + + + + + + + + + + + + + + + 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]). + + + + + + + + + + + + + + + + + + + + + + + + + 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 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. + + + + + + + + + + + + + + + + + Return a [Theme] override, if one exists (see [method set_theme]). + + + + + + + + + Return the tooltip, which will appear when the cursor is resting over this control. + + + + + + + Hint for containers, return vertical positioning flags. + + + + + + + + + Steal the focus from another control and become the focused control (see [method set_focus_mode]). + + + + + + + Return whether the Control is the current focused control (see [method set_focus_mode]). @@ -9163,12 +9003,153 @@ 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]). + + + + + + + + + + + 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]). + + + + + + + Sets MARGIN_LEFT and MARGIN_TOP at the same time. This is a helper (see [method set_margin]). + + + + + + + + + + + + + Set the default cursor shape for this control. See enum CURSOR_* for the list of shapes. + + + + + + + + + + + + + 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. + + + + + + + + + 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. + + + + + + + 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. + + + + + + + Ignore mouse events on this control (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]). @@ -9177,20 +9158,39 @@ - - - - - - - - - - - - + + + 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. @@ -9206,26 +9206,6 @@ Emitted when keyboard focus is gained. - - - Emitted when the mouse enters the control area. - - - - - Emitted when the control changed size. - - - - - Emitted when the minimum size of the control changed. - - - - - Emitted when the size flags changed. - - Emitted when the keyboard focus is lost. @@ -9238,15 +9218,35 @@ Emitted when an input event is received. Connecting in realtime is recommended for accepting the events. + + + Emitted when the minimum size of the control changed. + + + + + Emitted when the mouse enters the control area. + + Emitted when the mouse left the control area. + + + Emitted when the control changed size. + + + + + Emitted when the size flags changed. + + @@ -9260,6 +9260,40 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Control can't acquire focus. @@ -9290,40 +9324,6 @@ Modal control was closed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -9340,18 +9340,18 @@ Convex polygon shape resource, which can be set into a [PhysicsBody] or area. - - - - - - + + + + + + @@ -9365,6 +9365,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. + + @@ -9379,13 +9386,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. - - @@ -9396,7 +9396,7 @@ - + @@ -9408,32 +9408,18 @@ + + + + + + - - - - - - - - - - - - - - - - - - - - @@ -9442,37 +9428,53 @@ - - - - - - + + + + + + + + + + + + - - - + + + + + + + + + + + - + - + - + + + @@ -9486,13 +9488,11 @@ - + - + - - - + @@ -9505,13 +9505,6 @@ It keeps a cache of precalculated points along the curve, to speed further calculations up. - - - - - Returns the number of points describing the curve. - - @@ -9526,95 +9519,6 @@ 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 position of the vertex "idx". If the index is out of bounds, the function sends an error to the console, and returns (0, 0). - - - - - - - - - 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 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). - - - - - - - - - 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). - - - - - - - Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. - - - - - - - - - - - Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 >= t <=1) give strange, but predictable results. -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 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. - - @@ -9629,6 +9533,59 @@ If "idx" is out of bounds it is truncated to the first or last vertex, and "t" i 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. + + + + + Returns the cache of points as a [Vector2Array]. + + + + + + + Returns the number of points describing the curve. + + + + + + + + + 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 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). + + + + + + + + + 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 position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 >= t <=1) give strange, but predictable results. +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). + + @@ -9642,11 +9599,54 @@ To do that, it finds the two cached points where the "offset" lies between, then Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). - - + + + + - Returns the cache of points as a [Vector2Array]. + 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". + + + + + + + Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. + + + + + + + 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. + + + + + + + + + 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. + + + + + + + + + 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. + + + + + + + + + Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. @@ -9676,13 +9676,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. - - @@ -9697,114 +9690,6 @@ 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 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). - - - - - - - - - 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 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. - - - - - - - - - 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 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). - - - - - - - Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. - - - - - - - - - - - Returns the position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 >= t <=1) give strange, but predictable results. -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 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. - - @@ -9819,6 +9704,75 @@ If "idx" is out of bounds it is truncated to the first or last vertex, and "t" i 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. + + + + + Returns the cache of points as a [Vector3Array]. + + + + + + + Returns the cache of tilts as a [RealArray]. + + + + + + + Returns the number of points describing the curve. + + + + + + + + + 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). + + + + + + + + + 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). + + + + + + + + + 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 position between the vertex "idx" and the vertex "idx"+1, where "t" controls if the point is the first vertex (t = 0.0), the last vertex (t = 1.0), or in between. Values of "t" outside the range (0.0 >= t <=1) give strange, but predictable results. +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). + + @@ -9832,18 +9786,64 @@ To do that, it finds the two cached points where the "offset" lies between, then Cubic interpolation tends to follow the curves better, but linear is faster (and often, precise enough). - - + + + + - Returns the cache of points as a [Vector3Array]. + 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". - - - + + + - Returns the cache of tilts as a [RealArray]. + Deletes the point "idx" from the curve. Sends an error to the console if "idx" is out of bounds. + + + + + + + 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. + + + + + + + + + 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. + + + + + + + + + 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. + + + + + + + + + Sets the position for the vertex "idx". If the index is out of bounds, the function sends an error to the console. + + + + + + + + + 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. @@ -9872,11 +9872,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). @@ -9886,13 +9886,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. - - @@ -9900,13 +9893,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. - - @@ -9921,11 +9907,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. @@ -10025,26 +10025,12 @@ 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. - - - - - - - - - - - - - - @@ -10053,22 +10039,36 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + - - - - - - + + + + + + @@ -10095,29 +10095,26 @@ This approximation makes straight segments between each point, then subdivides t [/codeblock] - + - + - 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]). + 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_*). - - + + + + + + - 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 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). + 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_*). @@ -10127,16 +10124,29 @@ This approximation makes straight segments between each point, then subdivides t 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). + Return whether the target directory exists. The argument can be relative to the current directory, or an absolute path. - - + + + + + + + Return whether the target file exists. The argument can be relative to the current directory, or an absolute path. + + + + - On Windows, return the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0. + Return the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]). @@ -10148,21 +10158,38 @@ This approximation makes straight segments between each point, then subdivides t 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. - - + + - - - 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 Windows, return the number of drives (partitions) mounted on the current filesystem. On other platforms, the method returns 0. - + - Return the absolute path to the currently opened directory (e.g. [code]res://folder[/code] or [code]C:\tmp\folder[/code]). + 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). + + + + + + + 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. + + + + + + + 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). @@ -10185,41 +10212,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. - - - + - - - + - 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_*). + 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_*). + + + + + + + + + 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). @@ -10234,16 +10244,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). - - @@ -10254,13 +10254,19 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + - - - + + + @@ -10282,6 +10288,40 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10300,72 +10340,26 @@ This approximation makes straight segments between each point, then subdivides t - + - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -10378,8 +10372,20 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + @@ -10388,12 +10394,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - @@ -10448,6 +10448,26 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + + + + + + + @@ -10498,6 +10518,12 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + @@ -10518,44 +10544,18 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + @@ -10620,45 +10620,9 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - @@ -10670,94 +10634,94 @@ This approximation makes straight segments between each point, then subdivides t - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + - - - - - - - - - - - - - - - - @@ -10778,12 +10742,20 @@ This approximation makes straight segments between each point, then subdivides t - + + + + + + + + + @@ -10794,6 +10766,34 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -10805,148 +10805,22 @@ 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 currently assigned stream. - - - - - Play the currently assigned stream. - - - - - Stop playing. - - - - - - - Return whether this player is playing. - - - - - - - Pause stream playback. - - - - - - - Return whether the playback is currently paused. - - - - - - - Set whether the stream will be restarted at the end. - - - - - - - Return whether this player will be restart the playback 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 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 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 time at which the last note of a given channel in the stream plays. - + - - 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 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 the playback volume for this player, in decibels. - - - - - - - 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. May be in seconds, but depends on the stream type. - - - - - - - Set the playback position. May be in seconds, but depends on the stream type. + Return the volume scale for an individual channel of the stream. @@ -10956,11 +10830,60 @@ This approximation makes straight segments between each point, then subdivides t Return the song length. May be in seconds, but depends on the stream type. - - - + + + - Set whether this player will start playing as soon as it enters the scene tree. + Return the number of times the playback has looped. + + + + + + + Return the pitch scale factor for this player. + + + + + + + Return the playback position. May be in seconds, but depends on the stream type. + + + + + + + Return the currently assigned stream. + + + + + + + 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 tempo multiplier. + + + + + + + Return the playback volume for this player. + + + + + + + Return the playback volume for this player, in decibels. @@ -10970,6 +10893,46 @@ This approximation makes straight segments between each point, then subdivides t Return whether this player will start playing as soon as it enters the scene tree. + + + + + Return whether this player will be restart the playback at the end. + + + + + + + Return whether the playback is currently paused. + + + + + + + Return whether this player is playing. + + + + + Play the currently assigned stream. + + + + + + + Set the playback position. May be in seconds, but depends on the stream type. + + + + + + + Set whether this player will start playing as soon as it enters the scene tree. + + @@ -10980,22 +10943,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. @@ -11057,6 +11057,166 @@ This approximation makes straight segments between each point, then subdivides t [/codeblock] + + + Close the currently opened file. + + + + + + + Return whether the file cursor reached the end of the file. + + + + + + + + + Get whether or not the file in the specified path exists. + + + + + + + Get the next 16 bits from the file as an integer. + + + + + + + Get the next 32 bits from the file as an integer. + + + + + + + Get the next 64 bits from the file as an integer. + + + + + + + Get the next 8 bits from the file as an integer. + + + + + + + Get the whole file as a [String]. + + + + + + + + + Get next len bytes of the file as a [RawArray]. + + + + + + + + + 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 64 bits from the file as a floating point number. + + + + + + + Get whether endian swap is enabled for this file. + + + + + + + Get the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [@Global Scope]. + + + + + + + Get the next 32 bits from the file as a floating point number. + + + + + + + Return the size of the file in bytes. + + + + + + + Get the next line of the file as a [String]. + + + + + + + Get a [String] saved in Pascal format from the file. + + + + + + + Return the file cursor position. + + + + + + + Get the next bits from the file as a floating point number. + + + + + Get the next Variant value from the file. + + + + + + + Return whether the file is currently opened. + + + + + + + + + + + Open the file for writing or reading, depending on the flags. + + @@ -11083,29 +11243,6 @@ This approximation makes straight segments between each point, then subdivides t Open an encrypted file in write or read mode. You need to pass a password to encrypt/decrypt it. - - - - - - - - - Open the file for writing or reading, depending on the flags. - - - - - Close the currently opened file. - - - - - - - Return whether the file is currently opened. - - @@ -11120,106 +11257,6 @@ This approximation makes straight segments between each point, then subdivides t 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. - - - - - Return the file cursor position. - - - - - - - Return the size of the file in bytes. - - - - - - - Return whether the file cursor reached the end of the file. - - - - - - - Get the next 8 bits from the file as an integer. - - - - - - - Get the next 16 bits from the file as an integer. - - - - - - - Get the next 32 bits from the file as an integer. - - - - - - - Get the next 64 bits from the file as an integer. - - - - - - - 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. - - - - - - - Get the next bits from the file as a floating point number. - - - - - - - - - Get next len bytes of the file as a [RawArray]. - - - - - - - Get the next line of the file as a [String]. - - - - - - - Get the whole file as a [String]. - - - - - - - Get whether endian swap is enabled for this file. - - @@ -11229,34 +11266,6 @@ This approximation makes straight segments between each point, then subdivides t Note that this is about the file format, not CPU type. This is always reseted to [code]false[/code] whenever you open the file. - - - - - Get the last error that happened when trying to perform operations. Compare with the [code]ERR_FILE_*[/code] constants from [@Global Scope]. - - - - - Get the next Variant value from the file. - - - - - - - - - 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). - - - - - - - Store an integer as 8 bits in the file. - - @@ -11278,25 +11287,11 @@ 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 a floating point number as 64 bits in the file. - - - - - - - Store a floating point number in the file. + Store an integer as 8 bits in the file. @@ -11306,6 +11301,20 @@ This approximation makes straight segments between each point, then subdivides t Store the given array of bytes in the file. + + + + + Store a floating point number as 64 bits in the file. + + + + + + + Store a floating point number as 32 bits in the file. + + @@ -11313,6 +11322,20 @@ 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] as a line in the file in Pascal format (i.e. also store the length of the string). + + + + + + + Store a floating point number in the file. + + @@ -11327,40 +11350,17 @@ This approximation makes straight segments between each point, then subdivides t Store any Variant value 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. - - - - - - - - - Get whether or not the file in the specified path exists. - - 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. @@ -11374,11 +11374,6 @@ 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. - - - Clear all the added filters in the dialog. - - @@ -11386,6 +11381,18 @@ This approximation makes straight segments between each point, then subdivides t 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. + + + + + + + Return the file access permission of the dialog. + + @@ -11407,6 +11414,39 @@ 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). + + + + + Get the file dialog mode from the MODE_* enum. + + + + + + + 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. + + + + + + + Set the file access permission of the dialog(Must be one of [ACCESS_RESOURCES], [ACCESS_USERDATA] or [ACCESS_FILESYSTEM]). + + @@ -11435,34 +11475,6 @@ This approximation makes straight segments between each point, then subdivides t Set the file dialog mode from the MODE_* enum. - - - - - Get the file dialog mode from the MODE_* enum. - - - - - - - Return the vertical box container of the dialog, custom controls can be added to it. - - - - - - - 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. - - @@ -11470,27 +11482,8 @@ This approximation makes straight segments between each point, then subdivides t Set the dialog should show hidden files. - - - - - Return true if the diaog allows show hidden files. - - - - - Invalidate and update the current dialog content list. - - - - - - - Event emitted when the user selects multiple files. - - @@ -11505,8 +11498,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. @@ -11519,15 +11528,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. - @@ -11546,13 +11546,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. + + + + + + @@ -11562,31 +11567,10 @@ 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]). - - - - - - - - - Set the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. @@ -11598,27 +11582,13 @@ This approximation makes straight segments between each point, then subdivides t Return the texture coordinate mode. Each texture param (from the PARAM_* enum) has one. It defines how the textures are mapped to the object. - - - - - - - - - - + + - + - - - - - - - Sets a special transform used to post-transform UV coordinates of the uv_xform texcoord mode: TEXCOORD_UV_TRANSFORM. + Return a texture. Textures change parameters per texel and are mapped to the model depending on the texcoord mode (see [method set_texcoord_mode]). @@ -11628,16 +11598,27 @@ This approximation makes straight segments between each point, then subdivides t 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. @@ -11646,14 +11627,49 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + + + + 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). @@ -11680,8 +11696,6 @@ This approximation makes straight segments between each point, then subdivides t Maximum amount of parameters. - - Read texture coordinates from the UV array. @@ -11691,21 +11705,7 @@ This approximation makes straight segments between each point, then subdivides t Read texture coordinates from the UV2 array. - - - - - - - - - - - - - - - + @@ -11717,78 +11717,6 @@ This approximation makes straight segments between each point, then subdivides t Font contains an unicode compatible character set, as well as the ability to draw it with variable width, ascent, descent and kerning. For creating fonts from TTF files (or other font formats), see the editor support for fonts. TODO check wikipedia for graph of ascent/baseline/descent/height/etc. - - - - - - - - - - - - - Set the total font height (ascent plus descent) in pixels. - - - - - - - Return the total font height (ascent plus descent) in pixels. - - - - - - - Set the font ascent (number of pixels above the baseline). - - - - - - - Return the font ascent (number of pixels above the baseline). - - - - - - - Return the font descent (number of pixels below the baseline). - - - - - - - - - - - Add a kerning pair to the [Font] 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. Kerning pairs are special cases where a typeface advance is determined by the next character. - - - - - - - Add a texture to the [Font]. - - @@ -11804,50 +11732,22 @@ This approximation makes straight segments between each point, then subdivides t Add a character to the font, where "character" is the unicode value, "texture" is the texture index, "rect" is the region in the texture (in pixels!), "align" is the (optional) alignment for the character and "advance" is the (optional) advance. - - - - - - - - - - + + + + + + + Add a kerning pair to the [Font] as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. - - - - - - + + - Return the size of a character, optionally taking kerning into account if the next character is provided. - - - - - - - - - Return the size of a string, taking kerning and advance into account. - - - - - - - - - - - - + Add a texture to the [Font]. @@ -11855,6 +11755,14 @@ This approximation makes straight segments between each point, then subdivides t Clear all the font data. + + + + + + + + @@ -11887,10 +11795,29 @@ This approximation makes straight segments between each point, then subdivides t 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. - - + + + + + Return the font ascent (number of pixels above the baseline). + + + + + + + + + Return the size of a character, optionally taking kerning into account if the next character is provided. + + + + + + + Return the font descent (number of pixels below the baseline). @@ -11899,6 +11826,79 @@ This approximation makes straight segments between each point, then subdivides t + + + + + Return the total font height (ascent plus descent) in pixels. + + + + + + + + + + + Return a kerning pair as a difference. Kerning pairs are special cases where a typeface advance is determined by the next character. + + + + + + + + + Return the size of a string, taking kerning and advance into account. + + + + + + + + + + + + + + + + + + + + + + + + + + + Set the font ascent (number of pixels above the baseline). + + + + + + + + + + + + + + + + + + + Set the total font height (ascent plus descent) in pixels. + + @@ -11933,14 +11933,14 @@ This approximation makes straight segments between each point, then subdivides t - - + + - - + + @@ -11955,6 +11955,13 @@ 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. + + @@ -11963,13 +11970,6 @@ 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. - - @@ -11994,16 +11994,16 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + @@ -12014,10 +12014,26 @@ This approximation makes straight segments between each point, then subdivides t - - + + + + - + + + + + + + + + + + + + + + @@ -12030,14 +12046,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -12046,14 +12054,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -12070,14 +12070,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -12086,14 +12078,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - @@ -12102,20 +12086,54 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -12132,24 +12150,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - - - - - @@ -12166,20 +12166,6 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - @@ -12196,42 +12182,28 @@ This approximation makes straight segments between each point, then subdivides t - - + + - + - + - + - + - - - - - - - - - - - - - - + + - + - + - - - + @@ -12250,14 +12222,16 @@ This approximation makes straight segments between each point, then subdivides t - - + + - + - + - + + + @@ -12270,70 +12244,10 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -12352,18 +12266,104 @@ This approximation makes straight segments between each point, then subdivides t - - - - + + + + + + + + + + - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -12380,25 +12380,27 @@ 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. - - - - - + + + + + + + + + + + + + + + @@ -12410,15 +12412,22 @@ This approximation makes straight segments between each point, then subdivides t - - + + + + + Return the material override for the whole geometry. + + + + - - - + + + @@ -12428,48 +12437,39 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + Set the material override for the whole geometry. + + - - - - + + + + @@ -12486,22 +12486,11 @@ 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. - - - - - - - - - Set the order of a configuration value (influences when saved to the config file). + Clear the whole configuration (not recommended, may break things). @@ -12513,38 +12502,12 @@ This approximation makes straight segments between each point, then subdivides t Return 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. - - - - + + - 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). - - - - - - - - - Convert a path to a localized path (res:// path). @@ -12556,10 +12519,13 @@ This approximation makes straight segments between each point, then subdivides t Convert a localized path (res://) to a full native OS path. - - + + + + + Return true if a configuration value is present. @@ -12570,12 +12536,13 @@ This approximation makes straight segments between each point, then subdivides t - - + + + If returns true, this value can be saved to the configuration file. This is useful for editors. @@ -12586,6 +12553,21 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + Convert a path to a localized path (res:// path). + + + + + + + + @@ -12594,6 +12576,24 @@ 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. + + @@ -12622,21 +12622,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. - - @@ -12664,13 +12649,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]. - - @@ -12678,11 +12656,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. @@ -12692,41 +12678,30 @@ 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. - - - - + + - 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. + Enable the disconnection of existing connections in the visual GraphEdit by left-clicking a connection and releasing into the void. - + + + + + + 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 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. @@ -12742,22 +12717,47 @@ 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 at the end of a GraphNode movement. + Signal sent when a GraphNode is attempted to be removed from the GraphEdit. + + + + + + + + + + + + + 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 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. - - - + - + + + @@ -12769,11 +12769,127 @@ 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. - - + + + Disable all input and output slots of the GraphNode. + + + + - Set the title of the GraphNode. + Disable input and output slot whose index is 'idx'. + + + + + + + + + Return the color of the input connection 'idx'. + + + + + + + Return the number of enabled input slots (connections) to the GraphNode. + + + + + + + + + Return the position of the input connection 'idx'. + + + + + + + + + Return the type of the input connection 'idx'. + + + + + + + + + Return the color of the output connection 'idx'. + + + + + + + Return the number of enabled output slots (connections) of the GraphNode. + + + + + + + + + Return the position of the output connection 'idx'. + + + + + + + + + Return the type of the output connection 'idx'. + + + + + + + Return the offset of the GraphNode. + + + + + + + + + Return the color set to 'idx' left (input) slot. + + + + + + + + + Return the color set to 'idx' right (output) slot. + + + + + + + + + Return the (integer) type of left (input) 'idx' slot. + + + + + + + + + Return the (integer) type of right (output) 'idx' slot. @@ -12783,6 +12899,45 @@ This approximation makes straight segments between each point, then subdivides t Return the title of the GraphNode. + + + + + Returns true if the close button is shown. False otherwise. + + + + + + + + + Return true if left (input) slot 'idx' is enabled. False otherwise. + + + + + + + + + Return true if right (output) slot 'idx' is enabled. False otherwise. + + + + + + + Set the offset of the GraphNode. + + + + + + + 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. + + @@ -12802,175 +12957,15 @@ This approximation makes straight segments between each point, then subdivides t 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 all input and output slots of the GraphNode. - - - - - - - - - Return true if left (input) slot 'idx' is enabled. False otherwise. - - - - - - - - - Return the (integer) type of left (input) 'idx' slot. - - - - - - - - - Return the color set to 'idx' left (input) slot. - - - - - - - - - Return true if right (output) slot 'idx' is enabled. False otherwise. - - - - - - - - - Return the (integer) type of right (output) 'idx' slot. - - - - - - - - - Return the color set to 'idx' right (output) slot. - - - - - - - Set the offset of the GraphNode. - - - - - - - Return the offset of the GraphNode. - - - - - - - Return the number of enabled output slots (connections) of the GraphNode. - - - - - - - Return the number of enabled input slots (connections) to the GraphNode. - - - - - - - - - Return the position of the output connection 'idx'. - - - - - - - - - Return the type of the output connection 'idx'. - - - - - - - - - Return the color of the output connection 'idx'. - - - - - - - - - Return the position of the input connection 'idx'. - - - - - - - - - Return the type of the input connection 'idx'. - - - - - - - - - Return the color of the input connection 'idx'. - - - - - - - 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 title of the GraphNode. - - - Signal sent when the GraphNode is requested to be displayed over other ones. Happens on focusing (clicking into) the GraphNode. - - Signal sent on closing the GraphNode. @@ -12990,34 +12985,39 @@ 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. + + - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + @@ -13028,13 +13028,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 - - @@ -13042,14 +13035,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 + + - - + + @@ -13058,64 +13058,98 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - - + + - - - - - + - - + + - - - - - + - + + + + + + + + + - - - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - + + @@ -13144,48 +13178,110 @@ This approximation makes straight segments between each point, then subdivides t + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - @@ -13198,120 +13294,24 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - + + - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -13326,11 +13326,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. @@ -13347,11 +13347,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. @@ -13388,24 +13388,24 @@ This approximation makes straight segments between each point, then subdivides t - - - - - - - + + + + + + + - - - + + + @@ -13420,22 +13420,22 @@ This approximation makes straight segments between each point, then subdivides t - + - - - + - + - + + + @@ -13468,17 +13468,17 @@ This approximation makes straight segments between each point, then subdivides t - - - + + + - + @@ -13496,11 +13496,11 @@ This approximation makes straight segments between each point, then subdivides t - + - + @@ -13513,6 +13513,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]. + + @@ -13530,71 +13535,11 @@ 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. - - - + - - - - - - - - - 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] - - - - - - - - - Stub function - - - - - - - - - Stub function - - - - - Cloces the current connection, allows for reusal of [HTTPClient]. - - - - - - - Return whether this [HTTPClient] has a response available. - - - - - - - Return whether this [HTTPClient] has a response that is chunked. + Return the response's body length. @@ -13620,32 +13565,18 @@ Structure: ("key":"value1; value2") Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - Return the response's body length. + Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. - - + + - 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] - - - - - - - If set to true, execution will block until all data is read from the response. + Return whether this [HTTPClient] has a response available. @@ -13655,11 +13586,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return whether blocking mode is enabled. - - + + - Returns a status string like STATUS_REQUESTING. Need to call [method poll] in order to get status updates. + Return whether this [HTTPClient] has a response that is chunked. @@ -13683,6 +13614,75 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) [/codeblock] + + + + + Reads one chunk from the response. + + + + + + + + + + + + + + + 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] + + + + + + + + + Stub function + + + + + + + + + Stub function + + + + + + + If set to true, execution will block until all data is read from the response. + + + + + + + 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] + + @@ -13703,26 +13703,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - @@ -13821,6 +13801,26 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + @@ -13829,10 +13829,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + @@ -13853,16 +13853,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + + + + + + + @@ -13881,12 +13887,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - @@ -13897,6 +13897,37 @@ 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. + + + + + 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. + + + + + + + + + + + + + + + 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]). + + + + + + + + + Return the status of hostname queued for resolving, given it's queue ID. Returned status can be any of the RESOLVER_STATUS_* enumeration. + + @@ -13915,39 +13946,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Create a queue item for resolving a given hostname. The queue ID is returned, or RESOLVER_INVALID_ID on error. - - - - - - - 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. - - - - - - - - + + @@ -13958,8 +13960,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - @@ -13980,6 +13980,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. + + @@ -14152,21 +14167,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. - - @@ -14181,22 +14181,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - @@ -14217,12 +14201,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + @@ -14263,25 +14263,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]. @@ -14291,25 +14274,11 @@ 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 storage type. One of [ImageTexture].STORAGE_*. - - - - - - - Set the storage quality in case of [ImageTexture].STORAGE_COMPRESS_LOSSY. + Return the format of the [ImageTexture], one of [Image].FORMAT_*. @@ -14319,7 +14288,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the storage quality for [ImageTexture].STORAGE_COMPRESS_LOSSY. - + + + + + Return the storage type. One of [ImageTexture].STORAGE_*. + + + + + + + Load an [ImageTexure]. + + + @@ -14327,12 +14310,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. @@ -14341,6 +14330,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + Set the storage type. One of [ImageTexture].STORAGE_*. + + + + + + @@ -14360,6 +14360,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + @@ -14368,6 +14384,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + @@ -14380,12 +14410,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - @@ -14398,30 +14422,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - @@ -14434,6 +14434,115 @@ 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. + + + + + This will simulate pressing the specificed action. + + + + + + + If the specified action is already pressed, this will release it. + + + + + + + + + Add a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. + + + + + + + If the device has an accelerometer, this will return the movement. + + + + + + + + + + + Returns the current value of the joystick axis at given index (see JOY_* constants in [@Global Scope]) + + + + + + + + + Returns a SDL2 compatible device guid on platforms that use gamepad remapping. Returns "Default Gamepad" otherwise. + + + + + + + + + Returns the name of the joystick at the specified device index + + + + + + + Returns mouse buttons as a bitmask. If multiple mouse buttons are pressed at the same time the bits are added together. + + + + + + + Return the mouse mode. See the constants for more information. + + + + + + + Returns the mouse speed. + + + + + + + + + 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]. + + + + + + + + + + + Returns if the joystick button at the given index is currently pressed. (see JOY_* constants in [@Global Scope]) + + + + + + + + + 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. + + @@ -14452,35 +14561,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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]) - - - - - - - - - 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]. - - - - - - - - - Add a new mapping entry (in SDL2 format) to the mapping database. Optionally update already connected devices. - - @@ -14488,100 +14568,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - - - - - - - - - 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 - - - - - - - - - Returns a SDL2 compatible device guid on platforms that use gamepad remapping. Returns "Default Gamepad" otherwise. - - - - - - - If the device has an accelerometer, this will return the movement. - - - - - - - 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. - - - - - - - Set the mouse mode. See the constants for more information. - - - - - - - Return the mouse mode. See the constants for more information. - - - - - - - Sets the mouse position to the specified vector. - - - - - - - This will simulate pressing the specificed action. - - - - - - - If the specified action is already pressed, this will release it. - - @@ -14591,6 +14577,20 @@ 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. + + + + + + + Sets the mouse position to the specified vector. + + @@ -14682,16 +14682,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - - Empty input event. + + + + Joystick motion event. + + + Joystick button event. Key event. @@ -14702,18 +14707,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Mouse button event. - - Joystick motion event. - - - Joystick button event. + + Empty input event. - - @@ -14768,15 +14768,19 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + - + + + + + @@ -14784,16 +14788,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -14848,21 +14848,25 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + - + + + + + @@ -14870,16 +14874,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -14934,19 +14934,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + - + + + + + @@ -14954,16 +14958,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15018,31 +15018,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - + + + + - - + + + + - + + + + + @@ -15050,16 +15054,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15114,43 +15114,47 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - + - + - + - + + + - + - + - + + + + + + + - + + + + + @@ -15158,16 +15162,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15222,49 +15222,53 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - + - + - + - + + + + + - + + + - + + + + + - + + + + + @@ -15272,16 +15276,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15336,35 +15336,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - + + - + - + + + + + - + + + + + @@ -15372,16 +15376,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15436,25 +15436,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - + + + + + + - + + + + + @@ -15462,16 +15466,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - @@ -15482,38 +15482,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. - + + + + + + + Add an [InputEvent] to action. This [InputEvent] will trigger the action. + + + + + + + + + Remove an [InputEvent] from an action. + + + - - Whether this InputMap has an action with name "action". - - - - - - + - Return the id of an action. - - - - - - - - - Return the action from an id. - - - - - - - Return an [Array] of all actions in the [InputMap]. + Whether an action has an [InputEvent] associated with it. @@ -15530,33 +15525,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. - - + + + + + + + Return the action from an id. + + + + - - - Whether an action has an [InputEvent] associated with it. - - - - - - - - - Remove an [InputEvent] from an action. + Return the id of an action. @@ -15568,14 +15562,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". @@ -15593,18 +15593,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - + + + + + + @@ -15617,6 +15617,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. + + @@ -15647,15 +15656,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the array size. - - - - - - - Create from a generic array. - - @@ -15666,9 +15666,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -15678,20 +15678,8 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - + + @@ -15702,9 +15690,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + + + + + + + @@ -15718,6 +15718,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + @@ -15728,38 +15736,40 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - + - - - - - + - - + + + + + + + + + + + + + + + + + + + + - - - - - - - - @@ -15768,76 +15778,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - - - - - - @@ -15846,15 +15800,41 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + @@ -15868,23 +15848,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - + + + + + @@ -15894,21 +15868,65 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -15918,49 +15936,31 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - + + + - + + + + + + + @@ -15972,17 +15972,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - + + + @@ -15998,33 +15998,33 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + - + + + @@ -16034,9 +16034,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -16046,24 +16046,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - @@ -16076,9 +16064,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + + + + + + + @@ -16094,11 +16094,16 @@ 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]. @@ -16108,13 +16113,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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]. - - @@ -16128,22 +16126,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]. @@ -16160,6 +16160,92 @@ 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. + + + + + Return if this body can collide with character bodies. + + + + + + + Return if this body can collide with kinematic bodies. + + + + + + + Return if this body can collide with rigid bodies. + + + + + + + Return if this body can collide with static 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 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]. + + + + + + + Return the velocity of the body that collided with this one. + + + + + + + Return the collision margin for this object. + + + + + + + Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. + + + + + + + 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 whether the body is colliding with another. + + @@ -16178,69 +16264,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - - - - - 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 whether the body is colliding with another. - - - - - - - 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 the normal of the surface the body collided with. This is useful to implement sliding along a surface. - - - - - - - Return the velocity of the body that collided with this one. - - - - - - - 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]. - - - + - Set if this body should collide with static bodies. - - - - - - - Return if this body can collide with static bodies. + Set if this body should collide with character bodies. @@ -16250,13 +16278,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set if this body should collide with kinematic bodies. - - - - - Return if this body can collide with kinematic bodies. - - @@ -16264,25 +16285,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set if this body should collide with rigid bodies. - - - - - Return if this body can collide with rigid bodies. - - - + - Set if this body should collide with character bodies. - - - - - - - Return if this body can collide with character bodies. + Set if this body should collide with static bodies. @@ -16292,13 +16299,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. - - @@ -16313,6 +16313,69 @@ 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. + + + + + Return the body that collided with this one. + + + + + + + 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 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 velocity of the body that collided with this one. + + + + + + + Return the collision margin for this object. + + + + + + + Return the normal of the surface the body collided with. This is useful to implement sliding along a surface. + + + + + + + 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 last movement done by the body. + + + + + + + Return whether the body is colliding with another. + + @@ -16331,76 +16394,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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 true if there would be a collision if the body moved in the given direction. - - - - - - - Return the last movement done by the body. - - Undo the last movement done by the body. - - - - - Return whether the body is colliding with another. - - - - - - - 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 velocity of the body that collided with this one. - - - - - - - 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]. - - - - - - - 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]. - - @@ -16408,11 +16406,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. @@ -16427,13 +16427,6 @@ 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. - - @@ -16441,83 +16434,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the alignment mode (any of the ALIGN_* enumeration values). - - - - - Sets the vertical alignment mode to any of the VALIGN_* enumeration values. - - - - - - - Return the vertical alignment mode (any of the VALIGN_* enumeration values). - - - - - - - Set the label text. Text can contain newlines. - - - - - - - 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 state of the [i]autowrap[/i] mode (see [method set_autowrap]). - - - - - - - Cuts off the rest of the text if it is too wide. - - - - - - - Return true if text would be cut off if it is too wide. - - - - - - - Display text in all capitals. - - - - - - - Return true if text is displayed in all capitals. - - - - - - - Return the height of a line. - - @@ -16525,46 +16441,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the amount of lines. - + - Return the total length of the text. - - - - - - - Restricts the number of characters to display. Set to -1 to disable. - - - - - - - Return the restricted number of characters to display. Returns -1 if unrestricted. - - - - - - - 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. + Return the height of a line. @@ -16574,6 +16455,97 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the the number of lines to skipped before displaying. + + + + + 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). + + + + + + + Return the label text. Text can contain newlines. + + + + + + + Return the total length of the text. + + + + + + + Return the vertical alignment mode (any of the VALIGN_* enumeration values). + + + + + + + Return the restricted number of characters to display. Returns -1 if unrestricted. + + + + + + + Return the state of the [i]autowrap[/i] mode (see [method set_autowrap]). + + + + + + + Return true if text would be cut off if it is too wide. + + + + + + + Return true if text is displayed in all capitals. + + + + + + + Sets the alignment mode to any of the ALIGN_* enumeration values. + + + + + + + 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. + + + + + + + Cuts off the rest of the text if it is too wide. + + + + + + + Sets the number of lines to skip before displaying. Useful for scrolling text. + + @@ -16581,11 +16553,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Restricts the number of lines to display. Set to -1 to disable. - - - + + + - Return the restricted number of lines to display. Returns -1 if unrestricted. + Restricts the number of characters to display (as a percentage of the total text). + + + + + + + Set the label text. Text can contain newlines. + + + + + + + Display text in all capitals. + + + + + + + Sets the vertical alignment mode to any of the VALIGN_* enumeration values. + + + + + + + Restricts the number of characters to display. Set to -1 to disable. @@ -16616,17 +16616,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - + - + + + + + @@ -16650,31 +16650,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]. @@ -16705,6 +16680,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]. + + @@ -16717,14 +16717,26 @@ 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. - - - - + + + + + + + + + + + + + + + + @@ -16733,6 +16745,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -16741,10 +16783,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - + + + + + + + + + + + + + + + + + + + + + + @@ -16755,92 +16815,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -16849,6 +16831,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + @@ -16859,55 +16859,6 @@ 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 true if the Light2D is enabled, false if it is not. - - - - - - - Set the texture of the Light2D. - - - - - - - Return the texture of the Light2D. - - - - - - - Set the offset of the light texture. - - - - - - - Return the offset of the light texture. - - - - - - - Set the color of the Light2D. - - @@ -16915,27 +16866,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the color of the Light2D. - - - - - Set the height of the Light2D. Used with 2D normalmapping. - - - - - - - Return the height of the Light2D. Used with 2D normalmapping. - - - - - - - Set the energy value of the Light2D. The bigger the value, the stronger the light. - - @@ -16943,81 +16873,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the energy value of the Light2D. - - - - - Set the scale value of the light texture. - - - + - 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 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. - - - - - - - Get the maximum Z value that objects of the scene can be in order to be affected by the Light2D. - - - - - - - Set the minimum layer value of objects of the scene that are affected by the Light2D. - - - - - - - Get the minimum layer value of objects of the scene that are affected by the Light2D. - - - - - - - Set the maximum layer value of objects of the scene that are affected by the Light2D. - - - - - - - Set the maximum layer value of objects of the scene that are affected by the Light2D. - - - - - - - Set the item mask of the Light2D to 'item_mask' value. + Return the height of the Light2D. Used with 2D normalmapping. @@ -17027,13 +16887,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the item mask of the Light2D. - - - - - Set the item shadow mask to 'item_shadow_mask' value. - - @@ -17041,11 +16894,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the item shadow mask of the Light2D. - - - + + + - Set the behaviour mode of the Light2D. Use constants defined in the constants section. + Set the maximum layer value of objects of the scene that are affected by the Light2D. + + + + + + + Get the minimum layer value of objects of the scene that are affected by the Light2D. @@ -17055,27 +16915,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the current mode set to the Light2D. - - - - - Enable or disable shadows casting from this Light2D according to the 'enabled' parameter. - - - - - - - Return true if shadow casting is enabled for this Light2D, else return false. - - - - - - - Set the shadow buffer size. - - @@ -17083,11 +16922,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the shadow buffer size. - - - + + + - Set the Exponential Shadow Multiplier (ESM) value of the Light2D. + Return the color of casted shadows for this Light2D. @@ -17097,6 +16936,125 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the Exponential Shadow Multiplier (ESM) value of the Light2D. + + + + + Return the texture of the Light2D. + + + + + + + Return the offset of the light texture. + + + + + + + Return the scale value of the light texture. + + + + + + + Get the maximum Z value that objects of the scene can be in order to be affected by the Light2D. + + + + + + + Get the minimum Z value that objects of the scene have to be in order to be affected by the Light2D. + + + + + + + Return true if the Light2D is enabled, false if it is not. + + + + + + + Return true if shadow casting is enabled for this Light2D, else return false. + + + + + + + Set the color of the Light2D. + + + + + + + Switches the Light2D on or off, depending on the 'enabled' parameter. + + + + + + + Set the energy value of the Light2D. The bigger the value, the stronger the light. + + + + + + + Set the height of the Light2D. Used with 2D normalmapping. + + + + + + + Set the item mask of the Light2D to 'item_mask' value. + + + + + + + Set the item shadow mask to 'item_shadow_mask' value. + + + + + + + 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. + + + + + + + Set the behaviour mode of the Light2D. Use constants defined in the constants section. + + + + + + + Set the shadow buffer size. + + @@ -17104,11 +17062,53 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the color of casted shadows for this Light2D. - - - + + + - Return the color of casted shadows for this Light2D. + Enable or disable shadows casting from this Light2D according to the 'enabled' parameter. + + + + + + + Set the Exponential Shadow Multiplier (ESM) value of the Light2D. + + + + + + + Set the texture of the Light2D. + + + + + + + Set the offset of the light texture. + + + + + + + Set the scale value of the light texture. + + + + + + + Set the maximum Z value that objects of the scene can be in order to be affected by the Light2D. + + + + + + + Set the minimum Z value that objects of the scene have to be in order to be affected by the Light2D. @@ -17135,11 +17135,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. @@ -17156,11 +17156,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. @@ -17175,16 +17175,11 @@ 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. @@ -17192,30 +17187,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Clear the [LineEdit] text. - - - Select the whole string. - - - - - - - Set the text in the [LineEdit], clearing the existing one and the selection. - - - - + + - Return the text in the [LineEdit]. - - - - - - - Set the cursor position inside the [LineEdit], causing it to scroll if needed. @@ -17225,13 +17200,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the cursor position inside the [LineEdit]. - - - - - 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. - - @@ -17239,18 +17207,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - - - - - 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 text in the [LineEdit]. @@ -17260,13 +17221,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the [i]editable[/i] status of the [LineEdit] (see [method set_editable]). - - - - - Set the [i]secret[/i] status of the [LineEdit]. When enabled, every character is displayed as "*". - - @@ -17282,15 +17236,54 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + Select the whole string. + + + + + + + + + + + + + Set the cursor position inside the [LineEdit], causing it to scroll if needed. + + + + + + + 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 "*". + + + - 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. + Set the text in the [LineEdit], clearing the existing one and the selection. - + + + @@ -17298,6 +17291,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. + + @@ -17310,24 +17310,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - + + + + + + + + + + + + @@ -17338,11 +17338,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. @@ -17359,11 +17359,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. @@ -17410,6 +17410,22 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + @@ -17422,10 +17438,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - @@ -17434,18 +17446,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - @@ -17486,10 +17486,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + + + + - + @@ -17510,14 +17518,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - @@ -17526,10 +17526,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + @@ -17546,13 +17546,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. @@ -17564,6 +17568,13 @@ 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. + + + + + 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). + + @@ -17571,11 +17582,19 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. + + + + + + + + + Set a [Material] flag, which toggles on or off a behavior when rendering. See enumeration FLAG_* for a list. @@ -17585,27 +17604,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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). - - - - - 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). - - - - - - - - - - - - - - + + 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). @@ -17627,27 +17648,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. - - - - - @@ -17678,6 +17678,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. + + @@ -17790,39 +17823,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. - - @@ -17843,6 +17843,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 3x2 Matrix for 2D transforms. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -17945,44 +17975,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - @@ -18012,28 +18012,28 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + + + - - - - - - - + + + @@ -18050,36 +18050,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -18095,6 +18065,40 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18102,87 +18106,6 @@ 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]). - - - - - - - - - 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 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 a [Material] in a given surface. Surface is rendered using this material. - - - - - - - - - - - - - - - - - - - - - - @@ -18193,73 +18116,150 @@ 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 length in vertices of the vertex array in the requested surface (see [method add_surface]). + + + + + + + + + Return the format mask of the requested surface (see [method add_surface]). + + + + + + + + + Return a [Material] in a given surface. Surface is rendered using this material. + + + + + + + + + + + + + + + + + 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 of integers, used as indices referencing vertices. No index can be beyond the vertex array size. - - Array format will include another set of UVs. - - - Array format will include bone indices. - - - Array format will include bone weights. - - - 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). @@ -18294,6 +18294,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + @@ -18304,10 +18312,72 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18318,32 +18388,12 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - - - - - - - - - - - - - - - - - - @@ -18352,94 +18402,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -18448,33 +18410,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - + + - - - - - - - - - - - + + + @@ -18494,18 +18440,46 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18520,32 +18494,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -18554,29 +18502,81 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18592,30 +18592,13 @@ 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. @@ -18625,12 +18608,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. + Return the current [Mesh] resource for the instance. - + + + + + + + + + + + Set the [Mesh] resource for the instance. + + + + + @@ -18646,6 +18646,11 @@ 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. + + + Clear the library. + + @@ -18653,39 +18658,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Create a new item in the library, supplied an id. - - - - - - - Set the name of the item. - - - - - - - - - Set the mesh of the item. - - - - - - - - - - - - + + - - - Return the name of the item. + Return the list of items. @@ -18697,6 +18674,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the mesh of the item. + + + + + + + Return the name of the item. + + @@ -18705,6 +18691,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + Get an unused id for a new item. + + @@ -18712,23 +18705,30 @@ 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. @@ -18746,59 +18746,16 @@ 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. - - - - - - - Set the amount of instances that is going to be drawn. Changing this number will erase all the existing instance transform and color data. - - - - - - - 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. - - - - - - - - - Set the color of a specific instance. + Return the visibility AABB. @@ -18810,6 +18767,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Get the color of a specific instance. + + + + + Return the amount of instances that is going to be drawn. + + + + + + + + + Return the transform of a specific instance. + + + + + + + Return the [Mesh] resource drawn as multiple instances. + + @@ -18817,16 +18797,36 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the visibility AABB. If not provided, MultiMesh will not be visible. - - - + + + + + - Return the visibility AABB. + Set the color of 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 amount of instances that is going to be drawn. Changing this number will erase all the existing instance transform and color data. + + + + + + + + + Set the transform for a specific instance. + + + + + + + Set the [Mesh] resource to be drawn in multiple instances. @@ -18841,13 +18841,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. - - @@ -18855,6 +18848,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. + + @@ -18894,56 +18894,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -18968,8 +18918,26 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + + + + + + + + + + + + + + + + + + + @@ -18980,6 +18948,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -18990,44 +18990,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -19044,6 +19006,44 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -19054,27 +19054,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - + @@ -19086,7 +19072,21 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + + + + + + + + + + @@ -19100,14 +19100,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + @@ -19118,9 +19118,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -19134,42 +19134,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -19184,17 +19148,17 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - - - - + + + + + @@ -19206,17 +19170,53 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + - + + + @@ -19230,14 +19230,14 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + - - + + @@ -19248,9 +19248,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -19265,157 +19265,7 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -19427,7 +19277,157 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -19500,20 +19500,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. - - @@ -19524,11 +19510,50 @@ 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. + 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. + + + + + + + + + + + + + + + + + + + + + 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. @@ -19544,21 +19569,38 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + - - - 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 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 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]. + + + + + + + + + + + + + Get the node index in the parent (assuming it has a parent). + + + + + + + Return the name of the [Node]. Name is be unique within parent. @@ -19585,34 +19627,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - get_node("/root/MyGame") - - - - - Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. - - - - - - - - - - - - - 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. - - - - - - - - - - @@ -19621,28 +19635,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + + Get the node owner (see [method set_owner]). - - + + - - - Return [i]true[/i] if the "node" argument is a direct or indirect child of the current node, otherwise return [i]false[/i]. - - - - - - - - - Return [i]true[/i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [i]false[/i]. + Return the parent [Node] of the current [Node], or an empty Object if the node lacks a parent. @@ -19661,20 +19665,82 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - - - + + + - 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 time elapsed (in seconds) since the last process callback. This is almost always different each time. + + + + + + + + + + + + + + + + + + + + + + + + - Remove a node from a group. + + + + + + + + + + + + + + + + + Return [i]true[/i] if the "node" argument is a direct or indirect child of the current node, otherwise return [i]false[/i]. + + + + + + + Return true if fixed processing is enabled (see [method set_fixed_process]). + + + + + + + + + Return [i]true[/i] if "node" occurs later in the scene hierarchy than the current node, otherwise return [i]false[/i]. @@ -19685,6 +19751,39 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + Return whether processing is enabled in the current node (see [method set_process]). + + + + + + + Return true if the node is processing input (see [method set_process_input]). + + + + + + + Return true if the node is processing unhandled input (see [method set_process_unhandled_input]). + + + + + + + + @@ -19694,62 +19793,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - + - - - 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. - - - - - - - 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. - - - - - - - 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). - - 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]). - - @@ -19757,129 +19809,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Notify the current node and all its children recursively by calling notification() in all of them. - - + + + + + + + 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. + + + + - 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]. + Remove a child [Node]. Node is NOT deleted and will have to be deleted manually. - - - - - 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 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 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 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 can process. - - - - - - - - - - - - - - - - - - - - - - + + + Remove a node from a group. @@ -19891,35 +19846,75 @@ 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. - - @@ -19928,6 +19923,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + Emitted when the node is renamed. + + @@ -19938,6 +19938,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + @@ -19949,10 +19953,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). - - - - @@ -19971,6 +19971,139 @@ 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 pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. + + + + + + + + + Return the rotation angle in radians needed for the 2d node to point at 'point' position. + + + + + + + Return the global position of the 2D node. + + + + + + + Return the position of the 2D node. + + + + + + + + + Return the transform [Matrix32] calculated relatively to the parent of this 2D node. + + + + + + + Return the rotation of the 2D node. + + + + + + + + + + + + + Return the scale of the 2D node. + + + + + + + Return the Z-index of the 2D node. + + + + + + + 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. + + + + + + + + + Apply a local translation on X axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. + + + + + + + + + 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 'radians' rotation to the 2D node, starting from its current rotation. + + + + + + + Apply the 'ratio' scale to the 2D node, according to its current scale value. + + + + + + + Set the global position of the 2D node to 'pos'. + + + + + + + Set the global transform [Matrix32] of the 2D node. + + @@ -19999,93 +20132,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the scale of the 2D node. - - - - - Return the position of the 2D node. - - - - - - - Return the rotation of the 2D node. - - - - - - - - - - - - - Return the scale of the 2D node. - - - - - - - Apply a 'radians' rotation to the 2D node, starting from its current rotation. - - - - - - - - - Apply a local translation on X axis to the 2D node according to the 'delta' of the process. If 'scaled' is false, the movement is normalized. - - - - - - - - - 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 the 'ratio' scale to the 2D node, according to its current scale value. - - - - - - - Set the global position of the 2D node to 'pos'. - - - - - - - Return the global position of the 2D node. - - @@ -20093,29 +20139,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the local transform [Matrix32] of the 2D node. - - - - - Set the global transform [Matrix32] of the 2D node. - - - - - - - Rotate the 2d node so it points at 'point' position. - - - - - - - - - Return the rotation angle in radians needed for the 2d node to point at 'point' position. - - @@ -20123,13 +20146,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set the Z-index value of the 2D node. - - - - - Return the Z-index of the 2D node. - - @@ -20137,27 +20153,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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 true if the Z-index value of this 2D node is relative to its parent's. Else, return false. - - - - + + - Set the pivot position of the 2D node to 'pivot' value. This method is implemented only in some nodes that inherit Node2D. - - - - - - - - - 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. @@ -20174,6 +20174,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. + + @@ -20227,15 +20236,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. - - @@ -20257,11 +20257,74 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) -Command Line - - + + + + + + + + + + + + + Return true if the host OS allows drawing. + + + + + + + + + + + + + Delay executing of the current thread by given milliseconds. + + + + + + + Delay executing of the current thread by given microseconds. + + + + + + + + + + + + + + + + + + + + + + + + + + + Execute the binary file in given path, optionally blocking until it returns. A process ID is returned. + + + + + + - Set clipboard to the OS. @@ -20271,17 +20334,251 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Get clipboard from the host OS. - - - - - - - - + + + + + Return the commandline passed to the engine. + + + + + + + Returns the current screen index (0 padded). + + + + + + + + + + + + + Return the absolute directory path of user data path([user://]). + + + + + + - Change the video mode. + + + + + + + Return the total amount of dynamic memory used (only works in debug). + + + + + + + + + Return an environment variable. + + + + + + + Return the path to the current engine executable. + + + + + + + Return the total amount of frames drawn. + + + + + + + Returns the frames per second of the running game. + + + + + + + + + Return the list of fullscreen modes. + + + + + + + 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]). + + + + + + + + + + + + + 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 + + + + + + + Returns the number of cores available in the host machine. + + + + + + + + + + + + + + + Returns the number of displays attached to the host machine + + + + + + + Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. + + + + + + + + + + + + + + + + + Returns the dimensions in pixels of the specified screen. + + + + + + + + + + + + + Return the max amount of static memory used (only works in debug). + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return the amount of time passed in milliseconds since the engine started. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Return the current unix timestamp. @@ -20293,6 +20590,76 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the current video mode size. + + + + + 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. + + + + + + + Returns the size of the window (without counting window manager decorations). + + + + + + + + + Return true if an environment variable exists. + + + + + + + + + + + + + + + + + + + Return true if low cpu usage mode is enabled. + + + + + + + Returns whether the screen is being kept on or not. + + + + + + + + + + + + + + + + + + + + + Return true if the engine was executed with -v (verbose stdout). + + @@ -20311,87 +20678,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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). - - - - - - - - - - - - - - - - - - - - - - - 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). - - - - - - - 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. - - @@ -20399,41 +20685,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns whether the window is in fullscreen mode or not. - - - - - Set the window resizable state, if the window is not resizable it will preserve the dimensions specified in the project settings. - - - - - - - Returns whether the window is resizable or not. - - - - - - - Set whether the window is minimized. - - - - - - - Return true if the window is minimized. - - - - - - - Set the window size to maximized. - - @@ -20441,127 +20692,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if the window is maximized. - - - - - Sets the current screen orientation, the argument value must be one of the SCREEN_ORIENTATION constants in this class. - - - - - - - Returns the current screen orientation, the return value will be one of the SCREEN_ORIENTATION constants in this class. - - - - - - - Set keep screen on if true, or goes to sleep by device setting if false. (for Android/iOS) - - - + - Returns whether the screen is being kept on or not. + Return true if the window is minimized. - - - - - Set the amount of fixed iterations per second (for fixed process and physics). - - - - - - - Return the amount of fixed iterations per second (for fixed process and physics). - - - - - - - - - - - - - - - - - - - Speeds up or slows down the physics by changing the delta variable. (delta * time_scale) - - - - - - - - - + - - - - - - - Sets the window title to the specified string. - - - - - - - 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 cores available in the host machine. - - - - - - - Return the path to the current engine executable. - - - - - - - - - - - - - - - Execute the binary file in given path, optionally blocking until it returns. A process ID is returned. + Returns whether the window is resizable or not. @@ -20573,265 +20715,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Kill a process ID (this method can be used to kill processes that were not spawned by the game). - - - - - - - - - - - - - Returns the game process ID - - - - - - - - - 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 current unix timestamp. - - - - - - - - - - - - - - - - - - - Delay executing of the current thread by given microseconds. - - - - - - - Delay executing of the current thread by given milliseconds. - - - - - - - Return the amount of time passed in milliseconds since the engine started. - - - - - - - - - - - - - Return the host OS locale. - - - - - - - - - - - - - - - - - - - Return true if the host OS allows drawing. - - - - - - - Return the total amount of frames drawn. - - - - - - - Return true if the engine was executed with -v (verbose stdout). - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Return the max amount of static memory used (only works in debug). - - - - - - - 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. - - - - - - - - - + @@ -20849,58 +20739,85 @@ 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. + + + + @@ -20913,6 +20830,89 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + 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. + + + + + + + + + + @@ -20933,6 +20933,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + @@ -20949,10 +20953,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - @@ -20997,6 +20997,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. + + @@ -21031,117 +21040,6 @@ 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. - - - - - - - - - Check the type of the object against a string (including inheritance). - - - - - - - - - Set property into the object. - - - - - - - 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). - - - - - - - - - - - - - - - Notify the object of something. - - - - - - - Return the instance ID. All objects have a unique instance ID. - - - - - - - Set a script into the object, scripts extend the object functionality. - - - - - - - Return the object script (or null if it doesn't have one). - - - - - - - - - Set a metadata into the object. Metadata is serialized. Metadata can be [i]anything[/i]. - - - - - - - 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. - - @@ -21151,31 +21049,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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_*). - - - - - - - - - - - - - - - - - - - - - - - Emit a signal. Arguments are passed in an array. - - @@ -21230,27 +21103,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - - - - - - - - - - Return the list of signals as an array of dictionaries. - - - - - - - + Return true if this object can translate strings. @@ -21281,6 +21138,129 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Disconnect a signal from a method. + + + + + + + + + + + + + + + Emit a signal. Arguments are passed in an array. + + + + + + + + + + + Get a property from the object. + + + + + + + Return the instance ID. All objects have a unique instance ID. + + + + + + + Return a metadata from the object. + + + + + + + Return the list of metadata in 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 the object script (or null if it doesn't have one). + + + + + + + + + + + + + + + Return the list of signals as an array of dictionaries. + + + + + + + Return the type of the object as a string. + + + + + + + + + Return true if a metadata is found with the requested name. + + + + + + + + + + + + + + + + + + + + + + + Return true if signal emission blocking is enabled. + + @@ -21294,6 +21274,43 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return true if a connection exists for a given signal and target/method. + + + + + + + + + + + + + Check the type of the object against a string (including inheritance). + + + + + + + + + Notify the object of something. + + + + + + + + + + + + + Set property into the object. + + @@ -21301,13 +21318,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) If set to true, signal emission is blocked. - - - - - Return true if signal emission blocking is enabled. - - @@ -21315,24 +21325,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Set true if this object can translate strings (in calls to tr() ). Default is true. - - - - - Return true if this object can translate strings. - - - - - - - - - - + + + + - Deprecated, will go away. + Set a metadata into the object. Metadata is serialized. Metadata can be [i]anything[/i]. + + + + + + + Set a script into the object, scripts extend the object functionality. @@ -21344,12 +21350,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]. - - - - - - @@ -21358,12 +21358,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. @@ -21373,6 +21367,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. + @@ -21381,9 +21381,15 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + + + + + + @@ -21393,30 +21399,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + - - - - - - - - - - - - @@ -21447,15 +21447,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. - - @@ -21467,95 +21458,13 @@ 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". - - - - - - - - - Set the icon of an item at index "idx". - - - - - - - - - - - - - - - - - Set the ID of an item at index "idx". - - - - - - - - - - - - - - - - - Return the text of the item at index "idx". - - - - - - - - - Return the icon of the item at index "idx". - - - - - - - - - Return the ID of the item at index "idx". - - - - - - - - - - - - - - - - - - - - - Return the amount of items in the OptionButton. + 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. @@ -21568,11 +21477,44 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Clear all the items in the [OptionButton]. - + + + - Select an item by index and make it the current item. + 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". + + + + + + + + + + + + + + + Return the text of the item at index "idx". @@ -21592,12 +21534,70 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + Select an item by index and make it the current item. + + + + + + + + + Set the ID of an item at index "idx". + + + + + + + + + + + + + + + + + Set the icon of an item at index "idx". + + + + + + + + + + + + + + + + + Set the text of an item at index "idx". + + @@ -21611,32 +21611,32 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + - + + + + + + + - - - - - - - - - + + + @@ -21645,16 +21645,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - @@ -21673,6 +21663,16 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + @@ -21742,23 +21742,6 @@ 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]. - - - - - - - - - - @@ -21771,6 +21754,23 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + + + + + + + + + + Pack will ignore any sub-nodes not owned by given node. See [method Node.set_owner]. + + @@ -21783,20 +21783,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. @@ -21806,6 +21797,20 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Get a raw packet. + + + + + Return the error state of the last packet received (via [method get_packet] and [method get_var]). + + + + + + + Get a Variant. + + @@ -21815,18 +21820,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Send a raw packet. - - - - - Return the error state of the last packet received (via [method get_packet] and [method get_var]). - - - + + + - Return the number of packets currently available in the ring-buffer. + Send a Variant as a packet. @@ -21860,6 +21860,39 @@ 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. + + + Close the UDP socket the [PacketPeerUDP] is currently listening on. + + + + + + + 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 IP 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. + + @@ -21871,46 +21904,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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 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]). - - @@ -21922,6 +21915,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]. + + @@ -21938,10 +21938,10 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - + + @@ -21970,53 +21970,6 @@ 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. - - - - - - - - - - - - - - - - - Set the base offset in pixels of all children [ParallaxLayer] nodes. - - - - - - - Return the base offset. - - - - - - - Set the base motion scale of all children [ParallaxLayer] nodes. - - - - - - - Return the base motion scale. - - - - - - - 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. - - @@ -22024,13 +21977,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the beginning limit. - - - - - 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. - - @@ -22038,11 +21984,24 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the ending limit. - - - + + + + + Return the base offset. + + + + + + + Return the base motion scale. + + + + + - Set to true for all child [ParallaxLayer] nodes to not be affected by the zoom level of the camera. @@ -22052,6 +22011,47 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return ignoring camera zoom. + + + + + Set to true for all child [ParallaxLayer] nodes to not be affected by the zoom level of the camera. + + + + + + + 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 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. + + + + + + + Set the base offset in pixels of all children [ParallaxLayer] nodes. + + + + + + + Set the base motion scale of all children [ParallaxLayer] nodes. + + + + + + + + @@ -22064,11 +22064,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. @@ -22085,11 +22085,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. @@ -22102,63 +22102,63 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - - - - - - - - - - + - - - - - - - - - + + + - + + + + + + + + + + + + + - - - + + + + + + + + + + + + + + + @@ -22168,9 +22168,9 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + @@ -22186,13 +22186,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. - - @@ -22200,149 +22193,6 @@ 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 current visibility AABB. - - - - - - - Set the half extents for the emission box. - - - - - - - Return the half extents for the emission box. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set the normal vector towards where gravity is pulling (by default, negative Y). - - - - - - - Return the normal vector towards where gravity is pulling (by default, negative Y). - - - - - - - - - Set a specific variable for the particle system (see VAR_* enum). - - - - - - - - - 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 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 position of a color phase (0 to 1). - - - - - - - - - Set the color of a color phase. - - @@ -22352,23 +22202,37 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Return the color of a color phase. - - + + + + - Set the material used to draw particles. + Return the position of a color phase (0 to 1). - - + + - Return the material used to draw particles. - - - + + + + + + + + + + + Return the half extents for the emission box. + + + + + @@ -22378,10 +22242,43 @@ 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. + + + + + + + Return the randomness for a specific variable of the particle system. Randomness produces small changes from the default each time a particle is emitted. + + + + + + + + + Return a specific variable for the particle system (see VAR_* enum). + + + + + + + Return the current visibility AABB. @@ -22390,10 +22287,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + Return the "emitting" property state (see [method set_emitting]). @@ -22402,24 +22300,136 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + Set total amount of particles in the system. + + + + + + + + + Set the color of a color phase. + + + + + + + + + Set the position of a color phase (0 to 1). + + - - - + + + + + + + + Set the half extents for the emission box. + + + + + + + + + + + + + + + + + + + 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). + + + + + + + + + + + + + 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. + + + + + + + + + + + + @@ -22434,16 +22444,6 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - - - @@ -22454,27 +22454,6 @@ 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 whether this emitter is currently emitting or not - - - - - - - Sets the amount of particles spawned at each emission - - @@ -22482,51 +22461,60 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the amount of particles spawned at each emission - - - - - Sets the amount of seconds that each particle will be visible. - - - - + + - Gets the amount of seconds that each particle will be visible. + Returns the tint color 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. - + - - Returns the emitter time scale - - - - + - - + + - - - + + + - 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 [ColorRamp] used to tint each particle + + + + + + + Returns the half extents of the emission box. + + + + + + + + + + + + + Returns the particle spawn origin position relative to the emitter. @@ -22536,13 +22524,29 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. @@ -22554,13 +22558,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. @@ -22572,15 +22573,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 - - @@ -22588,54 +22580,24 @@ 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 tint color for each particle. + Returns the emitter time scale - - - - - - - Sets the [ColorRamp] used to tint each particle. Particle will be tinted according to their lifetimes. - - - - + + - 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. - - - - - - + Returns whether this emitter is currently emitting or not @@ -22644,100 +22606,18 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -22748,15 +22628,106 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - + + + + + 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. + + + + + + + Sets the half extents of the emission box, particles will be spawned at random inside this 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. + + + + + + + + + - - - + + + + + + + + + @@ -22766,43 +22737,91 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - + + + + 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. @@ -22825,25 +22844,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. - - - - - - - - - - - @@ -22852,38 +22852,18 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) - - - - - - - - + + - - - - - - - - - - - - - - @@ -22892,15 +22872,35 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) + + + + + + - - - + + + + + + + + + + + + + + + + + @@ -22916,13 +22916,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]. - - @@ -22930,6 +22923,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the [Curve3D] contained. + + + + + Sets the [Curve3D]. + + @@ -22942,13 +22942,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]. - - @@ -22956,6 +22949,13 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) Returns the [Curve2D] contained. + + + + + Sets the [Curve2D]. + + @@ -22969,26 +22969,11 @@ Example: (content-length:12), (Content-Type:application/json; charset=UTF-8) 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. - - - - + + - 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. @@ -22998,25 +22983,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. @@ -23026,18 +23004,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 rotation mode. The constants below list which axes are allowed to rotate for each mode. + Returns the Y displacement this node has from its parent [Path]. + + + + + + + Returns whether this node wraps its offsets around, or truncates them to the path ends. @@ -23049,11 +23027,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. @@ -23063,11 +23042,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]. @@ -23095,26 +23095,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. @@ -23124,25 +23109,11 @@ 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]. - - - - - - - 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 in pixels. @@ -23152,11 +23123,18 @@ A similar effect may be achieved moving 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). - - - + + + - If set, this node rotates to follow the path, making its descendants rotate. + Returns the vertical displacement this node has from its parent [Path2D]. + + + + + + + Returns whether this node wraps its offsets around, or truncates them to the path ends. @@ -23175,11 +23153,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. @@ -23189,11 +23168,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]. @@ -23219,13 +23219,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. @@ -23237,16 +23240,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. @@ -23269,12 +23269,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -23285,31 +23279,13 @@ This method controls whether the position between two cached points is interpola - - - + - + - - - - - - - - - - - - - - - - - + @@ -23323,7 +23299,31 @@ This method controls whether the position between two cached points is interpola - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -23335,62 +23335,6 @@ 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 rate at which the body stops rotating, if there are not any other forces moving it. - - - - - - - Return the inverse of the mass of the body. - - - - - - - Return the inverse of the inertia of the body. - - - - - - - Change the linear velocity of the body. - - - - - - - Return the current linear velocity of the body. - - - - - - - Change the angular velocity of the body. - - @@ -23398,68 +23342,6 @@ This method controls whether the position between two cached points is interpola Return the angular velocity of the body. - - - - - Change the transform matrix of the body. - - - - - - - Return the transform matrix of the body. - - - - - - - Set the sleeping state of the body, only affects character/rigid bodies. - - - - - - - Return true if this body is currently sleeping (not active). - - - - - - - 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 shape index of the collision. - - @@ -23469,15 +23351,6 @@ This method controls whether the position between two cached points is interpola Return the [RID] of the collider. - - - - - - - Return the contact position in the collider. - - @@ -23496,6 +23369,15 @@ This method controls whether the position between two cached points is interpola 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 contact position in the collider. + + @@ -23523,16 +23405,59 @@ This method controls whether the position between two cached points is interpola Return the linear velocity vector at contact point of the collider. - + + + + + 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 normal (of this body) of the contact point. + + + + + + + + + Return the local position (of this body) of the contact point. + + + + + + + + + Return the local shape index of the collision. + + + - Return the timestep (delta) used for the simulation. + Return the inverse of the inertia of the body. - + + + - Call the built-in force integration code. + Return the inverse of the mass of the body. + + + + + + + Return the current linear velocity of the body. @@ -23542,6 +23467,81 @@ This method controls whether the position between two cached points is interpola Return the current state of space, useful for queries. + + + + + Return the timestep (delta) used for the simulation. + + + + + + + Return the rate at which the body stops rotating, if there are not any other forces moving it. + + + + + + + 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 transform matrix of the body. + + + + + Call the built-in force integration code. + + + + + + + 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. + + @@ -23566,6 +23566,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. + + @@ -23632,50 +23671,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. @@ -23685,12 +23691,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). - @@ -23701,94 +23701,31 @@ 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]. + 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. - - + + - + - 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]. + Assign the area to a descendant of [Object], so it can exist in the node tree. - - - - + + - Return the type of shape (see SHAPE_* constants). - - - - - - - Return the shape data. - - - - - - - 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. - - - - - - - - - Return whether the space is active. - - - - - - - - - - - Set the value for a space parameter. A list of available parameters is on the SPACE_PARAM_* constants. - - - - - - - - - - - Return the value of a space parameter. - - - - - - - - - Return the state of a space, a [Physics2DDirectSpaceState]. This object can be used to make collision/intersection queries. + Remove all shapes from an area. It does not delete the shapes, so they can be reassigned later. @@ -23798,13 +23735,53 @@ This method controls whether the position between two cached points is interpola Create an [Area2D]. - + + + - + + Get the instance ID of the object the area is assigned to. + + + + + + - Assign a space to the area. + Return an area parameter value. + + + + + + + + + + + Return the [RID] of the nth shape of an area. + + + + + + + + + Return the number of shapes assigned to an area. + + + + + + + + + + + Return the transform matrix of a shape within an area. @@ -23816,15 +23793,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_*. - - @@ -23834,15 +23802,67 @@ This method controls whether the position between two cached points is interpola Return the space override mode for the area. - + + + - + + Return the transform matrix for an 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. + Remove a shape from an area. It does not delete the shape, so it can be reassigned later. + + + + + + + + + Set which physics layers the area will monitor. + + + + + + + + + Assign the area to one or many physics layers. + + + + + + + + + + + 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. + + + + + + + + + + + Set the value for an area parameter. A list of available parameters is on the AREA_PARAM_* constants. @@ -23867,80 +23887,22 @@ This method controls whether the position between two cached points is interpola Set the transform matrix for an area shape. - - - + + + - Return the number of shapes assigned to an area. + Assign a space to the area. - - - + - + - Return the [RID] of the nth shape of an area. - - - - - - - - - - - Return the transform matrix of a shape within an area. - - - - - - - - - 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. - - - - - - - - - Assign the area to one or many physics layers. - - - - - - - - - Set which physics layers the area will monitor. - - - - - - - - - - - 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_*. @@ -23952,103 +23914,13 @@ This method controls whether the position between two cached points is interpola Set the transform matrix for an area. - - - - - - - Return an area parameter value. - - - - - - - - - Return the transform matrix for an area. - - - - - - - - - Assign the area to a descendant of [Object], so it can exist in the node tree. - - - - - - - - - Get the instance ID of the object the area is assigned to. - - - - - - - - - - - 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. - - - - - - - - - - - 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 [RID] of the space assigned to a body. - - - - - - - - - Set the body mode, from one of the constants BODY_MODE*. - - - - - - - - - Return the body mode. + Add a body to the list of bodies exempt from collisions. @@ -24062,115 +23934,15 @@ This method controls whether the position between two cached points is interpola 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. - + - + - + - Substitute a given body shape by another. The old shape is selected by its index, the new one by its [RID]. - - - - - - - - - - - Set the transform matrix for a body shape. - - - - - - - - - - - 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 the number of shapes assigned to a body. - - - - - - - - - - - Return the [RID] of the nth shape of a body. - - - - - - - - - - - Return the transform matrix of a body shape. - - - - - - - - - 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. - - - - - - - Remove all shapes from 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 whether a body's shape is marked as a trigger. + Add a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates. @@ -24182,59 +23954,22 @@ This method controls whether the position between two cached points is interpola Assign the area to a descendant of [Object], so it can exist in the node tree. - - + + + + + Remove all shapes from a body. + + + + - + + + - 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 the continuous collision detection mode. - - - - - - - - - Set the physics layer or layers a body belongs to. - - - - - - - - - Return the physics layer or layers a body belongs to. - - - - - - - - - Set the physics layer or layers a body can collide with. + 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. @@ -24246,15 +23981,67 @@ This method controls whether the position between two cached points is interpola Return the physics layer or layers a body can collide with. - + + + - - - + + Return the continuous collision detection mode. + + + + + + - Set a body parameter (see BODY_PARAM* constants). + Return the physics layer or layers a body belongs to. + + + + + + + + + Return the maximum contacts that can be reported. See [method body_set_max_contacts_reported]. + + + + + + + + + Return the body mode. + + + + + + + + + Get the instance ID of the object the area is assigned to. + + + + + + + + + Return the direction used for one-way collision detection. + + + + + + + + + Return how far a body can go through the given one, when it allows one-way collisions. @@ -24268,15 +24055,53 @@ This method controls whether the position between two cached points is interpola Return the value of a body parameter. - + + + - - - + - Set a body state (see BODY_STATE* constants). + Return the [RID] of the nth shape of a body. + + + + + + + + + Return the number of shapes assigned to a body. + + + + + + + + + Return the metadata of a shape of a body. + + + + + + + + + + + Return the transform matrix of a body shape. + + + + + + + + + Return the [RID] of the space assigned to a body. @@ -24288,33 +24113,24 @@ This method controls whether the position between two cached points is interpola Return a body state. - + + + - - - - - Add a positioned impulse to the applied force and torque. Both the force and the offset from the body origin are in global coordinates. + Return whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). - + + + - + - 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. - - - - - - - - - Add a body to the list of bodies exempt from collisions. + Return whether a body's shape is marked as a trigger. @@ -24326,76 +24142,41 @@ This method controls whether the position between two cached points is interpola Remove a body from the list of bodies exempt from 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. + Remove a shape from a body. The shape is not deleted, so it can be reused afterwards. - - - + + + - Return the maximum contacts that can be reported. See [method body_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. - + - + - 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 physics layer or layers a body can collide with. - - - + - - Return the direction used for one-way collision detection. - - - - - - + - 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]). - - - - - - - - - Return how far a body can go through the given one, when it allows one-way collisions. - - - - - - - - - Set whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). - - - - - - - - - Return whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). + 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. @@ -24411,6 +24192,135 @@ This method controls whether the position between two cached points is interpola Set the function used to calculate physics for an object, if that object allows it (see [method body_set_omit_force integration]). + + + + + + + Set the physics layer or layers a body belongs to. + + + + + + + + + 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 mode, from one of the constants BODY_MODE*. + + + + + + + + + Set whether a body uses a callback function to calculate its own physics (see [method body_set_force_integration_callback]). + + + + + + + + + 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 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 body parameter (see BODY_PARAM* constants). + + + + + + + + + + + Substitute a given body shape by another. The old shape is selected by its index, the new one by its [RID]. + + + + + + + + + + + Mark a body's shape as a trigger. A trigger shape cannot affect other bodies, but detects other shapes entering and exiting it. + + + + + + + + + + + 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 the transform matrix for a body shape. + + + + + + + + + Assign a space to the body (see [method create_space]). + + + + + + + + + + + Set a body state (see BODY_STATE* constants). + + @@ -24426,18 +24336,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. - + @@ -24445,20 +24359,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. @@ -24478,33 +24406,7 @@ 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. - - - - - - - - - - - - - Create a damped spring 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. - - - + @@ -24512,7 +24414,7 @@ This method controls whether the position between two cached points is interpola - Return the value of a damped spring joint parameter. + Return the value of a joint parameter. @@ -24524,11 +24426,28 @@ This method controls whether the position between two cached points is interpola Return the type of a joint (see JOINT_* 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 a joint parameter. Parameters are explained in the JOINT_PARAM* constants. + + + + + + + + + + + + + Create a pin joint between two bodies. If not specified, the second body is assumed to be the joint itself. @@ -24538,37 +24457,226 @@ This method controls whether the position between two cached points is interpola Activate or deactivate the 2D physics engine. - - + + - + - Return information about the current state of the 2D physics engine. The states are listed under the INFO_* constants. + 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 shape (see SHAPE_* constants). + + + + + + + + + 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]. + + + + + + + + + Return the state of a space, a [Physics2DDirectSpaceState]. This object can be used to make collision/intersection queries. + + + + + + + + + + + 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. + + The value of the first parameter and area callback function receives, when an object enters one of its shapes. - - Constant to set/get the maximum distance a shape can be from another before they are considered separated. + + Constant to set/get gravity strength in an area. - - Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. + + This area does not affect gravity/damp. These are generally areas that exist only to detect collisions, and objects entering or exiting them. - - Constant to set/get the linear velocity threshold. Bodies slower than this will be marked as potentially inactive. + + The value of the first parameter and area callback function receives, when an object exits one of its shapes. - - Constant to set/get the angular velocity threshold. Bodies slower than this will be marked as potentially inactive. + + Constant to set/get gravity vector/center in an area. - - 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. + + 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 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. + + 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. + + + Constant to set/get the angular dampening factor of an area. + + + Constant to set/get the priority (order of processing) of an area. + + + Constant for static bodies. + + + 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 gravity multiplier. + + + Constant to sleep/wake up a body, or to get whether it is sleeping. + + + Constant to set/get a body's linear dampening factor. + + + Constant to set/get whether the body can sleep. + + + Constant to set/get a body's angular dampening factor. + + + This is the last ID for body parameters. Any attempt to set this property is ignored. Any attempt to get it returns 0. + + + Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. + + + Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise. + + + Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. + + + 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. + + + 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. + + + Constant to create groove joints. + + + Constant to create damped spring joints. 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. @@ -24594,134 +24702,26 @@ This method controls whether the position between two cached points is interpola This constant is used internally by the engine. Any attempt to create this kind of shape results in an error. - - Constant to set/get gravity strength in an area. + + 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 gravity vector/center in an area. + + Constant to set/get the maximum distance a shape can be from another before they are considered separated. - - Constant to set/get whether the gravity vector of an area is a direction, or a center point. + + Constant to set/get the maximum distance a shape can penetrate another shape before it is considered a collision. - - 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. + + Constant to set/get the linear velocity threshold. Bodies slower than this will be marked as potentially inactive. - - This constant was used to set/get the falloff factor for point gravity. It has been superseded by AREA_PARAM_GRAVITY_DISTANCE_SCALE. + + Constant to set/get the angular velocity threshold. Bodies slower than this will be marked as potentially inactive. - - Constant to set/get the linear dampening factor of an area. + + 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 angular dampening factor of an area. - - - 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 a body's friction. - - - Constant to set/get a body's mass. - - - Constant to set/get a body's gravity multiplier. - - - Constant to set/get a body's linear dampening factor. - - - Constant to set/get a body's angular dampening factor. - - - 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. - - - Constant to set/get the current linear velocity of the body. - - - Constant to set/get the current angular velocity of the body. - - - Constant to sleep/wake up a body, or to get whether it is sleeping. - - - Constant to set/get whether the body can sleep. - - - Constant to create pin joints. - - - Constant to create groove joints. - - - 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. - - - 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). - - - Disables continuous collision detection. This is the fastest way to detect body collisions, but can miss small, fast-moving objects. - - - Enables continuous collision detection by raycasting. It is faster than shapecasting, but less precise. - - - Enables continuous collision detection by shapecasting. It is the slowest CCD method, and the most precise. - - - The value of the first parameter and area callback function receives, when an object enters one of its shapes. - - - The value of the first parameter and area callback function receives, when an object exits one of its shapes. - - - 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 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. @@ -24745,6 +24745,90 @@ This method controls whether the position between two cached points is interpola This class contains the shape and other parameters for intersection/collision queries. + + + + + Return the list of objects, or object [RID]s, that will be excluded from collisions. + + + + + + + Return the physics layer(s) the shape belongs to. + + + + + + + Return the collision margin for the shape. + + + + + + + Return the current movement speed of the shape. + + + + + + + Return the type of object the shape belongs to. + + + + + + + Return the [RID] of the shape queried. + + + + + + + Return the transform matrix of the shape queried. + + + + + + + Set the list of objects, or object [RID]s, that will be excluded from collisions. + + + + + + + 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. + + + + + + + Set the current movement speed of the shape. + + + + + + + Set the type of object the shape belongs to (see Physics2DDirectSpaceState.TYPE_MASK_*). + + @@ -24759,13 +24843,6 @@ This method controls whether the position between two cached points is interpola Set the [RID] of the shape to be used in queries. - - - - - Return the [RID] of the shape queried. - - @@ -24773,83 +24850,6 @@ This method controls whether the position between two cached points is interpola Set the transormation matrix of the shape. This is necessary to set its position/rotation/scale. - - - - - Return the transform matrix of the shape queried. - - - - - - - Set the current movement speed of the shape. - - - - - - - Return the current movement speed of the shape. - - - - - - - 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 physics layer(s) the shape belongs to. - - - - - - - Return the physics layer(s) the shape belongs to. - - - - - - - Set the type of object the shape belongs to (see Physics2DDirectSpaceState.TYPE_MASK_*). - - - - - - - Return the type of object the shape belongs to. - - - - - - - Set the list of objects, or object [RID]s, that will be excluded from collisions. - - - - - - - Return the list of objects, or object [RID]s, that will be excluded from collisions. - - @@ -24866,8 +24866,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -24882,16 +24882,16 @@ This method controls whether the position between two cached points is interpola - - + + - - + + @@ -24908,32 +24908,8 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -24950,14 +24926,38 @@ This method controls whether the position between two cached points is interpola - - + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -24974,8 +24974,8 @@ 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. - - + + @@ -24986,14 +24986,14 @@ This method controls whether the position between two cached points is interpola - + - - + + @@ -25010,27 +25010,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. @@ -25040,15 +25024,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. - - @@ -25058,13 +25033,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. @@ -25076,13 +25049,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. - - @@ -25090,13 +25056,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]). - - @@ -25104,13 +25063,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. - - @@ -25118,6 +25070,54 @@ 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]). + + @@ -25128,72 +25128,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -25210,45 +25144,9 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - @@ -25260,14 +25158,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -25284,6 +25174,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -25300,22 +25198,124 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25336,32 +25336,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -25390,20 +25364,46 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - @@ -25412,82 +25412,26 @@ This method controls whether the position between two cached points is interpola - - - - + + + + + + - - + + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -25498,10 +25442,46 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25514,14 +25494,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -25530,12 +25502,54 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25560,54 +25574,18 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -25620,60 +25598,44 @@ This method controls whether the position between two cached points is interpola - - + + - + - - - - + + + + + + - - + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -25688,27 +25650,19 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - + + - + + + - - @@ -25720,12 +25674,182 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -25750,96 +25874,10 @@ This method controls whether the position between two cached points is interpola - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -25854,149 +25892,7 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -26006,140 +25902,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -26150,62 +25912,20 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -26234,26 +25954,14 @@ This method controls whether the position between two cached points is interpola - - - + - + - - - - - - - - - - - + @@ -26266,8 +25974,437 @@ 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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -26284,46 +26421,28 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - + - + - + - - - + - - - - - - - - - - - - - - - - @@ -26344,146 +26463,27 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -26503,6 +26503,66 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -26515,72 +26575,12 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -26598,8 +26598,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -26614,16 +26614,16 @@ This method controls whether the position between two cached points is interpola - - + + - - + + @@ -26640,14 +26640,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -26656,6 +26648,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -26674,18 +26674,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. - - - - - - + + + + + + @@ -26698,6 +26698,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. + + @@ -26790,47 +26829,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. - - + + @@ -26839,8 +26841,6 @@ This method controls whether the position between two cached points is interpola - - @@ -26851,18 +26851,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -26875,11 +26875,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. - - - + + + - Define the set of vertices that will represent the polygon. + Return the polygon fill color. + + + + + + + Return whether this polygon is inverted or not. + + + + + + + Return the added padding around the bounding box. + + + + + + + Return the offset for the polygon vertices. @@ -26889,11 +26910,32 @@ 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 polygon texture offset. + + + + + + + Return the rotation in radians of the texture polygon. + + + + + + + Return the uv coordinate multiplier. @@ -26910,69 +26952,6 @@ This method controls whether the position between two cached points is interpola 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 polygon fill color. - - - - - - - Set the polygon texture. - - - - - - - Return the polygon texture - - - - - - - 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 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. - - - - - - - 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. - - - - - - - Return the uv coordinate multiplier. - - @@ -26980,13 +26959,6 @@ This method controls whether the position between two cached points is interpola 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). - - - - - Return whether this polygon is inverted or not. - - @@ -26994,13 +26966,6 @@ This method controls whether the position between two cached points is interpola Add extra padding around the bounding box, making it bigger. Too small a value can make the polygon triangulate strangely, due to numerical imprecision. - - - - - Return the added padding around the bounding box. - - @@ -27008,11 +26973,46 @@ This method controls whether the position between two cached points is interpola 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 offset for the polygon vertices. + Define the set of vertices that will represent the polygon. + + + + + + + Set the polygon texture. + + + + + + + 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. + + + + + + + Set the amount of rotation of the polygon texture, [code]texture_rotation[/code] is specified in radians and clockwise rotation. + + + + + + + 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 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. @@ -27025,14 +27025,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -27043,6 +27035,20 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + @@ -27053,10 +27059,10 @@ This method controls whether the position between two cached points is interpola - - + + - + @@ -27077,17 +27083,11 @@ This method controls whether the position between two cached points is interpola - - - - + + + + - - - - - - @@ -27103,6 +27103,18 @@ 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. + + + + + Returns whether the popup will hide other popups when shown on the screen. + + + + + Popup (show the control in modal form). + + @@ -27110,13 +27122,6 @@ 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, at the current size, or at a size determined by "size". - - - - - Popup (show the control in modal form) in the center of the screen, scaled at a ratio of size of the screen. - - @@ -27124,9 +27129,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. @@ -27136,25 +27143,18 @@ 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 hidden. + + @@ -27185,6 +27185,30 @@ 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 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 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. + + @@ -27209,28 +27233,9 @@ 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 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. + Add a separator between items. Separators also occupy an index. @@ -27244,119 +27249,18 @@ This method controls whether the position between two cached points is interpola 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 text of the item at index "idx". + Clear the popup menu, in effect removing all items. - - - - - - - Set the icon of the item at index "idx". - - - - - - - - - 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. - - - - - - - - - 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. - - - - - - - - - Set the checkstate status of the item at index "idx". - - - - - - - - - Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked. - - - - - - - - - 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. - - - - - - - - - Mark the item at index "idx" as a seperator, which means that it would be displayed as a mere line. - - - - - - - - - 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 text of the item at index "idx". - - - - - - - - - Return the icon of the item at index "idx". - - - - - - - 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 id of the item at index "idx". @@ -27368,6 +27272,38 @@ This method controls whether the position between two cached points is interpola 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 the amount of items. + + + + + + + + + Return the icon of the item at index "idx". + + + + + + + + + Find and return the index of the item containing a given id. + + + + + + + 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. + + @@ -27377,13 +27313,13 @@ This method controls whether the position between two cached points is interpola Return the submenu name of the item at index "idx". - - + + - Return whether the item is a seperator. If it is, it would be displayed as a line. + Return the text of the item at index "idx". @@ -27413,34 +27349,13 @@ This method controls whether the position between two cached points is interpola Return whether the item at index "idx" is disabled. When it is disabled it can't be selected, or its action invoked. - - + + - Return the id of the item at index "idx". - - - - - - - - - Find and return the index of the item containing a given id. - - - - - - - Return the amount of items. - - - - - Add a separator between items. Separators also occupy an index. + Return whether the item is a seperator. If it is, it would be displayed as a line. @@ -27450,9 +27365,94 @@ This method controls whether the position between two cached points is interpola 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. + Set the id of the item at index "idx". + + + + + + + + + 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. + + + + + + + + + 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. + + + + + + + + + Mark the item at index "idx" as a seperator, which means that it would be displayed as a mere line. + + + + + + + + + Set the checkstate status of the item at index "idx". + + + + + + + + + Sets whether the item at index "idx" is disabled or not. When it is disabled it can't be selected, or its action invoked. + + + + + + + + + Set the icon of the item at index "idx". + + + + + + + + + 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. + + + + + + + + + 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". @@ -27468,34 +27468,34 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - + + + + + + + + - + + + + + + + + + @@ -27522,39 +27522,11 @@ 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 portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. - - - - - - - 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 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]). + Return the range for auto-connecting two portals from different rooms sharing the same space. @@ -27564,13 +27536,6 @@ This method controls whether the position between two cached points is interpola 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]). - - - - - When the portal goes beyond the disable distance (see [method set_disable_distance]), it becomes opaque and displayed with color "color". - - @@ -27578,6 +27543,20 @@ This method controls whether the position between two cached points is interpola 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. + + + + + + + Return whether the portal is active. When disabled it causes the parent [VisualInstance] to not be visible any longer when looking through the portal. + + @@ -27585,11 +27564,32 @@ This method controls whether the position between two cached points is interpola Set the range for auto-connecting two portals from different rooms sharing the same space. - - - + + + - Return the range for auto-connecting two portals from different rooms sharing the same space. + 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]). + + + + + + + When the portal goes beyond the disable distance (see [method set_disable_distance]), it becomes opaque and displayed with color "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. + + + + + + + Set the portal shape. The shape is an array of [Vector2] points, representing a convex polygon in the X,Y plane. @@ -27628,31 +27628,31 @@ This method controls whether the position between two cached points is interpola General purpose progress bar. Shows fill percentage from right to left. - - - - - - + + + + + + - - - - - + - + + + + + @@ -27664,12 +27664,6 @@ This method controls whether the position between two cached points is interpola General purpose proximity-detection node. - - - - - - @@ -27678,6 +27672,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -27690,9 +27690,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -27716,21 +27716,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + + + @@ -27740,15 +27734,21 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + - - - + + + @@ -27758,9 +27758,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -27776,6 +27776,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. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -27856,48 +27888,16 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - @@ -27908,12 +27908,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -27922,6 +27916,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -27934,6 +27934,41 @@ 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 maximum value. + + + + + + + Return the minimum value. + + + + + + + Return the page size, if page is 0, paging is disabled. + + + + + + + Return the stepping, if step is 0, stepping is disabled. + + + + + + + Return value mapped to 0 to 1 (unit) range. + + @@ -27947,108 +27982,73 @@ This method controls whether the position between two cached points is interpola - - - - - Return the minimum value. - - - - - - - Return the maximum value. - - - - - - - Return the stepping, if step is 0, stepping is disabled. - - - - - - - Return the page size, if page is 0, paging is disabled. - - - - - - - Return value mapped to 0 to 1 (unit) range. - - - - - - - - - - - - - - - - - - - Set minimum value, clamped range value to it if it's less. - - - - - - - - - - - - - Set step value. If step is 0, stepping will be disabled. - - - - - - - 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 minimum value, clamped range value to it if it's less. + + + + + + + Set page size. Page is mainly used for scrollbars or anything that controls text scrolling. + + + + + + + + + + + + + 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. + + + + + + + + + + + @@ -28064,6 +28064,11 @@ This method controls whether the position between two cached points is interpola + + + This signal is emitted when min, max, range or step change. + + @@ -28071,11 +28076,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. - - @@ -28088,6 +28088,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. + + @@ -28132,15 +28141,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -28151,21 +28151,19 @@ This method controls whether the position between two cached points is interpola - - + + - - - + + + - - - + @@ -28175,12 +28173,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -28193,25 +28185,31 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + + + - + + + + + + + + + + + + + @@ -28223,13 +28221,15 @@ This method controls whether the position between two cached points is interpola - - + + - + + + @@ -28245,25 +28245,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. @@ -28273,13 +28270,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). - - @@ -28294,13 +28284,6 @@ 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 collision point in which the ray intersects the closest object. - - @@ -28308,41 +28291,11 @@ This method controls whether the position between two cached points is interpola Returns the normal of the intersecting object shape face containing the collision point. - - - - - - - - - - - Adds a collision exception so the ray does not report collisions with the specified [code]node[/code]. - - - - - - - - - - - - - Removes a collision exception so the ray does report collisions with the specified [code]node[/code]. - - - - - Removes all collision exception for this ray. - - - - - + + + + Returns the collision point in which the ray intersects the closest object. @@ -28352,15 +28305,62 @@ This method controls whether the position between two cached points is interpola Returns the layer mask for this ray. - + + + + + + + + + + + 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 + + + + + + + Removes a collision exception so the ray does report collisions with the specified [code]node[/code]. + + + + + + + + + + + + + Sets the ray destination point, so that the ray will test from the ray's origin to [code]local_point[/code] + + + + + + + Enables the RayCast2D. Only enabled raycasts will be able to query the space and report collisions. + + + - - - + + + @@ -28374,18 +28374,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -28398,13 +28398,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. - - @@ -28412,6 +28405,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. + + @@ -28424,6 +28424,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. + + @@ -28454,15 +28463,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -28475,6 +28475,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. + + @@ -28552,43 +28578,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. - @@ -28601,13 +28601,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. - - @@ -28615,6 +28608,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. + + @@ -28690,6 +28690,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]. + + @@ -28714,25 +28719,6 @@ 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 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]). - - @@ -28742,6 +28728,13 @@ This method controls whether the position between two cached points is interpola 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]). + + + + + 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]). + + @@ -28757,6 +28750,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. + + @@ -28767,18 +28767,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -28801,32 +28801,18 @@ 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. @@ -28836,6 +28822,13 @@ This method controls whether the position between two cached points is interpola 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. + + @@ -28849,18 +28842,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. @@ -28879,8 +28879,10 @@ This method controls whether the position between two cached points is interpola - - + + + + @@ -28891,15 +28893,25 @@ This method controls whether the position between two cached points is interpola - - - - + + - + + + + + + + + + + + + + @@ -28907,7 +28919,7 @@ This method controls whether the position between two cached points is interpola - + @@ -28921,9 +28933,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -28935,18 +28947,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - @@ -28966,19 +28966,6 @@ 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]. - - - - - - - - @@ -28993,6 +28980,19 @@ This method controls whether the position between two cached points is interpola Return the total amount of stages (calls to [method poll]) needed to completely load this resource. + + + + + 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]. + + + + + + + + @@ -29005,15 +29005,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. @@ -29028,13 +29042,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. @@ -29044,22 +29060,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. - - - - - - - - - - - - - - - - @@ -29081,31 +29081,6 @@ 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. - - - - - - - - - Rename a resource inside the preloader, from a text-id to a new text-id. - - - - - - - - - Return true if the preloader has a given resource. - - @@ -29122,6 +29097,31 @@ This method controls whether the position between two cached points is interpola Return the list of resources inside the preloader. + + + + + + + Return true if the preloader has a given resource. + + + + + + + Remove a resource from the preloader by text id. + + + + + + + + + Rename a resource inside the preloader, from a text-id to a new text-id. + + @@ -29134,6 +29134,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. + + @@ -29147,29 +29156,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. - - + + + + - - - - @@ -29180,36 +29180,125 @@ 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. + + + + + + + + - - + + + + + + + + + + + + + + + + + + - - + + @@ -29232,12 +29321,55 @@ This method controls whether the position between two cached points is interpola + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + Set to true if selecting the text inside this richtext is allowed. + + + + @@ -29252,147 +29384,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set to true if selecting the text inside this richtext is allowed. - - - - - - - Return true if selecting the text inside this richtext is allowed. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + @@ -29414,16 +29414,12 @@ This method controls whether the position between two cached points is interpola - - - - - - + + @@ -29440,33 +29436,37 @@ This method controls whether the position between two cached points is interpola - + + + + + - - - - - - - - - - - - - + + + + + + + - + + + - + + + + + @@ -29485,210 +29485,6 @@ 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]. - - - - - - - Set the body mass. - - - - - - - Return the current body mass. - - - - - - - Set the body weight given standard earth-weight (gravity 9.8). - - - - - - - Return the current body weight, given standard earth-weight (gravity 9.8). - - - - - - - Set the body friction, from 0 (frictionless) to 1 (max friction). - - - - - - - Return the current body friction, from 0 (frictionless) to 1 (max friction). - - - - - - - Set the body bounciness, from 0 (no bounciness) to 1 (max bounciness). - - - - - - - Return the current body bounciness. - - - - - - - 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 current body linear velocity. - - - - - - - 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 angular velocity. - - - - - - - Set the gravity factor. This factor multiplies gravity intensity just for this body. - - - - - - - Return the current body gravity scale. - - - - - - - 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 the current body linear damp. Default is -1. - - - - - - - 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 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 set_max_contacts_reported]. - - - - - - - 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 whether the body is using a custom integrator. - - - - - - - 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. - - - - - - - Return whether this body is using continuous collision detection. - - - - - - - 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. - - @@ -29698,11 +29494,109 @@ This method controls whether the position between two cached points is interpola 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 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. + Return the current body angular damp. Default is -1. + + + + + + + Return the current body angular velocity. + + + + + + + Return the current axis lock of the body. One of AXIS_LOCK_* enum. + + + + + + + Return the current body bounciness. + + + + + + + Return a list of the bodies colliding with this one. + + + + + + + Return the current body friction, from 0 (frictionless) to 1 (max friction). + + + + + + + Return the current body gravity scale. + + + + + + + Return the current body linear damp. Default is -1. + + + + + + + Return the current body linear velocity. + + + + + + + Return the current body mass. + + + + + + + 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 current body weight, given standard earth-weight (gravity 9.8). + + + + + + + Return whether the body has the ability to fall asleep when not moving. See [method set_can_sleep]. + + + + + + + Return whether contact monitoring is enabled. @@ -29712,6 +29606,55 @@ This method controls whether the position between two cached points is interpola Return whether the body is sleeping. + + + + + Return whether this body is using continuous collision detection. + + + + + + + Return whether the body is using a custom integrator. + + + + + + + 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. + + + + + + + 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 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 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 bounciness, from 0 (no bounciness) to 1 (max bounciness). + + @@ -29720,32 +29663,89 @@ This method controls whether the position between two cached points is interpola 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 has the ability to fall asleep when not moving. See [method set_can_sleep]. - - - - + + - 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. + Enable contact monitoring. This allows the body to emit signals when it collides with another. - - - + + + - Return the current axis lock of the body. One of AXIS_LOCK_* enum. + Set the body friction, from 0 (frictionless) to 1 (max friction). - - - + + + - Return a list of the bodies colliding with this one. + Set the gravity factor. This factor multiplies gravity intensity just for this body. + + + + + + + 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. + + + + + + + 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 the body mass. + + + + + + + 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 mode, from the MODE_* enum. This allows to change to a static body or a character body. + + + + + + + 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 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. + + + + + + + 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 weight given standard earth-weight (gravity 9.8). @@ -29799,18 +29799,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. + @@ -29830,210 +29830,6 @@ 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]. - - - - - - - Set the body mass. - - - - - - - Return the body mass. - - - - - - - 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 body weight given standard earth-weight (gravity 9.8). - - - - - - - Set the body friction, from 0 (frictionless) to 1 (full friction). - - - - - - - Return the body friction. - - - - - - - Set the body bounciness, from 0 (no bounce) to 1 (full bounce). - - - - - - - Return the body bounciness. - - - - - - - Set the gravity factor. This factor multiplies gravity intensity just for this body. - - - - - - - Return the gravity factor. - - - - - - - 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 linear damp for this body. - - - - - - - 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 the angular damp for this body. - - - - - - - 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 body linear velocity. This changes by physics granularity. See [method set_linear_velocity]. - - - - - - - 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 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 set_max_contacts_reported]. - - - - - - - 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 is not doing any built-in force integration. - - - - - - - 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. - - - - - - - Return whether this body is using continuous collision detection. - - - - - - - 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. - - @@ -30043,11 +29839,18 @@ This method controls whether the position between two cached points is interpola 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. - - - + + + - Set the applied force vector. This is the equivalent of pushing a box over the ground: the force applied is applied constantly. + Return the angular damp for this body. + + + + + + + Return the body angular velocity. This changes by physics granularity. See [method set_angular_velocity]. @@ -30057,11 +29860,95 @@ This method controls whether the position between two cached points is interpola Return the applied force vector. - - - + + + - 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 the body bounciness. + + + + + + + Return a list of the bodies colliding with this one. + + + + + + + Return whether this body is using continuous collision detection. + + + + + + + Return the body friction. + + + + + + + Return the gravity factor. + + + + + + + Return the linear damp for this body. + + + + + + + Return the body linear velocity. This changes by physics granularity. See [method set_linear_velocity]. + + + + + + + Return the body mass. + + + + + + + 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 body weight given standard earth-weight (gravity 9.8). + + + + + + + Return true if the body has the ability to fall asleep when not moving. See [method set_can_sleep]. + + + + + + + Return whether contact monitoring is enabled. @@ -30071,6 +29958,48 @@ This method controls whether the position between two cached points is interpola Return whether the body is sleeping. + + + + + 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. + + + + + + + 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 applied force vector. This is the equivalent of pushing a box over the ground: the force applied is applied constantly. + + + + + + + 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 bounciness, from 0 (no bounce) to 1 (full bounce). + + @@ -30079,11 +30008,89 @@ This method controls whether the position between two cached points is interpola 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 true if the body has the ability to fall asleep when not moving. See [method set_can_sleep]. + Enable contact monitoring. This allows the body to emit signals when it collides with another. + + + + + + + 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 (full friction). + + + + + + + Set the gravity factor. This factor multiplies gravity intensity just for this body. + + + + + + + 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. + + + + + + + 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 the body mass. + + + + + + + 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 mode, from the MODE_* enum. This allows to change to a static body or a character body. + + + + + + + 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. + + + + + + + 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 weight given standard earth-weight (gravity 9.8). Not really useful for 2D since most measures for this node are in pixels. @@ -30099,13 +30106,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. - - @@ -30157,18 +30157,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. @@ -30178,6 +30166,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. + @@ -30188,9 +30188,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. - - - + @@ -30200,7 +30198,15 @@ This method controls whether the position between two cached points is interpola - + + + + + + + + + @@ -30210,12 +30216,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -30226,24 +30226,12 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - @@ -30258,6 +30246,18 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + @@ -30282,6 +30282,13 @@ 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 sample data as little endian. + + @@ -30289,13 +30296,6 @@ This method controls whether the position between two cached points is interpola Return the sample format. - - - - - Return whether the current sample was created as stereo. - - @@ -30303,6 +30303,41 @@ 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. + + + + + Return the loop begin position. + + + + + + + Return the loop end position. + + + + + + + Return the loop format. + + + + + + + Return the mix rate for the sample. + + + + + + + Return whether the current sample was created as stereo. + + @@ -30314,41 +30349,6 @@ This method controls whether the position between two cached points is interpola If the sample is stereo ([method is_stereo]), multiply it by 2. - - - - - Return sample data as little endian. - - - - - - - Set the mix rate for the sample (expected playback frequency). - - - - - - - Return the mix rate for the sample. - - - - - - - Set the loop format (use LOOP_* constants as argument). - - - - - - - Return the loop format. - - @@ -30356,13 +30356,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. - - @@ -30370,11 +30363,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). @@ -30441,13 +30441,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. @@ -30468,13 +30468,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. @@ -30489,145 +30489,140 @@ 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 default filter gain of the player. + + + + + + + Return the default filter resonance of the player. + + + - Return the polyphony of the player. + Return the default filter type in use (see FILTER_* constants) for the player. - + + + + + Return the default panning of the player. + + + + + + + Return the default pan depth of the player. + + + + + + + Return the default pan height of the player. + + + + + + + Return the default pitch scale of the player. + + + + + + + Return the default reverberation send level 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 reverberation room type of the player (see REVERB_* enum). - + + + + + Return the default volume (on a linear scale) of the player. + + + + + + + Return the default volume (in dB) of the player. + + + + + - Stop a given voice. + Return the current filter cutoff frequency for a given voice. - - - Stop all playing voices. - - - + + + - - - Set the mix rate (in Hz) of a given voice. + Return the current filter gain for a given voice. - + + + - - - Set the pitch scale of a given voice. A ratio of 1.0 is the normal scale. + Return the current filter resonance for a given voice. - + + + - - - 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. - - - - - - - - - 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. - - - - - - - - - - - - - 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). - - - - - - - - - - - - - - - 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). - - - - - - - - - Set the chorus send level of a voice (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. - - - - - - - - - - - Set the reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) of a voice. + Return the current filter type in use (see FILTER_* constants) for a given voice. @@ -30639,33 +30634,6 @@ This method controls whether the position between two cached points is interpola Return the current mix rate for a given voice. - - - - - - - Return the current pitch scale for a given voice. - - - - - - - - - Return the current volume (on a linear scale) for a given voice. - - - - - - - - - Return the current volume (in dB) for a given voice. - - @@ -30693,58 +30661,20 @@ This method controls whether the position between two cached points is interpola Return the current pan height for a given voice. - + + + + + + + Return the current pitch scale for a given voice. + + + - - - Return the current filter type in use (see FILTER_* constants) for a given voice. - - - - - - - - - Return the current filter cutoff frequency for a given voice. - - - - - - - - - Return the current filter resonance for a given voice. - - - - - - - - - Return the current filter gain for a given voice. - - - - - - - - - Return the current chorus send level for a given voice. - - - - - - - - - Return the current reverberation room type for a given voice (see REVERB_* enum). + Return the polyphony of the player. @@ -30756,6 +30686,110 @@ This method controls whether the position between two cached points is interpola Return the current reverberation send level for a given voice. + + + + + + + Return the current reverberation room type for a given voice (see REVERB_* enum). + + + + + + + Return the sample library used by the player. + + + + + + + + + Return the current volume (on a linear scale) for a given voice. + + + + + + + + + Return the current volume (in dB) for a given voice. + + + + + + + Return whether the player is currently active. + + + + + + + + + Return whether the given voice is currently active. + + + + + + + + + + + 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 chorus send level of the player (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. + + + + + + + + + + + + + Set the default filter for the player, 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). + + + + + + + + + + + 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). + + @@ -30763,6 +30797,15 @@ This method controls whether the position between two cached points is interpola Set the default pitch scale of the player. A ratio of 1.0 is the normal scale. + + + + + + + Set the default reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) of the player. + + @@ -30780,153 +30823,110 @@ This method controls whether the position between two cached points is interpola 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. - - + + - + - + + + + + - 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 filter for the player, using the given type (see FILTER_* constants), cutoff frequency (from 20 to 16,384 Hz) and resonance (from 0 to 4.0). + 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). - - + + + + - Set the default chorus send level of the player (from 0 to 1.0). For setting chorus parameters, see [AudioServer]. + Set the mix rate (in Hz) of a given voice. - - + + - + + + + + - Set the default reverberation type (see REVERB_* constants) and send level (from 0 to 1.0) 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 pitch scale of the player. + Set the pitch scale of a given voice. A ratio of 1.0 is the normal scale. - - - + + + - Return the default volume (on a linear scale) of the player. + Set the polyphony of the player (maximum amount of simultaneous voices). - - - + + + + + + + - 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 default panning of the player. + Set the sample library for the player. - - - + + + + + - Return the default pan depth 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 pan height 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 filter type in use (see FILTER_* constants) for the player. - - - - - - - Return the default filter cutoff frequency of the player. - - - - - - - Return the default filter resonance of the player. - - - - - - - Return the default filter gain of the player. - - - - - - - Return the default chorus send level of the player. - - - - - - - Return the default reverberation room type of the player (see REVERB_* enum). - - - - - - - Return the default reverberation send level of the player. - - - - - - - Return whether the player is currently active. - - - - - + - Return whether the given voice is currently active. + Stop a given voice. + + + + + Stop all playing voices. @@ -30958,6 +30958,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). @@ -30970,9 +30973,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. - @@ -30983,11 +30983,18 @@ 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 amplitude used for random pitch scale variations. @@ -30997,18 +31004,13 @@ This method controls whether the position between two cached points is interpola Return the sample library used by the player. - - + + + + - Set the polyphony of the player (maximum amount of simultaneous voices). - - - - - - - Return the polyphony of the player. + Return whether a voice is still active or has stopped playing. @@ -31023,6 +31025,42 @@ 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. + + + + + Set the polyphony of the player (maximum amount of simultaneous 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) + + + + + + + Set the sample library for the player. + + + + + Stop all playing voices. + + + + + + + Stop a given voice. + + @@ -31041,44 +31079,6 @@ This method controls whether the position between two cached points is interpola Change the volume scale (in dB) of a currently playing voice. - - - - - - - Return whether a voice is still active or has stopped playing. - - - - - - - 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) - - - - - - - Return the amplitude used for random pitch scale variations. - - @@ -31095,13 +31095,83 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + @@ -31117,16 +31187,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - @@ -31135,34 +31195,12 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - - - - - - - - - - - - - - + @@ -31193,21 +31231,7 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - + @@ -31215,32 +31239,8 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -31257,28 +31257,66 @@ This method controls whether the position between two cached points is interpola - - + + - + + + + + + + + + + + - - + + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -31301,89 +31339,111 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - + + - - - - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - + + + @@ -31397,69 +31457,13 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + @@ -31469,7 +31473,7 @@ This method controls whether the position between two cached points is interpola - + @@ -31477,10 +31481,6 @@ This method controls whether the position between two cached points is interpola - - - - @@ -31491,18 +31491,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -31522,13 +31522,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). @@ -31538,18 +31536,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. @@ -31559,6 +31552,13 @@ This method controls whether the position between two cached points is interpola Reload the script. This will fail if there are existing instances. + + + + + Set the script source code. + + @@ -31571,18 +31571,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. - - - - - - + + + + + + @@ -31595,11 +31595,18 @@ 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 current vertical scroll value. @@ -31609,13 +31616,6 @@ This method controls whether the position between two cached points is interpola Return true if horizontal scrool is allowed. - - - - - Set allows vertical scrool. - - @@ -31623,6 +31623,20 @@ This method controls whether the position between two cached points is interpola Return true if vertical scrool is allowed. + + + + + Set allows horizontal scrool. + + + + + + + Set allows vertical scrool. + + @@ -31630,13 +31644,6 @@ This method controls whether the position between two cached points is interpola Set horizontal scroll value. - - - - - Return current horizontal scroll value. - - @@ -31644,13 +31651,6 @@ This method controls whether the position between two cached points is interpola Set vertical scroll value. - - - - - Return current vertical scroll value. - - @@ -31663,13 +31663,6 @@ 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. - - @@ -31677,13 +31670,6 @@ This method controls whether the position between two cached points is interpola Return the first point's position. - - - - - Set the second point's position. - - @@ -31691,6 +31677,20 @@ This method controls whether the position between two cached points is interpola Return the second point's position. + + + + + Set the first point's position. + + + + + + + Set the second point's position. + + @@ -31703,13 +31703,6 @@ 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. - - @@ -31717,6 +31710,13 @@ This method controls whether the position between two cached points is interpola Lowers the [Semaphore], allowing one more thread in. + + + + + Tries to wait for the [Semaphore], if it's value is zero, blocks until non-zero. + + @@ -31741,12 +31741,46 @@ This method controls whether the position between two cached points is interpola To be changed, ignore. + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -31761,24 +31795,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - @@ -31787,22 +31803,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - @@ -31819,513 +31819,9 @@ This method controls whether the position between two cached points is interpola - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -32349,18 +31845,20 @@ This method controls whether the position between two cached points is interpola - + - + + + - - + + @@ -32369,6 +31867,16 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + @@ -32385,18 +31893,64 @@ This method controls whether the position between two cached points is interpola - - + + - + - + + + + + - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -32423,18 +31977,66 @@ This method controls whether the position between two cached points is interpola - + + + - + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -32449,6 +32051,404 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -32457,26 +32457,16 @@ This method controls whether the position between two cached points is interpola + + + + + + - - - - - - - - - - - - - - - - @@ -32497,10 +32487,12 @@ This method controls whether the position between two cached points is interpola - + + + @@ -32517,6 +32509,8 @@ This method controls whether the position between two cached points is interpola + + @@ -32529,81 +32523,17 @@ This method controls whether the position between two cached points is interpola - + - + - + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -32627,23 +32557,11 @@ This method controls whether the position between two cached points is interpola + + - - - - - - - - - - - - - - - + @@ -32665,22 +32583,104 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -32689,26 +32689,12 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - @@ -32717,6 +32703,20 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + @@ -32739,21 +32739,6 @@ 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. - - @@ -32768,6 +32753,20 @@ 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 shape to check collisions with ([code]with_shape[/code]), and the transformation matrix of that shape ([code]shape_xform[/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]). + + @@ -32786,20 +32785,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]). - - @@ -32818,6 +32803,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. + + @@ -32837,6 +32837,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. + + @@ -32846,6 +32860,29 @@ 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. + + + + + + + + + + + + + + + + + + @@ -32864,26 +32901,13 @@ This method controls whether the position between two cached points is interpola 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 amount of bones in the skeleton. - - - + Return the pose transform for bone "bone_idx". @@ -32895,49 +32919,14 @@ 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. - - - - - - - - - Deprecated soon. - - @@ -32947,47 +32936,8 @@ This method controls whether the position between two cached points is interpola 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". - - - - - - - - - - - - - - - - - - - - + + @@ -33002,9 +32952,59 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + + + + + + + + + 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. + + + @@ -33024,13 +33024,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. - - @@ -33045,6 +33038,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. + + @@ -33062,14 +33062,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -33078,28 +33070,20 @@ This method controls whether the position between two cached points is interpola + + + + + + + + - - - - - - - - - - - - - - - - @@ -33120,12 +33104,28 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + @@ -33136,14 +33136,6 @@ This method controls whether the position between two cached points is interpola Base class for playing spatial 2D sound. - - - - - - - - @@ -33152,6 +33144,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -33174,14 +33174,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -33190,27 +33182,35 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + - - - + + + + + + + + + + + @@ -33226,73 +33226,10 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set the transform globally, relative to worldspace. @@ -33309,20 +33246,33 @@ This method controls whether the position between two cached points is interpola 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. + + + + @@ -33333,23 +33283,17 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + - - - - - - - + + + @@ -33357,45 +33301,53 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + @@ -33421,19 +33373,28 @@ This method controls whether the position between two cached points is interpola - - + + - - + + - + + + + + Set the transform globally, relative to worldspace. + + + + + @@ -33441,24 +33402,63 @@ This method controls whether the position between two cached points is interpola - - - - + + - - + + - + + + + + - + + + + + + + + + + + + + + + + Set the transform locally, relative to the parent spatial node. + + + + + + + + + + + + + + + + + + + + + + @@ -33484,14 +33484,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - @@ -33500,6 +33492,14 @@ This method controls whether the position between two cached points is interpola + + + + + + + + @@ -33526,9 +33526,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -33538,15 +33538,11 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + + + @@ -33560,6 +33556,28 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + @@ -33576,24 +33594,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - @@ -33650,124 +33650,90 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33780,15 +33746,49 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -33802,18 +33802,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -33826,11 +33826,16 @@ 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. @@ -33840,17 +33845,11 @@ This method controls whether the position between two cached points is interpola Return the specific suffix. - - - - - Set a prefix. - - - - + + + Return if the spinbox is editable. @@ -33860,17 +33859,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. @@ -33889,11 +33889,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]). @@ -33903,13 +33903,6 @@ This method controls whether the position between two cached points is interpola Return the split offset. - - - - - Set if the split must be collapsed. - - @@ -33917,6 +33910,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. + + @@ -33924,11 +33924,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. @@ -33973,111 +33973,6 @@ 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 base texture for the sprite. - - - - - - - Set whether the sprite should be centered on the origin. - - - - - - - Return if the sprite is centered at the local origin. - - - - - - - Set the sprite draw offset, useful for setting rotation pivots. - - - - - - - Return sprite draw offset. - - - - - - - Set true to flip the sprite horizontally. - - - - - - - Return true if the sprite is flipped horizontally. - - - - - - - Set true to flip the sprite vertically. - - - - - - - Return true if the sprite is flipped vertically. - - - - - - - Set the sprite as a sub-region of a bigger texture. Useful for texture-atlases. - - - - - - - Return if the sprite reads from a region. - - - - - - - Set the region rect to read from. - - - - - - - Return the region rect to read from. - - - - - - - Set the texture frame for a sprite-sheet, works when vframes or hframes are greater than 1. - - @@ -34085,27 +33980,6 @@ This method controls whether the position between two cached points is interpola Return the texture frame for a sprite-sheet, works when vframes or hframes are greater than 1. - - - - - Set the amount of vertical frames and converts the sprite into a sprite-sheet. This is useful for animation. - - - - - - - Return the amount of vertical frames. See [method set_vframes]. - - - - - - - Set the amount of horizontal frames and converts the sprite into a sprite-sheet. This is useful for animation. - - @@ -34113,6 +33987,104 @@ This method controls whether the position between two cached points is interpola Return the amount of horizontal frames. See [method set_hframes]. + + + + + Return color modulation for the sprite. All sprite pixels are multiplied by this color. + + + + + + + Return sprite draw offset. + + + + + + + Return the region rect to read from. + + + + + + + Return the base texture for the sprite. + + + + + + + Return the amount of vertical frames. See [method set_vframes]. + + + + + + + Return if the sprite is centered at the local origin. + + + + + + + Return true if the sprite is flipped horizontally. + + + + + + + Return true if the sprite is flipped vertically. + + + + + + + Return if the sprite reads from a region. + + + + + + + Set whether the sprite should be centered on the origin. + + + + + + + Set true to flip the sprite horizontally. + + + + + + + Set true to flip the sprite vertically. + + + + + + + Set 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. + + @@ -34120,11 +34092,39 @@ This method controls whether the position between two cached points is interpola 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 color modulation for the sprite. All sprite pixels are multiplied by this color. + Set the sprite draw offset, useful for setting rotation pivots. + + + + + + + Set the sprite as a sub-region of a bigger texture. Useful for texture-atlases. + + + + + + + Set the region rect to read from. + + + + + + + Set the base texture for the sprite. + + + + + + + Set the amount of vertical frames and converts the sprite into a sprite-sheet. This is useful for animation. @@ -34143,9 +34143,21 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + @@ -34155,9 +34167,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -34167,51 +34179,39 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -34231,110 +34231,18 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -34343,38 +34251,130 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - + + + + + + @@ -34394,11 +34394,9 @@ This method controls whether the position between two cached points is interpola Add a frame (texture). - - - + - Return the amount of frames. + Clear the frames. @@ -34410,12 +34408,11 @@ This method controls whether the position between two cached points is interpola Return a texture (frame). - - - - - + + + + Return the amount of frames. @@ -34425,9 +34422,12 @@ This method controls whether the position between two cached points is interpola Remove a frame - + + + + + - Clear the frames. @@ -34444,25 +34444,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. @@ -34472,11 +34458,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. @@ -34493,11 +34479,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). @@ -34514,25 +34514,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. @@ -34542,11 +34528,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. @@ -34563,11 +34549,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). @@ -34582,22 +34582,39 @@ 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. + + + + + + + Get a signed 64 bit value from the stream. + + + + + + + Get a signed byte from the stream. + + + + + + + Return the amount of bytes this [StreamPeer] has available. @@ -34609,174 +34626,11 @@ This method controls whether the position between two cached points is interpola 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 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. - - - - + + - Return the amount of bytes this [StreamPeer] has available. - - - - - - - Set this [StreamPeer] to use big-endian format. Default is false. - - - - - - - Return whether this [StreamPeer] is using big-endian format. - - - - - - - Put a signed byte into the stream. - - - - - - - Put an unsigned byte into the stream. - - - - - - - Put a signed 16 bit value into the stream. - - - - - - - Put an unsigned 16 bit value into the stream. - - - - - - - Put a signed 32 bit value into the stream. - - - - - - - Put an unsigned 32 bit value into the stream. - - - - - - - Put a signed 64 bit value into the stream. - - - - - - - Put an unsigned 64 bit value into the stream. - - - - - - - Put a single-precision float into the stream. - - - - - - - Put a double-precision float into the stream. - - - - - - - Put a zero-terminated utf8 string into the stream. - - - - - - - Put a Variant into the stream. - - - - - - - Get a signed byte from the stream. - - - - - - - Get an unsigned byte from the stream. - - - - - - - Get a signed 16 bit value from the stream. - - - - - - - Get an unsigned 16 bit value from the stream. - - - - - - - Get a signed 32 bit value from the stream. - - - - - - - Get an unsigned 32 bit value from the stream. - - - - - - - Get a signed 64 bit value from the stream. - - - - - - - Get an unsigned 16 bit value from the stream. + Get a double-precision float from the stream. @@ -34786,11 +34640,13 @@ This method controls whether the position between two cached points is interpola Get a single-precision float from the stream. - - + + + + - Get a double-precision float 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. @@ -34802,6 +34658,34 @@ This method controls whether the position between two cached points is interpola Get a string with byte-length "bytes" from the stream. + + + + + Get an unsigned 16 bit value from the stream. + + + + + + + Get an unsigned 32 bit value from the stream. + + + + + + + Get an unsigned 16 bit value from the stream. + + + + + + + Get an unsigned byte from the stream. + + @@ -34818,6 +34702,122 @@ This method controls whether the position between two cached points is interpola Get a Variant from the stream. + + + + + Return whether this [StreamPeer] is using big-endian format. + + + + + + + Put a signed 16 bit value into the stream. + + + + + + + Put a signed 32 bit value into the stream. + + + + + + + Put a signed 64 bit value into the stream. + + + + + + + Put a signed byte into 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. + + + + + + + Put a double-precision float into the stream. + + + + + + + Put a single-precision float into 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. + + + + + + + Put an unsigned 16 bit value into the stream. + + + + + + + Put an unsigned 32 bit value into the stream. + + + + + + + Put an unsigned 64 bit value into the stream. + + + + + + + Put an unsigned byte into the stream. + + + + + + + Put a zero-terminated utf8 string into the stream. + + + + + + + Put a Variant into the stream. + + + + + + + Set this [StreamPeer] to use big-endian format. Default is false. + + @@ -34851,6 +34851,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. + + @@ -34858,11 +34863,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. - - @@ -34898,18 +34898,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. @@ -34926,9 +34917,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. @@ -34955,103 +34955,6 @@ 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 currently assigned stream. - - - - - - - Play the currently assigned stream, starting from a given position (in seconds). - - - - - Stop the playback. - - - - - - - Return whether this player is playing. - - - - - - - Pause stream playback. - - - - - - - Return whether the playback is currently paused. - - - - - - - Set whether the stream will be restarted at the end. - - - - - - - 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 the playback volume for this player. - - - - - - - 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 playback volume for this player, in decibels. - - - - - - - Set the size (in milliseconds) of the audio buffer. A long audio buffer protects better against slowdowns, but responds worse to changes (in volume, stream played...). A shorter buffer takes less time to respond to changes, but may stutter if the application suffers some slowdown. - Default is 500 milliseconds. - - @@ -35059,25 +34962,11 @@ This method controls whether the position between two cached points is interpola Return the size of the audio buffer. - - - - - 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 length of the stream, in seconds. @@ -35087,6 +34976,13 @@ This method controls whether the position between two cached points is interpola Return the number of times the playback has looped. + + + + + Return the point in time the stream will rewind to, when looping. + + @@ -35094,6 +34990,69 @@ This method controls whether the position between two cached points is interpola Return the playback position, in seconds. + + + + + Return the currently assigned stream. + + + + + + + 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 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. + + + + + + + Return whether the stream will be restarted at the end. + + + + + + + Return whether the playback is currently paused. + + + + + + + Return whether this player is playing. + + + + + + + Play the currently assigned stream, starting from a given position (in seconds). + + @@ -35108,18 +35067,59 @@ This method controls whether the position between two cached points is interpola 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. + Set the size (in milliseconds) of the audio buffer. A long audio buffer protects better against slowdowns, but responds worse to changes (in volume, stream played...). A shorter buffer takes less time to respond to changes, but may stutter if the application suffers some slowdown. + Default is 500 milliseconds. - - - + + + - Return the length of the stream, in seconds. + Set whether the stream will be restarted at the end. + + + + + + + Set the point in time the stream will rewind to, when looping. + + + + + + + Pause stream playback. + + + + + + + Set the [EventStream] this player will play. + + + + + + + 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. + + + + + + + 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. + + + + + Stop the playback. @@ -35588,6 +35588,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. + + @@ -35618,15 +35627,6 @@ This method controls whether the position between two cached points is interpola Return the size of the array. - - - - - - - Create from a generic array. - - @@ -35639,24 +35639,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. @@ -35684,12 +35678,6 @@ This method controls whether the position between two cached points is interpola Return the minimum size that this stylebox can be shrunk to. - - - - - - @@ -35697,12 +35685,24 @@ This method controls whether the position between two cached points is interpola 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. @@ -35729,69 +35729,27 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + @@ -35801,6 +35759,48 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -35813,11 +35813,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. @@ -35834,13 +35843,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. - - @@ -35850,13 +35852,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. @@ -35871,23 +35871,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. - - - - - - - - + + - + + + - - @@ -35899,19 +35893,9 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - + + - - @@ -35921,9 +35905,25 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + + + + + @@ -35939,14 +35939,8 @@ This method controls whether the position between two cached points is interpola Helper tool to create geometry. - - - - - - - - + + @@ -35963,6 +35957,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -35981,8 +35981,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -35993,27 +35993,13 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - - - - - - + @@ -36025,7 +36011,21 @@ This method controls whether the position between two cached points is interpola - + + + + + + + + + + + + + + + @@ -36041,6 +36041,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. + + @@ -36052,11 +36059,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. @@ -36066,11 +36071,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. - - @@ -36084,18 +36084,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. @@ -36111,21 +36104,12 @@ 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. - - @@ -36133,27 +36117,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. @@ -36165,6 +36149,26 @@ 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 tab alignment, from the ALIGN_* enum. Moves tabs to the left, right or center. + + @@ -36174,24 +36178,20 @@ This method controls whether the position between two cached points is interpola 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. @@ -36211,39 +36211,39 @@ This method controls whether the position between two cached points is interpola - + - + - - - - - + - - - - - - - + - + - + - + + + + + + + + + - + + + @@ -36255,14 +36255,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. - - - + + + + + - - + + @@ -36273,11 +36275,23 @@ This method controls whether the position between two cached points is interpola - + + + + + + + + + + + + + + + - - @@ -36289,32 +36303,14 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - + + @@ -36325,26 +36321,24 @@ This method controls whether the position between two cached points is interpola - - - + + + + + - - + + + + - - - - - - @@ -36357,6 +36351,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -36365,47 +36365,47 @@ This method controls whether the position between two cached points is interpola + + - - - + - - - - - - - - - - - - - - - + + + - + - + - + + + + + + + + + - + + + + + @@ -36429,57 +36429,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. - - + + + Clear all the syntax coloring information. + + + + + Clear the undo history. + + + + + Copy the current selection. + + + + - Return the amount of total lines in the text. + Gets whether the text editor caret is blinking. - - + + - Return the whole text. - - - - - - - - - Return the text of a specific line. - - - - - - - - - - - - - - - - + Gets the text editor caret blink speed. @@ -36503,13 +36501,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. - - @@ -36517,32 +36508,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. @@ -36550,46 +36529,20 @@ This method controls whether the position between two cached points is interpola Cut the current selection. - - - Copy the current selection. - - - - - Paste the current selection. - - - - - Select all the text. - - - - - - - - - - - - - Perform selection, from line/column to line/column. - - - - + + + + - Return true if the selection is active. + Return the text of a specific line. - + - Return the selection begin line. + Return the amount of total lines in the text. @@ -36599,18 +36552,11 @@ This method controls whether the position between two cached points is interpola Return the selection begin column. - + - Return the selection end line. - - - - - - - Return the selection end column. + Return the selection begin line. @@ -36620,12 +36566,64 @@ This method controls whether the position between two cached points is interpola Return the text inside the selection. + + + + + Return the selection end column. + + + + + + + Return the selection end line. + + + + + + + Return the whole text. + + + + + + + Insert a given text at the cursor position. + + + + + + + Return true if the selection is active. + + + + + + + Return true if the syntax coloring is enabled. + + + + + Paste the current selection. + + + + + Perform redo operation. + + @@ -36641,62 +36639,22 @@ This method controls whether the position between two cached points is interpola Perform a search inside the text. Search flags can be specified in the SEARCH_* enum. - + + + + + + + + + - Perform undo operation. + Perform selection, from line/column to line/column. - + - Perform redo operation. - - - - - Clear the undo history. - - - - - - - Set to enable the syntax coloring. - - - - - - - Return true if the syntax coloring is enabled. - - - - - - - - - Add a keyword and its color. - - - - - - - - - - - - - Add color region (given the delimiters) and its colors. - - - - - - - Set the color for symbols. + Select all the text. @@ -36706,18 +36664,55 @@ This method controls whether the position between two cached points is interpola Set a custom background color. A background color with alpha==0 disables this. - + + + - Clear all the syntax coloring information. + Set the maximum amount of characters editable. + + + + + + + Set the text editor as read-only. Text can be displayed but not edited. + + + + + + + Set the color for symbols. + + + + + + + Set to enable the syntax coloring. + + + + + + + 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. @@ -36727,6 +36722,11 @@ This method controls whether the position between two cached points is interpola + + + Emitted when the text changes. + + @@ -36740,47 +36740,47 @@ This method controls whether the position between two cached points is interpola - + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + + + + + + + + + + + + + + + + + + + + + @@ -36792,54 +36792,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. - - @@ -36880,28 +36832,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. @@ -36914,68 +36914,8 @@ This method controls whether the position between two cached points is interpola Only the normal texture is required, the others are optional. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + @@ -36992,8 +36932,26 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + + + + + + + + + + + + + @@ -37004,9 +36962,51 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37022,9 +37022,9 @@ 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. - - - + + + @@ -37034,14 +37034,8 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + @@ -37052,9 +37046,15 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + @@ -37070,57 +37070,33 @@ 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). - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + @@ -37130,14 +37106,8 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + @@ -37148,9 +37118,39 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37179,19 +37179,7 @@ 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. - - - - - - - - - - - - - + @@ -37199,101 +37187,7 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -37309,21 +37203,23 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + - + + + + + + + + + + + @@ -37337,24 +37233,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - @@ -37363,18 +37241,94 @@ This method controls whether the position between two cached points is interpola - + + + - + + + + + + + - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37393,7 +37347,9 @@ This method controls whether the position between two cached points is interpola - + + + @@ -37401,10 +37357,42 @@ This method controls whether the position between two cached points is interpola - - + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -37415,21 +37403,33 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - + + + + + + - + + + + + + + + + + + + + + + + + @@ -37445,6 +37445,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]. + + @@ -37461,20 +37475,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]. - - @@ -37501,269 +37501,9 @@ 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. - - - - - - - Return the current tileset. - - - - - - - Set the orientation mode as square, isometric or custom (use MODE_* constants as argument). - - - - - - - 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 current half offset configuration. - - - - - - - Set custom transform matrix, to use in combination with the custom orientation mode. - - - - - - - Return the custom transform matrix. - - - - - - - Set the cell size. - - - - - - - Return the cell size. - - - - - - - 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 quadrant size. - - - - - - - Set the tile origin to the tile center or its top-left corner (use TILE_ORIGIN_* constants as argument). - - - - - - - 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 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 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 Y sort mode. - - - - - - - Set the tilemap to handle collisions as a kinematic body (enabled) or a static body (disabled). - - - - - - - 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 collision layer. - - - - - - - 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 collision mask. - - - - - - - Set the collision friction parameter. - Allowable values range from 0 to 1. - - - - - - - Return the collision friction parameter. - - - - - - - Set the collision bounce parameter. - Allowable values range from 0 to 1. - - - - - - - Return the collision bounce parameter. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - Set the tile index for the cell referenced by its grid-based X and Y coordinates. - A tile index of -1 clears the cell. - Optionally, the tile can also be flipped over the X and Y coordinates or transposed. - - - - - - - - - - - - - - - Set the tile index for the cell referenced by a Vector2 of grid-based coordinates. - A tile index of -1 clears the cell. - Optionally, the tile can also be flipped over the X and Y axes or transposed. + Clear all cells. @@ -37777,6 +37517,13 @@ This method controls whether the position between two cached points is interpola Return the tile index of the referenced cell. + + + + + Return the cell size. + + @@ -37786,6 +37533,121 @@ This method controls whether the position between two cached points is interpola Return the tile index of the cell referenced by a Vector2. + + + + + 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). + + + + + + + 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 collision bounce parameter. + + + + + + + Return the collision friction parameter. + + + + + + + Return the collision layer. + + + + + + + Return the collision mask. + + + + + + + Return whether the tilemap handles collisions as a kinematic body. + + + + + + + Return the custom transform matrix. + + + + + + + Return the current half offset configuration. + + + + + + + Return the orientation mode. + + + + + + + + + + + + + Return the quadrant size. + + + + + + + Return the tile origin configuration. + + + + + + + Return the current tileset. + + + + + + + Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -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). + + @@ -37808,27 +37670,11 @@ This method controls whether the position between two cached points is interpola Return whether the referenced cell is flipped over the Y axis. - + - - - - - Return whether the referenced cell is transposed, i.e. the X and Y axes are swapped (mirroring with regard to the (1,1) vector). - - - - - Clear all cells. - - - - - - - Return an array of all cells containing a tile from the tileset (i.e. a tile index different from -1). + Return the Y sort mode. @@ -37843,6 +37689,160 @@ This method controls whether the position between two cached points is interpola Optionally, the tilemap's potential half offset can be ignored. + + + + + + + + + + + + + + + Set the tile index for the cell referenced by its grid-based X and Y coordinates. + A tile index of -1 clears the cell. + Optionally, the tile can also be flipped over the X and Y coordinates or transposed. + + + + + + + Set the cell size. + + + + + + + + + + + + + + + Set the tile index for the cell referenced by a Vector2 of grid-based coordinates. + A tile index of -1 clears the cell. + 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). + + + + + + + Set tiles to be centered in y coordinate. (by default this is false and they are drawn from upper left cell corner). + + + + + + + Set the collision bounce parameter. + Allowable values range from 0 to 1. + + + + + + + Set the collision friction parameter. + Allowable values range from 0 to 1. + + + + + + + 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. + + + + + + + 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. + + + + + + + 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. + + + + + + + Set the orientation mode as square, isometric or custom (use MODE_* constants as argument). + + + + + + + + + + + + + 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. + + + + + + + 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. + + @@ -37861,6 +37861,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. @@ -37873,15 +37882,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. @@ -37899,246 +37899,16 @@ 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. - - - - - - - - - Set the name of the tile, for descriptive purposes. - - - - - - - - - Return the name of the tile. - - - - - - - - - Set the texture of the tile. - - - - - - - - - Return the texture of the tile. - - - - - - - - - Set the material of the tile. - - - - - - - - - Return the material of the tile. - - - - - - - - - Set the texture offset of the tile. - - - - - - - - - Return the texture offset of the tile. - - - - - - - - - Set the shape offset of the tile. - - - - - - - - - Return the shape offset of the tile. - - - - - - - - - Set the tile sub-region in the texture. This is common in texture atlases. - - - - - - - - - Return the tile sub-region in the texture. - - - - - - - - - Set a shape for the tile, enabling physics to collide with it. - - - - - - - - - Return the shape of the tile. - - - - - - - - - Set an array of shapes for the tile, enabling physics to collide with it. - - - - - - - - - Return the array of shapes of the tile. - - - - - - - - - Set a navigation polygon for the tile. - - - - - - - - - Return the navigation polygon of the tile. - - - - - - - - - Set an offset for the tile's navigation polygon. - - - - - - - - - Return the offset of the tile's navigation polygon. - - - - - - - - - Set a light occluder for the tile. - - - - - - - - - Return the light occluder of the tile. - - - - - - - - - Set an offset for the tile's light occluder. - - - - - - - - - Return the offset of the tile's light occluder. - - - - - - - Remove the tile referenced by the given ID. - - Clear all tiles. - - - + + + - Return the ID following the last currently used ID, useful when creating a new tile. + Create a new tile which will be referenced by the given ID. @@ -38150,6 +37920,13 @@ This method controls whether the position between two cached points is interpola Find the first tile matching the given name. + + + + + Return the ID following the last currently used ID, useful when creating a new tile. + + @@ -38157,6 +37934,229 @@ This method controls whether the position between two cached points is interpola Return an array of all currently used tile IDs. + + + + + Remove the tile referenced by the given ID. + + + + + + + + + Return the light occluder of the tile. + + + + + + + + + Return the material of the tile. + + + + + + + + + Return the name of the tile. + + + + + + + + + Return the navigation polygon of the tile. + + + + + + + + + Return the offset of the tile's navigation polygon. + + + + + + + + + Return the offset of the tile's light occluder. + + + + + + + + + Return the tile sub-region in the texture. + + + + + + + + + Return the shape of the tile. + + + + + + + + + Return the shape offset of the tile. + + + + + + + + + Return the array of shapes of the tile. + + + + + + + + + Return the texture of the tile. + + + + + + + + + Return the texture offset of the tile. + + + + + + + + + Set a light occluder for the tile. + + + + + + + + + Set the material of the tile. + + + + + + + + + Set the name of the tile, for descriptive purposes. + + + + + + + + + Set a navigation polygon for the tile. + + + + + + + + + Set an offset for the tile's navigation polygon. + + + + + + + + + Set an offset for the tile's light occluder. + + + + + + + + + Set the tile sub-region in the texture. This is common in texture atlases. + + + + + + + + + Set a shape for the tile, enabling physics to collide with it. + + + + + + + + + Set the shape offset of the tile. + + + + + + + + + Set an array of shapes for the tile, enabling physics to collide with it. + + + + + + + + + Set the texture of the tile. + + + + + + + + + Set the texture offset of the tile. + + @@ -38168,11 +38168,18 @@ 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 time left for timeout in seconds if the timer is active, 0 otherwise. + + + + + + + Return the timer's processing mode. @@ -38182,11 +38189,11 @@ This method controls whether the position between two cached points is interpola Return the wait time in seconds. - - - + + + - Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart. + Return true if set to automatically start when entering the scene. @@ -38203,11 +38210,25 @@ This method controls whether the position between two cached points is interpola Set to automatically start when entering the scene. - - - + + + - Return true if set to automatically start when entering the scene. + Set as one-shot. If enabled, the timer will stop after timeout, otherwise it will automatically restart. + + + + + + + Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument). + + + + + + + Set wait time in seconds. When the time is over, it will emit the timeout signal. @@ -38220,27 +38241,6 @@ This method controls whether the position between two cached points is interpola Stop (cancel) the timer. - - - - - Return the time left for timeout in seconds if the timer is active, 0 otherwise. - - - - - - - Set the timer's processing mode (fixed or idle, use TIMER_PROCESS_* constants as argument). - - - - - - - Return the timer's processing mode. - - @@ -38268,28 +38268,28 @@ This method controls whether the position between two cached points is interpola - + - + + + + + - - - - - - - + + + @@ -38298,57 +38298,27 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - + + - - - + + + @@ -38358,12 +38328,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -38376,13 +38340,49 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + @@ -38398,6 +38398,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) + + @@ -38477,59 +38530,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) - - @@ -38550,20 +38550,6 @@ 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. - - - - - - - Return the locale of the translation. - - @@ -38573,6 +38559,20 @@ This method controls whether the position between two cached points is interpola Add a message for translation. + + + + + Erase a message. + + + + + + + Return the locale of the translation. + + @@ -38582,11 +38582,10 @@ This method controls whether the position between two cached points is interpola Return a message for translation. - - - + + + - Erase a message. @@ -38596,10 +38595,11 @@ This method controls whether the position between two cached points is interpola Return all the messages (keys). - - - + + + + Set the locale of the translation. @@ -38613,39 +38613,39 @@ This method controls whether the position between two cached points is interpola - - + + + + + + - - - - - - - - - - - - - - - + + + + + + + + + + + @@ -38659,6 +38659,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -38671,25 +38677,15 @@ This method controls whether the position between two cached points is interpola - - + + + + + + - - - - - - - - - - - - - - @@ -38701,56 +38697,18 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + @@ -38763,12 +38721,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -38779,22 +38731,66 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -38803,17 +38799,15 @@ This method controls whether the position between two cached points is interpola - - - - + + - - - + + + @@ -38823,34 +38817,44 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + - - - - - + - + + + + + + + + + @@ -38865,16 +38869,12 @@ This method controls whether the position between two cached points is interpola - - - - - + - + @@ -38889,64 +38889,64 @@ This method controls whether the position between two cached points is interpola - + - + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - - - - + - - - - - - - - - - - + - + - + - + - + - + + + + + + + @@ -38955,10 +38955,58 @@ This method controls whether the position between two cached points is interpola - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -38971,46 +39019,20 @@ This method controls whether the position between two cached points is interpola - - - - - + + + - - + + - - - - - - - - - - - - - - - - - - - - - - - - @@ -39019,11 +39041,11 @@ This method controls whether the position between two cached points is interpola - + + + - - @@ -39035,27 +39057,39 @@ This method controls whether the position between two cached points is interpola - + - - - - + + - - - - - - - + + + + + + + + + + + + + + + + + + + + + @@ -39067,20 +39101,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - @@ -39089,32 +39109,36 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - + + + - + + + - - - - - - + + + + + + + + + + + + + + @@ -39125,55 +39149,11 @@ This method controls whether the position between two cached points is interpola - - + + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -39193,44 +39173,46 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + - + + + - + - + - - - - - - - - - - - - - - - - - - + + @@ -39243,64 +39225,98 @@ This method controls whether the position between two cached points is interpola - + + + - - - + + + + + - + - - - - - + - - - + + + - - - + - + - + - + - - - + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -39313,22 +39329,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - @@ -39359,155 +39359,56 @@ 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. - - - - - - - Returns true if repeat has been set from editor GUI or [method set_repeat]. - - - - - - - Make the tween repeat after all tweens have finished. - - - - - - - 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 speed that has been set from editor GUI or [method set_repeat]. - - - - - - - Set whether the Tween uses [code]_process[/code] or [code]_fixed_process[/code] (accepts TWEEN_PROCESS_IDLE and TWEEN_PROCESS_FIXED constants, respectively). - - - - - - - Returns the process mode that has been set from editor GUI or [method set_tween_process_mode] - - - - - - - Start the tween node. You can define tweens both before and after this. - - - + - + + + + + + + + + + + + + + + - Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. + 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. - - - - - Resets all tweens to their initial values (the ones given, not those before the tween). - - - + - + + + + + + + + + + + + + + + - Stop animating a tween, given its object and property/method pair. - - - - - - - Stop animating all tweens. - - - - - - - - - - - Continue animating a stopped tween, given its object and property/method pair. - - - - - - - Continue animating all stopped tweens. - - - - - - - - - - - Stop animating and completely remove a tween, given its object and property/method pair. - - - - - - - Stop animating and completely remove all tweens. - - - - - - - - - Seek the animation to the given [code]time[/code] in seconds. - - - - - - - Returns the current time of the tween. + 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. @@ -39517,52 +39418,18 @@ This method controls whether the position between two cached points is interpola 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. - - + + - - - - - - - - - - - - - - - - - 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. + Returns the speed that has been set from editor GUI or [method set_repeat]. - - + + - - - - - - - - - - - - - - - - - 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. + Returns the process mode that has been set from editor GUI or [method set_tween_process_mode] @@ -39611,33 +39478,7 @@ This method controls whether the position between two cached points is interpola 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. - - - - - - - - - - - - - - - - - - - - - - - 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. - - - + @@ -39646,9 +39487,187 @@ This method controls whether the position between two cached points is interpola - + - + + + + + + + + + + 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. + + + + + + + + + + + + + + + + + + + + + + + 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. + + + + + + + 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]. + + + + + + + + + + + Stop animating and completely remove a tween, given its object and property/method pair. + + + + + + + Stop animating and completely remove all tweens. + + + + + + + + + + + Resets a tween to the initial value (the one given, not the one before the tween), given its object and property/method pair. + + + + + + + Resets all tweens to their initial values (the ones given, not those before the tween). + + + + + + + + + + + Continue animating a stopped tween, given its object and property/method pair. + + + + + + + Continue animating all stopped tweens. + + + + + + + + + Seek the animation to the given [code]time[/code] in seconds. + + + + + + + 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. + + + + + + + Make the tween repeat after all tweens have finished. + + + + + + + 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. + + + + + + + Set whether the Tween uses [code]_process[/code] or [code]_fixed_process[/code] (accepts TWEEN_PROCESS_IDLE and TWEEN_PROCESS_FIXED constants, respectively). + + + + + + + Start the tween node. You can define tweens both before and after this. + + + + + + + + + + + Stop animating a tween, given its object and property/method pair. + + + + + + + Stop animating all tweens. + + + + + + + + + + + + + + @@ -39659,7 +39678,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. @@ -39689,30 +39708,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. @@ -39726,6 +39726,15 @@ This method controls whether the position between two cached points is interpola This signal is emitted when a tween ends. + + + + + + + This signal is emitted when a tween starts. + + @@ -39739,22 +39748,19 @@ This method controls whether the position between two cached points is interpola This signal is emitted each step of the tweening. - - - - - - - This signal is emitted when a tween starts. - - - - 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. @@ -39762,6 +39768,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. @@ -39786,20 +39795,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. + + The [Tween] should use [code]_fixed_process[/code] for timekeeping when this is enabled. - - 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. - - - 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). @@ -39809,18 +39809,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - @@ -39839,24 +39827,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - @@ -39867,6 +39837,30 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + @@ -39877,12 +39871,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -39893,6 +39881,18 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + @@ -39939,24 +39939,24 @@ This method controls whether the position between two cached points is interpola - - - - - - - + + + + + + + - - - + + + @@ -39970,22 +39970,22 @@ This method controls whether the position between two cached points is interpola - + - - - + - + - + + + @@ -40018,16 +40018,16 @@ This method controls whether the position between two cached points is interpola - + - - + + @@ -40044,11 +40044,11 @@ This method controls whether the position between two cached points is interpola - + - + @@ -40060,6 +40060,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. + + @@ -40224,31 +40235,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). - @@ -40261,6 +40261,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. + + @@ -40291,15 +40300,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. - - @@ -40312,6 +40312,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. + + @@ -40475,19 +40488,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. - - @@ -40520,6 +40520,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. + + @@ -40550,15 +40559,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. - - @@ -40569,21 +40569,15 @@ This method controls whether the position between two cached points is interpola - - - - - - - + - - - + + + @@ -40593,13 +40587,13 @@ This method controls whether the position between two cached points is interpola - - - + + + - + @@ -40611,9 +40605,21 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + @@ -40623,12 +40629,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -40639,9 +40639,21 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + @@ -40651,9 +40663,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -40663,9 +40675,9 @@ This method controls whether the position between two cached points is interpola - - - + + + @@ -40675,26 +40687,14 @@ This method controls whether the position between two cached points is interpola - - - - - - - - + + - - - - - - - - + + @@ -40705,57 +40705,57 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -40769,9 +40769,15 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + @@ -40781,68 +40787,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -40855,9 +40799,21 @@ This method controls whether the position between two cached points is interpola - - - + + + + + + + + + + + + + + + @@ -40867,15 +40823,37 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + + + + + + + + + + + + + + + + + - - - + + + @@ -40885,15 +40863,37 @@ This method controls whether the position between two cached points is interpola - - - + + + - - - + + + + + + + + + + + + + + + + + + + + + + + + + @@ -40934,18 +40934,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. @@ -40955,32 +40948,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. @@ -40990,11 +40962,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. @@ -41004,11 +40976,88 @@ 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. + + + + + + + Get whether picking for all physics objects inside the viewport is enabled. + + + + + + + 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 automatic clearing of the render target on each frame is enabled. + + + + + + + Get whether the rendered texture has filters enabled. + + + + + + + Get whether the rendered texture will have mipmaps generated. + + + + + + + Get the render target's texture, for use with various objects that you want to texture with the viewport. + + + + + + + Get when the render target would be updated, will be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. + + + + + + + Set whether the render target is flipped on the Y axis. + + + + + + + Return the captured screenshot after [method queue_screen_capture]. You might need to check more than one frame untill the right image is returned. + + + + + + + Get the size override set with [method set_size_override]. + + + + + + + Get the viewport RID from the visual server. @@ -41018,11 +41067,18 @@ This method controls whether the position between two cached points is interpola Return the final, visible rect in global screen coordinates. - - - + + + - If this viewport is a child of another viewport, keep the previously drawn background visible. + Return the 3D world of the viewport. + + + + + + + Returs whether there are shown modals on-screen. @@ -41032,6 +41088,169 @@ This method controls whether the position between two cached points is interpola Return whether the viewport lets whatever is behind it to show. + + + + + + + + + + + Returns whether the viewport sends sounds to the speakers. + + + + + + + Returns whether the viewport sends soundsfrom 2D emitters to the speakers. + + + + + + + Return whether input to the viewport is disabled. + + + + + + + Return whether the viewport is set as a render target by [method set_as_render_target]. + + + + + + + Get the enabled status of the size override set with [method set_size_override]. + + + + + + + Get the enabled status of the size strech override set with [method set_size_override_stretch]. + + + + + + + Return whether the viewport is using a world separate from the parent viewport's world. + + + + + Queue a multithreaded screenshot, you can retrive it at a later frame via [method get_screen_capture]. + + + + + Clear the render target manually. + + + + + + + Makes the viewport send sounds to the speakers. + + + + + + + Makes the viewport send sounds from 2D emitters to the speakers. + + + + + + + Set the viewport's render target mode. + + + + + + + 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. + + + + + + + Set whether input to the viewport is disabled. + + + + + + + Set the global canvas transform of the viewport. The canvas transform is relative to this. + + + + + + + Enable/disable picking for all physics objects inside the viewport. + + + + + + + Set the viewport rect. If the viewport is child of a control, it will use the same rect as the parent. + + + + + + + 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] + + + + + + + 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. + + + + + + + Map a part of the screen to the render target directly. + + + + + + + Set when the render target should be updated, has to be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. + + + + + + + Set whether the render target should be flipped on the Y axis. + + @@ -41043,20 +41262,6 @@ This method controls whether the position between two cached points is interpola 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. - - - - - Get the size override set with [method set_size_override]. - - - - - - - Get the enabled status of the size override set with [method set_size_override]. - - @@ -41064,146 +41269,25 @@ This method controls whether the position between two cached points is interpola Set whether the size override affects stretch as well. - - - - - Get the enabled status of the size strech override set with [method set_size_override_stretch]. - - - - - Queue a multithreaded screenshot, you can retrive it at a later frame via [method get_screen_capture]. - - - - - - - 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. + If this viewport is a child of another viewport, keep the previously drawn background visible. - - - - - Return whether the viewport is set as a render target by [method set_as_render_target]. - - - + - Set whether the render target should be flipped on the Y axis. + Make the viewport use a world separate from the parent viewport's world. - - - - - Set whether the render target is flipped on the Y axis. - - - - - - - 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] - - - - - - - Return whether automatic clearing of the render target on each frame is enabled. - - - - - Clear the render target manually. - - - - - - - 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. - - - - - - - Set whether the rendered texture should have mipmaps generated. Mipmaps allow the texture to have better antialiasing from far away. - - - - - - - Get whether the rendered texture will have mipmaps generated. - - - - - - - Set when the render target should be updated, has to be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. - - - - - - - Get when the render target would be updated, will be one of the [code]RENDER_TARGET_UPDATE_*[/code] constants. - - - - - - - Get the render target's texture, for use with various objects that you want to texture with the viewport. - - - - - - - Enable/disable picking for all physics objects inside the viewport. - - - - - - - Get whether picking for all physics objects inside the viewport is enabled. - - - - - - - Get the viewport RID from the visual server. - - - - + + + Change the 3D world of the viewport. @@ -41217,69 +41301,6 @@ This method controls whether the position between two cached points is interpola Force update of the 2D and 3D worlds. - - - - - Make the viewport use a world separate from the parent viewport's world. - - - - - - - Return whether the viewport is using a world separate from the parent viewport's world. - - - - - - - Return the active 3D camera. - - - - - - - Makes the viewport send sounds to the speakers. - - - - - - - Returns whether the viewport sends sounds to the speakers. - - - - - - - Makes the viewport send sounds from 2D emitters to the speakers. - - - - - - - Returns whether the viewport sends soundsfrom 2D emitters to the speakers. - - - - - - - Map a part of the screen to the render target directly. - - - - - - - Get the mouse position, relative to the viewport. - - @@ -41287,27 +41308,6 @@ This method controls whether the position between two cached points is interpola Wrap the mouse to a position, relative to the viewport. - - - - - Returs whether there are shown modals on-screen. - - - - - - - Set whether input to the viewport is disabled. - - - - - - - Return whether input to the viewport is disabled. - - @@ -41339,39 +41339,11 @@ 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. - - - - + + - Return the path to the shown [Viewport] node. - - - - - - - Set whether the viewport's texture should be centered on the origin. - - - - - - - Return whether the viewport's texture is centered on the origin. - - - - - - - Set the offset to the origin of the texture. + Get color modulation for the texture. All texture pixels are multiplied by this color. @@ -41381,6 +41353,27 @@ This method controls whether the position between two cached points is interpola get the offset to the origin of the texture. + + + + + Return the path to the shown [Viewport] node. + + + + + + + Return whether the viewport's texture is centered on the origin. + + + + + + + Set whether the viewport's texture should be centered on the origin. + + @@ -41388,11 +41381,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. @@ -41407,15 +41407,6 @@ 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. - - @@ -41425,14 +41416,23 @@ This method controls whether the position between two cached points is interpola 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. + @@ -41445,15 +41445,6 @@ 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. - - @@ -41463,14 +41454,23 @@ This method controls whether the position between two cached points is interpola 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. @@ -41492,13 +41492,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. - - @@ -41513,13 +41506,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. + + + + + Set the visibility bounding box of the VisibilityNotifier. + + - - - Emitted when the VisibilityNotifier enters the screen. - - @@ -41527,9 +41522,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. @@ -41539,6 +41534,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. + + @@ -41551,13 +41551,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. - - @@ -41572,6 +41565,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. + + @@ -41608,6 +41608,12 @@ This method controls whether the position between two cached points is interpola + + + + + + @@ -41620,12 +41626,6 @@ This method controls whether the position between two cached points is interpola - - - - - - @@ -41639,812 +41639,26 @@ 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. - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + - + - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - - + + - + - - - - - - - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -42455,7 +41669,7 @@ This method controls whether the position between two cached points is interpola - + @@ -42467,7 +41681,7 @@ This method controls whether the position between two cached points is interpola - + @@ -42487,340 +41701,20 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + - + - - - - - - - + - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + @@ -42849,6 +41743,20 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + @@ -42881,54 +41789,118 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -42955,34 +41927,280 @@ This method controls whether the position between two cached points is interpola - - + + + + + + + + + + + + + + + + + + + + + + + + + + - - + + - - - - - + - - + + + + + + + + + + - + + + + + + + - + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -42999,6 +42217,112 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -43007,57 +42331,747 @@ This method controls whether the position between two cached points is interpola - + + + - - - - - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - + - + + + + + + + + + + + + + + + + + + + - + - + - + - + - + - - - - - + @@ -43071,38 +43085,24 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - + + + + + + + + + @@ -43113,134 +43113,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -43261,6 +43133,134 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + @@ -43290,11 +43290,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]. @@ -43304,34 +43304,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. + + - - - - - - - - - + + + + + - + + + @@ -43343,8 +43343,14 @@ 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. - - + + + + + + + + @@ -43361,24 +43367,18 @@ This method controls whether the position between two cached points is interpola + + + + + + - - - - - - - - - - - - @@ -43397,8 +43397,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -43409,8 +43409,8 @@ This method controls whether the position between two cached points is interpola - - + + @@ -43425,18 +43425,18 @@ This method controls whether the position between two cached points is interpola - - - - - - + + + + + + @@ -43447,36 +43447,6 @@ This method controls whether the position between two cached points is interpola - - - - - - - - - - - - - - - - - - - - - - - - - - - - - - @@ -43499,11 +43469,9 @@ This method controls whether the position between two cached points is interpola - - + + - - @@ -43523,30 +43491,44 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + - - - - - - - - - - - - - - - - - - @@ -43563,6 +43545,24 @@ This method controls whether the position between two cached points is interpola + + + + + + + + + + + + + + + + + + @@ -43589,13 +43589,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) - - @@ -43603,6 +43596,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) + +