id
stringlengths
6
6
text
stringlengths
20
17.2k
title
stringclasses
1 value
124675
<?xml version="1.0" encoding="UTF-8" ?> <class name="CollisionShape2D" inherits="Node2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> A node that provides a [Shape2D] to a [CollisionObject2D] parent. </brief_description> <description> A n...
124678
<methods> <method name="_input_event" qualifiers="virtual"> <return type="void" /> <param index="0" name="camera" type="Camera3D" /> <param index="1" name="event" type="InputEvent" /> <param index="2" name="event_position" type="Vector3" /> <param index="3" name="normal" type="Vector3" /> <param ind...
124679
<method name="shape_owner_set_disabled"> <return type="void" /> <param index="0" name="owner_id" type="int" /> <param index="1" name="disabled" type="bool" /> <description> If [code]true[/code], disables the given shape owner. </description> </method> <method name="shape_owner_set_transform"> ...
124684
<method name="get_theme_default_font_size" qualifiers="const"> <return type="int" /> <description> Returns the default font size value from the first matching [Theme] in the tree if that [Theme] has a valid [member Theme.default_font_size] value. See [method Control.get_theme_color] for details. </desc...
124687
<members> <member name="always_on_top" type="bool" setter="set_flag" getter="get_flag" default="false"> If [code]true[/code], the window will be on top of all other windows. Does not work if [member transient] is enabled. </member> <member name="auto_translate" type="bool" setter="set_auto_translate" getter="i...
124689
<signals> <signal name="about_to_popup"> <description> Emitted right after [method popup] call, before the [Window] appears or does anything. </description> </signal> <signal name="close_requested"> <description> Emitted when the [Window]'s close button is pressed or when [member popup_window] is...
124700
<?xml version="1.0" encoding="UTF-8" ?> <class name="InputEventMouse" inherits="InputEventWithModifiers" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> Base input event type for mouse events. </brief_description> <description> Stores genera...
124709
<?xml version="1.0" encoding="UTF-8" ?> <class name="CollisionObject2D" inherits="Node2D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> Abstract base class for 2D physics objects. </brief_description> <description> Abstract base class for ...
124710
<methods> <method name="_input_event" qualifiers="virtual"> <return type="void" /> <param index="0" name="viewport" type="Viewport" /> <param index="1" name="event" type="InputEvent" /> <param index="2" name="shape_idx" type="int" /> <description> Accepts unhandled [InputEvent]s. [param shape_idx] ...
124711
<method name="shape_owner_get_shape_count" qualifiers="const"> <return type="int" /> <param index="0" name="owner_id" type="int" /> <description> Returns the number of shapes the given shape owner contains. </description> </method> <method name="shape_owner_get_shape_index" qualifiers="const"> <r...
124716
<?xml version="1.0" encoding="UTF-8" ?> <class name="CollisionShape3D" inherits="Node3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> A node that provides a [Shape3D] to a [CollisionObject3D] parent. </brief_description> <description> A n...
124740
<method name="area_set_area_monitor_callback"> <return type="void" /> <param index="0" name="area" type="RID" /> <param index="1" name="callback" type="Callable" /> <description> Sets the area's area monitor callback. This callback will be called when any other (shape of an) area enters or exits (a shap...
124743
<method name="body_set_collision_layer"> <return type="void" /> <param index="0" name="body" type="RID" /> <param index="1" name="layer" type="int" /> <description> Sets the physics layer or layers the body belongs to, via a bitmask. </description> </method> <method name="body_set_collision_mask"...
124754
<members> <member name="collide_with_areas" type="bool" setter="set_collide_with_areas" getter="is_collide_with_areas_enabled" default="false"> If [code]true[/code], collisions with [Area2D]s will be reported. </member> <member name="collide_with_bodies" type="bool" setter="set_collide_with_bodies" getter="is_...
124780
<?xml version="1.0" encoding="UTF-8" ?> <class name="HBoxContainer" inherits="BoxContainer" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> A container that arranges its child controls horizontally. </brief_description> <description> A varia...
124903
<method name="get_video_adapter_driver_info" qualifiers="const"> <return type="PackedStringArray" /> <description> Returns the video adapter driver name and version for the user's currently active graphics card, as a [PackedStringArray]. See also [method RenderingServer.get_video_adapter_api_version]. The...
124910
<?xml version="1.0" encoding="UTF-8" ?> <class name="Basis" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> A 3×3 matrix for representing 3D rotation and scale. </brief_description> <description> The [Basis] built-in [Variant] type is a 3×3 ...
124911
ethods> <method name="determinant" qualifiers="const"> <return type="float" /> <description> Returns the [url=https://en.wikipedia.org/wiki/Determinant]determinant[/url] of this basis's matrix. For advanced math, this number can be used to determine a few attributes: - If the determinant is exactly [cod...
124912
ethod name="is_equal_approx" qualifiers="const"> <return type="bool" /> <param index="0" name="b" type="Basis" /> <description> Returns [code]true[/code] if this basis and [param b] are approximately equal, by calling [method @GlobalScope.is_equal_approx] on all vector components. </description> </met...
124951
<method name="set_loops"> <return type="Tween" /> <param index="0" name="loops" type="int" default="0" /> <description> Sets the number of times the tweening sequence will be repeated, i.e. [code]set_loops(2)[/code] will run the animation twice. Calling this method without arguments will make the [Twee...
124952
<method name="tween_method"> <return type="MethodTweener" /> <param index="0" name="method" type="Callable" /> <param index="1" name="from" type="Variant" /> <param index="2" name="to" type="Variant" /> <param index="3" name="duration" type="float" /> <description> Creates and appends a [MethodTwe...
124966
<?xml version="1.0" encoding="UTF-8" ?> <class name="SubViewport" inherits="Viewport" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> An interface to a game world that doesn't create a window or draw to the screen directly. </brief_description>...
125022
<member name="transparency" type="int" setter="set_transparency" getter="get_transparency" enum="BaseMaterial3D.Transparency" default="0"> The material's transparency mode. Some transparency modes will disable shadow casting. Any transparency mode other than [constant TRANSPARENCY_DISABLED] has a greater performance...
125068
<?xml version="1.0" encoding="UTF-8" ?> <class name="EditorImportPlugin" inherits="ResourceImporter" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> Registers a custom resource importer in the editor. Use the class to parse any file and import i...
125090
<brief_description> Settings for a single tile in a [TileSet]. </brief_description> <description> [TileData] object represents a single tile in a [TileSet]. It is usually edited using the tileset editor, but it can be modified at runtime using [method TileMap._tile_data_runtime_update]. </description> <tutorial...
125127
<?xml version="1.0" encoding="UTF-8" ?> <class name="ResourceLoader" inherits="Object" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> A singleton for loading resource files. </brief_description> <description> A singleton used to load resour...
125128
<methods> <method name="add_resource_format_loader"> <return type="void" /> <param index="0" name="format_loader" type="ResourceFormatLoader" /> <param index="1" name="at_front" type="bool" default="false" /> <description> Registers a new [ResourceFormatLoader]. The ResourceLoader will use the Resourc...
125129
<constants> <constant name="THREAD_LOAD_INVALID_RESOURCE" value="0" enum="ThreadLoadStatus"> The resource is invalid, or has not been loaded with [method load_threaded_request]. </constant> <constant name="THREAD_LOAD_IN_PROGRESS" value="1" enum="ThreadLoadStatus"> The resource is still being loaded. </co...
125170
<?xml version="1.0" encoding="UTF-8" ?> <class name="Resource" inherits="RefCounted" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> Base class for serializable objects. </brief_description> <description> Resource is the base class for all G...
125172
<members> <member name="resource_local_to_scene" type="bool" setter="set_local_to_scene" getter="is_local_to_scene" default="false"> If [code]true[/code], the resource is duplicated for each instance of all scenes using it. At run-time, the resource can be modified in one scene without affecting other instances (s...
125178
method name="_has_main_screen" qualifiers="virtual const"> <return type="bool" /> <description> Returns [code]true[/code] if this is a main screen editor plugin (it goes in the workspace selector together with [b]2D[/b], [b]3D[/b], [b]Script[/b] and [b]AssetLib[/b]). When the plugin's workspace is selecte...
125179
method name="add_debugger_plugin"> <return type="void" /> <param index="0" name="script" type="EditorDebuggerPlugin" /> <description> Adds a [Script] as debugger plugin to the Debugger. The script must extend [EditorDebuggerPlugin]. </description> </method> <method name="add_export_platform"> <re...
125209
<method name="abs" qualifiers="const"> <return type="Vector3" /> <description> Returns a new vector with all components in absolute values (i.e. positive). </description> </method> <method name="angle_to" qualifiers="const"> <return type="float" /> <param index="0" name="to" type="Vector3" /> ...
125211
ethod name="posmod" qualifiers="const"> <return type="Vector3" /> <param index="0" name="mod" type="float" /> <description> Returns a vector composed of the [method @GlobalScope.fposmod] of this vector's components and [param mod]. </description> </method> <method name="posmodv" qualifiers="const"> ...
125286
methods> <method name="adjust_bcs"> <return type="void" /> <param index="0" name="brightness" type="float" /> <param index="1" name="contrast" type="float" /> <param index="2" name="saturation" type="float" /> <description> Adjusts this image's [param brightness], [param contrast], and [param satur...
125319
<?xml version="1.0" encoding="UTF-8" ?> <class name="PackedScene" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> An abstraction of a serialized scene. </brief_description> <description> A simplified interface to a scene ...
125326
<?xml version="1.0" encoding="UTF-8" ?> <class name="EditorFileSystem" inherits="Node" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../class.xsd"> <brief_description> Resource filesystem, as the editor sees it. </brief_description> <description> This object holds informati...
125379
RotationEditMode get_rotation_edit_mode() const; void set_rotation_order(EulerOrder p_order); void set_rotation(const Vector3 &p_euler_rad); void set_rotation_degrees(const Vector3 &p_euler_degrees); void set_scale(const Vector3 &p_scale); void set_global_position(const Vector3 &p_position); void set_global_bas...
125389
/**************************************************************************/ /* character_body_3d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125390
/**************************************************************************/ /* collision_object_3d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125392
/**************************************************************************/ /* ray_cast_3d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125427
/**************************************************************************/ /* sprite_frames.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125568
/**************************************************************************/ /* animation_blend_space_2d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125680
class Control : public CanvasItem { GDCLASS(Control, CanvasItem); #ifdef TOOLS_ENABLED bool saving = false; #endif public: enum Anchor { ANCHOR_BEGIN = 0, ANCHOR_END = 1 }; enum GrowDirection { GROW_DIRECTION_BEGIN, GROW_DIRECTION_END, GROW_DIRECTION_BOTH }; enum FocusMode { FOCUS_NONE, FOCUS_C...
125681
bool _property_get_revert(const StringName &p_name, Variant &r_property) const; // Theming. virtual void _update_theme_item_cache(); // Internationalization. virtual TypedArray<Vector3i> structured_text_parser(TextServer::StructuredTextParser p_parser_type, const Array &p_args, const String &p_text) const; //...
125682
void add_theme_style_override(const StringName &p_name, const Ref<StyleBox> &p_style); void add_theme_font_override(const StringName &p_name, const Ref<Font> &p_font); void add_theme_font_size_override(const StringName &p_name, int p_font_size); void add_theme_color_override(const StringName &p_name, const Color &p_...
125780
GDVIRTUAL0(_enter_tree) GDVIRTUAL0(_exit_tree) GDVIRTUAL0(_ready) GDVIRTUAL0RC(Vector<String>, _get_configuration_warnings) GDVIRTUAL1(_input, Ref<InputEvent>) GDVIRTUAL1(_shortcut_input, Ref<InputEvent>) GDVIRTUAL1(_unhandled_input, Ref<InputEvent>) GDVIRTUAL1(_unhandled_key_input, Ref<InputEvent>) public: e...
125786
public: enum { NOTIFICATION_TRANSFORM_CHANGED = 2000 }; enum GroupCallFlags { GROUP_CALL_DEFAULT = 0, GROUP_CALL_REVERSE = 1, GROUP_CALL_DEFERRED = 2, GROUP_CALL_UNIQUE = 4, }; _FORCE_INLINE_ Window *get_root() const { return root; } void call_group_flagsp(uint32_t p_call_flags, const StringName &p_g...
125798
/**************************************************************************/ /* camera_2d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125809
/**************************************************************************/ /* animated_sprite_2d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125832
/**************************************************************************/ /* collision_object_2d.h */ /**************************************************************************/ /* This file is part of: */ /* ...
125905
<?xml version="1.0" encoding="UTF-8" ?> <class name="CSGShape3D" inherits="GeometryInstance3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> <brief_description> The CSG base class. </brief_description> <description> This is the CSG base class that p...
125906
<?xml version="1.0" encoding="UTF-8" ?> <class name="CSGMesh3D" inherits="CSGPrimitive3D" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> <brief_description> A CSG Mesh shape that uses a mesh resource. </brief_description> <description> This CSG node ...
125967
# Basic GDScript module architecture This provides some basic information in how GDScript is implemented and integrates with the rest of the engine. You can learn more about GDScript in the [documentation](https://docs.godotengine.org/en/latest/tutorials/scripting/gdscript/index.html). It describes the syntax and user ...
125968
### Analysis and typechecking (see [`GDScriptAnalyzer`](gdscript_analyzer.h)) The analyzer takes in the AST of a program and verifies that "everything checks out". For example, when analyzing a method call with three parameters, it will check whether the function definition also contains three parameters. If the code ...
125969
### Compiling (see [`GDScriptCompiler`](gdscript_compiler.h)) Compiling is the final step in making a GDScript executable in the [virtual machine](gdscript_vm.h) (VM). The compiler takes a `GDScript` object and an AST, and uses another class, [`GDScriptByteCodeGenerator`](gdscript_byte_codegen.h), to generate bytecode...
126018
class_name Utils # `assert()` is not evaluated in non-debug builds. Do not use `assert()` # for anything other than testing the `assert()` itself. static func check(condition: Variant) -> void: if not condition: printerr("Check failed.") static func get_type(property: Dictionary, is_return: bool = false) -> Stri...
126029
class_name TestMemberInfo class MyClass: pass enum MyEnum {} static var test_static_var_untyped static var test_static_var_weak_null = null static var test_static_var_weak_int = 1 static var test_static_var_hard_int: int var test_var_untyped var test_var_weak_null = null var test_var_weak_int = 1 @export var test_...
126045
func get_parse_string(t: Variant): return t.parse_string func test(): var a: Callable = JSON.parse_string var b: Callable = get_parse_string(JSON) prints(a.call("{\"test\": \"a\"}"), a.is_valid()) prints(b.call("{\"test\": \"b\"}"), b.is_valid())
126078
# https://github.com/godotengine/godot/issues/72967 class CustomNode: extends Node static func test_custom_node(n: CustomNode): if not n: print("null node") func test(): test_typed_argument_is_null() func get_custom_node() -> CustomNode: return null func test_typed_argument_is_null(): var node: Node = No...
126099
# https://github.com/godotengine/godot/issues/90086 class MyObj: var obj : WeakRef func test(): var obj_1 = MyObj.new() var obj_2 = MyObj.new() Utils.check(obj_2.get_reference_count() == 1) obj_1.set(&"obj", obj_2) Utils.check(obj_2.get_reference_count() == 1)
126110
# https://github.com/godotengine/godot/issues/89439 signal my_signal func foo(): print("Foo") my_signal.emit() func bar(): print("Bar") func baz(): print("Baz") func test(): @warning_ignore("return_value_discarded") my_signal.connect(foo, CONNECT_ONE_SHOT) @warning_ignore("return_value_discarded") my_signa...
126177
extends Node func my_func_1(_foo, _bar): pass func my_func_2(_foo, _bar, _baz): pass static func my_static_func_1(_foo, _bar): pass static func my_static_func_2(_foo, _bar, _baz): pass @rpc func my_rpc_func_1(_foo, _bar): pass @rpc func my_rpc_func_2(_foo, _bar, _baz): pass func test(): ...
126179
extends Node func test() -> void: var node1 := Node.new() node1.name = "_" var node2 := Node.new() node2.name = "Child" var node3 := Node.new() node3.name = "Child" add_child(node1) node1.add_child(node2) add_child(node3) Utils.check(get_node("_/Child") == $_/Child)
126180
# https://github.com/godotengine/godot/issues/75658 class MyObj: var callable: Callable func run(): callable.call() var prop: set(value): callable.call() get: callable.call() return 0 func _on_some_signal(): callable.call() func _init(p_callable: Callable): self.callable = p_callable signa...
126240
GDTEST_RUNTIME_ERROR >> SCRIPT ERROR >> on function: test() >> runtime/errors/callable_call_after_free_object.gd >> 6 >> Attempt to call function 'null::is_inside_tree (Callable)' on a null instance.
126327
extends Node class Inner1 extends Node: # ^^^^^^ class1 -> class1 var member1 := 42 # ^^^^^^^ class1:member1 -> class1:member1 var member2 : int = 13 # ^^^^^^^ class1:member2 -> class1:member2 var member3 = 1337 # ^^^^^^^ class1:member3 -> class1:member3 signal changed(old, new) # ^^^^^^^ class...
126330
extends Node var prop1 := 42 # ^^^^^ prop1 -> prop1 var prop2 : int = 42 # ^^^^^ prop2 -> prop2 var prop3 := 42: # ^^^^^ prop3 -> prop3 get: return prop3 + 13 # ^^^^^ -> prop3 set(value): # ^^^^^ prop3:value -> prop3:value prop3 = value - 13 # | ^^^^^ -> prop3:value #<^^^ -> prop3 var pro...
126359
extends Node func test(): var child = Node.new() child.name = "Child" @warning_ignore("unsafe_call_argument") add_child(child) child.owner = self var hey = Node.new() hey.name = "Hey" @warning_ignore("unsafe_call_argument") child.add_child(hey) hey.owner = self hey.unique_name_in_owner = true var fake_he...
126370
class_name ExportVariableTestGlobalClass extends Node2D
126377
@tool class_name ExportVariableTest extends Node const PreloadedGlobalClass = preload("./export_variable_global.notest.gd") const PreloadedUnnamedClass = preload("./export_variable_unnamed.notest.gd") # Built-in types. @export var test_weak_int = 1 @export var test_hard_int: int = 2 @export_range(0, 100) var test_ran...
126431
hint=TYPE_STRING hint_string="<float>/<EXP_EASING>:" usage=DEFAULT|SCRIPT_VARIABLE class_name=&"" var test_node_path: Array hint=TYPE_STRING hint_string="<NodePath>/<NODE_PATH_VALID_TYPES>:" usage=DEFAULT|SCRIPT_VARIABLE class_name=&"" var test_color: Array hint=TYPE_STRING hint_string="<Color>/<COLOR_NO_ALPHA>:" u...
126554
@export_enum("A", "B", "C") var x: Color func test(): pass
126555
@export_enum("A", "B", "C") var x: Array[Color] func test(): pass
126661
func i_return_int() -> int: return 4 func test(): i_return_int() preload("../../utils.notest.gd") # `preload` is a function-like keyword.
126682
class A: func int_to_variant(_p: int): pass func node_to_variant(_p: Node): pass func node_2d_to_node(_p: Node2D): pass func variant_to_untyped(_p: Variant): pass func int_to_untyped(_p: int): pass func node_to_untyped(_p: Node): pass class B extends A: func int_to_variant(_p: Variant): pass func node_to_vari...
126688
class A extends RefCounted: pass class B extends A: pass func test(): var builtin: Variant = 3 Utils.check((builtin is Variant) == true) Utils.check((builtin is int) == true) Utils.check(is_instance_of(builtin, TYPE_INT) == true) Utils.check((builtin is float) == false) Utils.check(is_instance_of(builtin, TYP...
126690
# Untyped inline property var prop1: get: return prop1 set(value): prop1 = value # Typed inline property var prop2: int: get: return prop2 set(value): prop2 = value # Typed inline property with default value var prop3: int = 1: get: return prop3 set(value): prop3 = value # Typed inline property wit...
126727
const Preloaded := preload( 'preload_script_native_type.notest.gd' ) func test() -> void: var inferred := Preloaded.new() var inferred_owner := inferred.owner var typed: Preloaded typed = Preloaded.new() var typed_owner := typed.owner print(typed_owner == inferred_owner) inferred.free() typed.free() print(...
126802
var Value:int = 8: get: return Value set(v): Value = v func test(): var f:float = Value print(int(f))
126803
const A = preload("preload_cyclic_reference_a.notest.gd") static func test_cyclic_reference(): A.test_cyclic_reference_2() static func test_cyclic_reference_2(): A.test_cyclic_reference_3() static func test_cyclic_reference_3(): print(A.WAITING_FOR)
126832
extends Node func test(): var typed: Variant = get_node_or_null("does_not_exist") var untyped = null var node_1: Node = typed var node_2: Node = untyped var node_3 = typed var node_4 = untyped print(typed) print(untyped) print(node_1) print(node_2) print(node_3) print(node_4)
126857
const preloaded: GDScript = preload("gdscript_to_preload.notest.gd") func test(): var preloaded_instance: preloaded = preloaded.new() print(preloaded_instance.something())
126863
# https://github.com/godotengine/godot/issues/43221 extends Node func test(): name = "Node" print(self["name"]) self["name"] = "Changed" print(name)
126884
var _prop = 1 var prop: get = get_prop, set = set_prop func get_prop(): return _prop func set_prop(value): _prop = value func test(): print(prop) prop = 2 print(prop)
127007
var _prop: int # Inline getter returns int instead of String. var prop: String: get: return _prop func test(): pass
127063
var with_setter := 0: set(val): var x: String = val with_setter = val func test(): with_setter = 1 print(with_setter)
127105
GDTEST_ANALYZER_ERROR Expression is of type "StringName" so it can't be of type "int".
127278
# Doesn't produce the warning: signal used_as_first_class_signal() signal used_with_signal_constructor() signal used_with_signal_emit() signal used_with_object_emit_signal() signal used_with_object_connect() signal used_with_object_disconnect() signal used_with_self_prefix() # Produce the warning: signal used_with_dyn...
127295
func test(): print("warn") func get(_property: StringName) -> Variant: return null
127298
<?xml version="1.0" encoding="UTF-8" ?> <class name="GDScript" inherits="Script" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> <brief_description> A script implemented in the GDScript programming language. </brief_description> <description> A script...
127300
ethod name="is_instance_of"> <return type="bool" /> <param index="0" name="value" type="Variant" /> <param index="1" name="type" type="Variant" /> <description> Returns [code]true[/code] if [param value] is an instance of [param type]. The [param type] value must be one of the following: - A constan...
127302
nnotations> <annotation name="@export"> <return type="void" /> <description> Mark the following property as exported (editable in the Inspector dock and saved to disk). To control the type of the exported property, use the type hint notation. [codeblock] extends Node enum Direction {LEFT, RIGHT...
127304
nnotation name="@export_group"> <return type="void" /> <param index="0" name="name" type="String" /> <param index="1" name="prefix" type="String" default="&quot;&quot;" /> <description> Define a new group for the following exported properties. This helps to organize properties in the Inspector dock. Gro...
127305
nnotation name="@export_tool_button"> <return type="void" /> <param index="0" name="text" type="String" /> <param index="1" name="icon" type="String" default="&quot;&quot;" /> <description> Export a [Callable] property as a clickable button with the label [param text]. When the button is pressed, the ca...
127316
# meta-description: Classic movement for gravity games (FPS, TPS, ...) extends _BASE_ const SPEED = 5.0 const JUMP_VELOCITY = 4.5 func _physics_process(delta: float) -> void: # Add the gravity. if not is_on_floor(): velocity += get_gravity() * delta # Handle jump. if Input.is_action_just_pressed("ui_accept"...
127318
# meta-description: Classic movement for gravity games (platformer, ...) extends _BASE_ const SPEED = 300.0 const JUMP_VELOCITY = -400.0 func _physics_process(delta: float) -> void: # Add the gravity. if not is_on_floor(): velocity += get_gravity() * delta # Handle jump. if Input.is_action_just_pressed("ui_...
127565
<?xml version="1.0" encoding="UTF-8" ?> <class name="GLTFNode" inherits="Resource" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="../../../doc/class.xsd"> <brief_description> glTF node class. </brief_description> <description> Represents a glTF node. glTF nodes may have name...
127785
<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <ProjectGuid>{AEBF0036-DA76-4341-B651-A3F2856AB2FA}</ProjectGuid> <OutputPath>bin/$(Configuration)</OutputPath> <AppendTargetFrameworkToOutputPath>false</AppendTargetFrameworkToOutputPath> <RootNamespace>Godot</RootNamespace> <TargetFramework>net6...
127921
/**************************************************************************/ /* multiplayer_spawner.h */ /**************************************************************************/ /* This file is part of: */ /* ...