Generated wrapper for Godot's Node2D, extends CanvasItem.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
class CanvasItemclass Nodeclass Objectclass GodotScriptClassclass Objecttrait Matchableclass AnyShow all
- Known subtypes
-
class AnimatedSprite2Dclass AudioListener2Dclass AudioStreamPlayer2Dclass BackBufferCopyclass Bone2Dclass CPUParticles2Dclass Camera2Dclass CanvasGroupclass CanvasModulateclass CollisionObject2Dclass Area2Dclass PhysicsBody2Dclass CharacterBody2Dclass RigidBody2Dclass PhysicalBone2Dclass StaticBody2Dclass AnimatableBody2Dclass CollisionPolygon2Dclass CollisionShape2Dclass GPUParticles2Dclass Joint2Dclass DampedSpringJoint2Dclass GrooveJoint2Dclass PinJoint2Dclass Light2Dclass DirectionalLight2Dclass PointLight2Dclass LightOccluder2Dclass Line2Dclass Marker2Dclass MeshInstance2Dclass MultiMeshInstance2Dclass NavigationLink2Dclass NavigationObstacle2Dclass NavigationRegion2Dclass Parallax2Dclass ParallaxLayerclass Path2Dclass PathFollow2Dclass Polygon2Dclass RayCast2Dclass RemoteTransform2Dclass ShapeCast2Dclass Skeleton2Dclass Sprite2Dclass TileMapclass TileMapLayerclass TouchScreenButtonclass VisibleOnScreenEnabler2DShow all
Members list
Value members
Concrete methods
Node2D.apply_scale
Node2D.apply_scale
Attributes
Node2D.get_angle_to
Node2D.get_angle_to
Attributes
Node2D.get_global_position
Node2D.get_global_position
Attributes
Node2D.get_global_rotation
Node2D.get_global_rotation
Attributes
Node2D.get_global_rotation_degrees
Node2D.get_global_rotation_degrees
Attributes
Node2D.get_global_scale
Node2D.get_global_scale
Attributes
Node2D.get_global_skew
Node2D.get_global_skew
Attributes
Node2D.get_position
Node2D.get_position
Attributes
Node2D.get_relative_transform_to_parent
Node2D.get_relative_transform_to_parent
Attributes
Node2D.get_rotation
Node2D.get_rotation
Attributes
Node2D.get_rotation_degrees
Node2D.get_rotation_degrees
Attributes
Node2D.get_skew
Node2D.get_skew
Attributes
Node2D.global_translate
Node2D.global_translate
Attributes
The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).
The Godot class name for this instance. Engine wrappers override with the baked literal; user classes fall back to their Scala simple name (which is how registration names them).
Attributes
- Definition Classes
Node2D.move_local_x
Node2D.move_local_x
Attributes
Node2D.move_local_y
Node2D.move_local_y
Attributes
Node2D.rotate
Node2D.rotate
Attributes
Node2D.set_global_position
Node2D.set_global_position
Attributes
Node2D.set_global_rotation
Node2D.set_global_rotation
Attributes
Node2D.set_global_rotation_degrees
Node2D.set_global_rotation_degrees
Attributes
Node2D.set_global_scale
Node2D.set_global_scale
Attributes
Node2D.set_global_skew
Node2D.set_global_skew
Attributes
Node2D.set_global_transform
Node2D.set_global_transform
Attributes
Node2D.set_position
Node2D.set_position
Attributes
Node2D.set_rotation
Node2D.set_rotation
Attributes
Node2D.set_rotation_degrees
Node2D.set_rotation_degrees
Attributes
Node2D.set_skew
Node2D.set_skew
Attributes
Node2D.set_transform
Node2D.set_transform
Attributes
Inherited methods
EditorInspectorPlugin: can this plugin handle obj's inspector?
EditorInspectorPlugin: can this plugin handle obj's inspector?
Attributes
- Inherited from:
- GodotScriptClass
EditorPlugin/Node: entered the (editor) tree.
EditorPlugin/Node: leaving the (editor) tree.
Called for every unhandled-or-not input event (Node._input).
Called for every unhandled-or-not input event (Node._input).
Attributes
- Inherited from:
- GodotScriptClass
EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.
EditorInspectorPlugin: inspect one property. Return true to take it over (after calling addPropertyEditor), false to let the default editor render.
Attributes
- Inherited from:
- GodotScriptClass
Called every physics frame; delta is the fixed physics step.
Called every physics frame; delta is the fixed physics step.
Attributes
- Inherited from:
- GodotScriptClass
Called every rendered frame; delta is seconds since the last frame.
Called every rendered frame; delta is seconds since the last frame.
Attributes
- Inherited from:
- GodotScriptClass
Called when the node enters the scene tree and is ready.
Called when the node enters the scene tree and is ready.
Attributes
- Inherited from:
- GodotScriptClass
Called for shortcut input before _unhandled_input (Node._shortcut_input).
Called for shortcut input before _unhandled_input (Node._shortcut_input).
Attributes
- Inherited from:
- GodotScriptClass
Called for input not consumed by the UI (Node._unhandled_input).
Called for input not consumed by the UI (Node._unhandled_input).
Attributes
- Inherited from:
- GodotScriptClass
Called for unhandled key input (Node._unhandled_key_input).
Called for unhandled key input (Node._unhandled_key_input).
Attributes
- Inherited from:
- GodotScriptClass
EditorProperty: refresh the widget from the edited property's value.
EditorProperty: refresh the widget from the edited property's value.
Attributes
- Inherited from:
- GodotScriptClass
Node.add_child
Node.add_sibling
Node.add_to_group
Node.atr
Node.atr_n
Node.can_auto_translate
Node.can_process
Object.can_translate_messages
Object.cancel_free
Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.
Cast to a (super- or sub-) class U. Returns null if the object is not actually a U. Uses object_cast_to with U's class tag — a real engine type check, not a Scala cast.
Attributes
- Inherited from:
- GodotScriptClass
Node.create_tween. Returns an owned reference: release it with unref() or inside Gd.scoped.
Node.create_tween. Returns an owned reference: release it with unref() or inside Gd.scoped.
Attributes
- Inherited from:
- Node
CanvasItem.draw_animation_slice
CanvasItem.draw_char
CanvasItem.draw_circle
CanvasItem.draw_end_animation
CanvasItem.draw_lcd_texture_rect_region
CanvasItem.draw_line
CanvasItem.draw_mesh
CanvasItem.draw_multimesh
CanvasItem.draw_rect
CanvasItem.draw_set_transform
CanvasItem.draw_set_transform_matrix
CanvasItem.draw_style_box
CanvasItem.draw_texture
CanvasItem.draw_texture_rect
CanvasItem.draw_texture_rect_region
Node.duplicate
Node.find_child
Node.find_parent
CanvasItem.force_update_transform
Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.
Free a manually-managed object via object_destroy. No-op for reference-counted objects — use unref for those. The wrapper is dead afterwards: calling an engine method on it throws.
Attributes
- Inherited from:
- GodotScriptClass
Node.get_auto_translate_mode
CanvasItem.get_canvas_layer_node
CanvasItem.get_canvas_transform
Node.get_child
Node.get_child_count
CanvasItem.get_clip_children_mode
Node.get_editor_description
CanvasItem.get_global_mouse_position
CanvasItem.get_global_transform
CanvasItem.get_global_transform_with_canvas
Node.get_index
Object.get_instance_id
Node.get_last_exclusive_window
CanvasItem.get_light_mask
CanvasItem.get_local_mouse_position
CanvasItem.get_material. Returns an owned reference: release it with unref() or inside Gd.scoped.
CanvasItem.get_material. Returns an owned reference: release it with unref() or inside Gd.scoped.
Attributes
- Inherited from:
- CanvasItem
Object.get_method_argument_count
CanvasItem.get_modulate
Node.get_multiplayer. Returns an owned reference: release it with unref() or inside Gd.scoped.
Node.get_multiplayer. Returns an owned reference: release it with unref() or inside Gd.scoped.
Attributes
- Inherited from:
- Node
Node.get_multiplayer_authority
Node.get_name
Node.get_physics_interpolation_mode
Node.get_physics_process_delta_time
Node.get_physics_process_priority
Node.get_process_delta_time
Node.get_process_mode
Node.get_process_priority
Node.get_process_thread_group
Node.get_process_thread_group_order
Node.get_process_thread_messages
Node.get_scene_file_path
Node.get_scene_instance_load_placeholder
CanvasItem.get_screen_transform
CanvasItem.get_self_modulate
CanvasItem.get_texture_filter
CanvasItem.get_texture_repeat
CanvasItem.get_transform
Object.get_translation_domain
Node.get_tree_string
Node.get_tree_string_pretty
CanvasItem.get_use_parent_material
Node.get_viewport
CanvasItem.get_viewport_rect
CanvasItem.get_viewport_transform
CanvasItem.get_visibility_layer
CanvasItem.get_visibility_layer_bit
CanvasItem.get_world_2d. Returns an owned reference: release it with unref() or inside Gd.scoped.
CanvasItem.get_world_2d. Returns an owned reference: release it with unref() or inside Gd.scoped.
Attributes
- Inherited from:
- CanvasItem
CanvasItem.get_z_index
Object.has_connections
Object.has_meta
Object.has_method
Object.has_signal
Object.has_user_signal
CanvasItem.hide
The engine-side object handle for this instance.
This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.
This object's stable Godot InstanceId (the null sentinel if unbound). Mirrors Object.get_instance_id, but typed — pass it to APIs that key off a node's identity.
Attributes
- Inherited from:
- GodotScriptClass
Node.is_ancestor_of
Object.is_blocking_signals
Object.is_class
Node.is_displayed_folded
CanvasItem.is_draw_behind_parent_enabled
Node.is_editable_instance
Node.is_greater_than
Node.is_in_group
Node.is_inside_tree
CanvasItem.is_local_transform_notification_enabled
Node.is_multiplayer_authority
Node.is_node_ready
Node.is_part_of_edited_scene
Node.is_physics_interpolated
Node.is_physics_interpolated_and_enabled
Node.is_physics_processing
Node.is_physics_processing_internal
Node.is_processing
Node.is_processing_input
Node.is_processing_internal
Node.is_processing_shortcut_input
Node.is_processing_unhandled_input
Node.is_processing_unhandled_key_input
Object.is_queued_for_deletion
True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.
True if this object is reference-counted (RefCounted subtree, e.g. a Resource) vs manually-managed (Object/Node subtree). Drives the lifetime methods below.
Attributes
- Inherited from:
- GodotScriptClass
CanvasItem.is_set_as_top_level
CanvasItem.is_transform_notification_enabled
Node.is_unique_name_in_owner
CanvasItem.is_visible
CanvasItem.is_visible_in_tree
CanvasItem.is_y_sort_enabled
CanvasItem.is_z_relative
Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.
Keep a reference adopted inside Gd.scoped past the end of the block: the caller now owns it and releases it with unref. Returns this.
Attributes
- Inherited from:
- GodotScriptClass
CanvasItem.make_canvas_position_local
CanvasItem.make_input_local. Returns an owned reference: release it with unref() or inside Gd.scoped.
CanvasItem.make_input_local. Returns an owned reference: release it with unref() or inside Gd.scoped.
Attributes
- Inherited from:
- CanvasItem
Node.move_child
CanvasItem.move_to_front
Object.notification
Node.notify_deferred_thread_group
Object.notify_property_list_changed
Node.notify_thread_safe
Node.print_tree_pretty
Node.propagate_notification
Object.property_can_revert
Node.queue_accessibility_update
CanvasItem.queue_redraw
Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)
Take one more reference on a reference-counted object, owned by this wrapper until a matching unref. No-op for manually-managed objects (nodes). Returns this. (Named refInc rather than reference to avoid clashing with the generated RefCounted.reference(): Boolean method.)
Attributes
- Inherited from:
- GodotScriptClass
Node.remove_child
Node.remove_from_group
Object.remove_meta
Object.remove_user_signal
Node.reparent
Node.replace_by
Node.request_ready
Node.reset_physics_interpolation
CanvasItem.set_as_top_level
Node.set_auto_translate_mode
Object.set_block_signals
CanvasItem.set_clip_children_mode
Node.set_display_folded
CanvasItem.set_draw_behind_parent
Node.set_editable_instance
Node.set_editor_description
CanvasItem.set_light_mask
CanvasItem.set_material
Object.set_message_translation
CanvasItem.set_modulate
Node.set_multiplayer_authority
Node.set_name
CanvasItem.set_notify_local_transform
CanvasItem.set_notify_transform
Node.set_physics_interpolation_mode
Node.set_physics_process
Node.set_physics_process_internal
Node.set_physics_process_priority
Node.set_process
Node.set_process_input
Node.set_process_internal
Node.set_process_mode
Node.set_process_priority
Node.set_process_shortcut_input
Node.set_process_thread_group
Node.set_process_thread_group_order
Node.set_process_thread_messages
Node.set_process_unhandled_input
Node.set_process_unhandled_key_input
Node.set_scene_file_path
Node.set_scene_instance_load_placeholder
CanvasItem.set_self_modulate
CanvasItem.set_texture_filter
CanvasItem.set_texture_repeat
Object.set_translation_domain
Node.set_translation_domain_inherited
Node.set_unique_name_in_owner
CanvasItem.set_use_parent_material
CanvasItem.set_visibility_layer
CanvasItem.set_visibility_layer_bit
CanvasItem.set_visible
CanvasItem.set_y_sort_enabled
CanvasItem.set_z_as_relative
CanvasItem.set_z_index
CanvasItem.show
Object.tr
Object.tr_n
Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.
Release one reference this wrapper owns (an engine Ref<T> return, Gd.create, or refInc), destroying the object if it was the last reference. Does nothing when the wrapper owns no reference, so a borrowed object can never be freed from under the engine.
Attributes
- Inherited from:
- GodotScriptClass
Node.update_configuration_warnings
Set the handle and return this (fluent, for wrapping fetched objects).
Set the handle and return this (fluent, for wrapping fetched objects).
Attributes
- Inherited from:
- GodotScriptClass