12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394959697989910010110210310410510610710810911011111211311411511611711811912012112212312412512612712812913013113213313413513613713813914014114214314414514614714814915015115215315415515615715815916016116216316416516616716816917017117217317417517617717817918018118218318418518618718818919019119219319419519619719819920020120220320420520620720820921021121221321421521621721821922022122222322422522622722822923023123223323423523623723823924024124224324424524624724824925025125225325425525625725825926026126226326426526626726826927027127227327427527627727827928028128228328428528628728828929029129229329429529629729829930030130230330430530630730830931031131231331431531631731831932032132232332432532632732832933033133233333433533633733833934034134234334434534634734834935035135235335435535635735835936036136236336436536636736836937037137237337437537637737837938038138238338438538638738838939039139239339439539639739839940040140240340440540640740840941041141241341441541641741841942042142242342442542642742842943043143243343443543643743843944044144244344444544644744844945045145245345445545645745845946046146246346446546646746846947047147247347447547647747847948048148248348448548648748848949049149249349449549649749849950050150250350450550650750850951051151251351451551651751851952052152252352452552652752852953053153253353453553653753853954054154254354454554654754854955055155255355455555655755855956056156256356456556656756856957057157257357457557657757857958058158258358458558658758858959059159259359459559659759859960060160260360460560660760860961061161261361461561661761861962062162262362462562662762862963063163263363463563663763863964064164264364464564664764864965065165265365465565665765865966066166266366466566666766866967067167267367467567667767867968068168268368468568668768868969069169269369469569669769869970070170270370470570670770870971071171271371471571671771871972072172272372472572672772872973073173273373473573673773873974074174274374474574674774874975075175275375475575675775875976076176276376476576676776876977077177277377477577677777877978078178278378478578678778878979079179279379479579679779879980080180280380480580680780880981081181281381481581681781881982082182282382482582682782882983083183283383483583683783883984084184284384484584684784884985085185285385485585685785885986086186286386486586686786886987087187287387487587687787887988088188288388488588688788888989089189289389489589689789889990090190290390490590690790890991091191291391491591691791891992092192292392492592692792892993093193293393493593693793893994094194294394494594694794894995095195295395495595695795895996096196296396496596696796896997097197297397497597697797897998098198298398498598698798898999099199299399499599699799899910001001100210031004100510061007100810091010101110121013101410151016101710181019102010211022102310241025102610271028102910301031103210331034103510361037103810391040104110421043104410451046104710481049105010511052105310541055105610571058105910601061106210631064106510661067106810691070107110721073107410751076107710781079108010811082108310841085108610871088108910901091109210931094109510961097109810991100110111021103110411051106110711081109111011111112111311141115111611171118111911201121112211231124112511261127112811291130113111321133113411351136113711381139114011411142114311441145114611471148114911501151115211531154115511561157115811591160116111621163116411651166116711681169117011711172117311741175117611771178117911801181118211831184118511861187118811891190119111921193119411951196119711981199120012011202120312041205120612071208120912101211121212131214121512161217121812191220122112221223122412251226122712281229123012311232123312341235123612371238123912401241124212431244124512461247124812491250125112521253125412551256125712581259126012611262126312641265126612671268126912701271127212731274127512761277127812791280128112821283128412851286128712881289129012911292129312941295129612971298129913001301130213031304130513061307130813091310131113121313131413151316131713181319132013211322132313241325132613271328132913301331133213331334133513361337133813391340134113421343134413451346134713481349135013511352135313541355135613571358135913601361136213631364136513661367136813691370137113721373137413751376137713781379138013811382138313841385138613871388138913901391139213931394139513961397139813991400140114021403140414051406140714081409141014111412141314141415141614171418141914201421142214231424142514261427142814291430143114321433143414351436143714381439144014411442144314441445144614471448144914501451145214531454145514561457145814591460146114621463146414651466146714681469147014711472147314741475147614771478147914801481148214831484148514861487148814891490149114921493149414951496149714981499150015011502150315041505150615071508150915101511151215131514151515161517151815191520152115221523152415251526152715281529153015311532153315341535153615371538153915401541154215431544154515461547154815491550155115521553155415551556155715581559156015611562156315641565156615671568156915701571157215731574157515761577157815791580158115821583158415851586158715881589159015911592159315941595159615971598159916001601160216031604160516061607160816091610161116121613161416151616161716181619162016211622162316241625162616271628162916301631163216331634163516361637163816391640164116421643164416451646164716481649165016511652165316541655165616571658165916601661166216631664166516661667166816691670167116721673167416751676167716781679168016811682168316841685168616871688168916901691169216931694169516961697169816991700170117021703170417051706170717081709171017111712171317141715171617171718171917201721172217231724172517261727172817291730173117321733173417351736173717381739174017411742174317441745174617471748174917501751175217531754175517561757175817591760176117621763176417651766176717681769177017711772177317741775177617771778177917801781178217831784178517861787178817891790179117921793179417951796179717981799180018011802180318041805180618071808180918101811181218131814181518161817181818191820182118221823182418251826182718281829183018311832183318341835183618371838183918401841184218431844184518461847184818491850185118521853185418551856185718581859186018611862186318641865186618671868186918701871187218731874187518761877187818791880188118821883188418851886188718881889189018911892189318941895189618971898189919001901190219031904190519061907190819091910191119121913191419151916191719181919192019211922192319241925192619271928192919301931193219331934193519361937193819391940194119421943194419451946194719481949195019511952195319541955195619571958195919601961196219631964196519661967196819691970197119721973197419751976197719781979198019811982198319841985198619871988198919901991199219931994199519961997199819992000200120022003200420052006200720082009201020112012201320142015201620172018201920202021202220232024202520262027202820292030203120322033203420352036203720382039204020412042204320442045204620472048204920502051205220532054205520562057205820592060206120622063206420652066206720682069207020712072207320742075207620772078207920802081208220832084208520862087208820892090209120922093209420952096209720982099210021012102210321042105210621072108210921102111211221132114211521162117211821192120212121222123212421252126212721282129213021312132213321342135213621372138213921402141214221432144214521462147214821492150215121522153215421552156215721582159216021612162216321642165216621672168216921702171217221732174217521762177217821792180218121822183218421852186218721882189219021912192219321942195219621972198219922002201220222032204220522062207220822092210221122122213221422152216221722182219222022212222222322242225222622272228222922302231223222332234223522362237223822392240224122422243224422452246224722482249225022512252225322542255225622572258225922602261226222632264226522662267226822692270227122722273227422752276227722782279228022812282228322842285228622872288228922902291229222932294229522962297229822992300230123022303230423052306230723082309231023112312231323142315231623172318231923202321232223232324232523262327232823292330233123322333233423352336233723382339234023412342234323442345234623472348234923502351235223532354235523562357235823592360236123622363236423652366236723682369237023712372237323742375237623772378237923802381238223832384238523862387238823892390239123922393239423952396239723982399240024012402240324042405240624072408240924102411241224132414241524162417241824192420242124222423242424252426242724282429243024312432243324342435243624372438243924402441244224432444244524462447244824492450245124522453245424552456245724582459246024612462246324642465246624672468246924702471247224732474247524762477247824792480248124822483248424852486248724882489249024912492249324942495249624972498249925002501250225032504250525062507250825092510251125122513251425152516251725182519252025212522252325242525252625272528252925302531253225332534253525362537253825392540254125422543254425452546254725482549255025512552255325542555255625572558255925602561256225632564256525662567256825692570257125722573257425752576257725782579258025812582258325842585258625872588258925902591259225932594259525962597259825992600260126022603260426052606260726082609261026112612261326142615261626172618261926202621262226232624262526262627262826292630263126322633263426352636263726382639264026412642264326442645264626472648264926502651265226532654265526562657265826592660266126622663266426652666266726682669267026712672267326742675267626772678267926802681268226832684268526862687268826892690269126922693269426952696269726982699270027012702270327042705270627072708270927102711271227132714271527162717271827192720272127222723272427252726272727282729273027312732273327342735273627372738273927402741274227432744274527462747274827492750275127522753275427552756275727582759276027612762276327642765276627672768276927702771277227732774277527762777277827792780278127822783278427852786278727882789279027912792279327942795279627972798279928002801280228032804280528062807280828092810281128122813281428152816281728182819282028212822282328242825282628272828282928302831283228332834283528362837283828392840284128422843284428452846284728482849285028512852285328542855285628572858285928602861286228632864286528662867286828692870287128722873287428752876287728782879288028812882288328842885288628872888288928902891289228932894289528962897289828992900290129022903290429052906290729082909291029112912291329142915291629172918291929202921292229232924292529262927292829292930293129322933293429352936293729382939294029412942294329442945294629472948294929502951295229532954295529562957295829592960296129622963296429652966296729682969297029712972297329742975297629772978297929802981298229832984298529862987298829892990299129922993299429952996299729982999300030013002300330043005300630073008300930103011301230133014301530163017301830193020302130223023302430253026302730283029303030313032303330343035303630373038 |
- :github_url: hide
- .. DO NOT EDIT THIS FILE!!!
- .. Generated automatically from Godot engine sources.
- .. Generator: https://github.com/godotengine/godot/tree/master/doc/tools/make_rst.py.
- .. XML source: https://github.com/godotengine/godot/tree/master/doc/classes/Node.xml.
- .. _class_Node:
- Node
- ====
- **Inherits:** :ref:`Object<class_Object>`
- **Inherited By:** :ref:`AnimationMixer<class_AnimationMixer>`, :ref:`AudioStreamPlayer<class_AudioStreamPlayer>`, :ref:`CanvasItem<class_CanvasItem>`, :ref:`CanvasLayer<class_CanvasLayer>`, :ref:`EditorFileSystem<class_EditorFileSystem>`, :ref:`EditorPlugin<class_EditorPlugin>`, :ref:`EditorResourcePreview<class_EditorResourcePreview>`, :ref:`HTTPRequest<class_HTTPRequest>`, :ref:`InstancePlaceholder<class_InstancePlaceholder>`, :ref:`MissingNode<class_MissingNode>`, :ref:`MultiplayerSpawner<class_MultiplayerSpawner>`, :ref:`MultiplayerSynchronizer<class_MultiplayerSynchronizer>`, :ref:`NavigationAgent2D<class_NavigationAgent2D>`, :ref:`NavigationAgent3D<class_NavigationAgent3D>`, :ref:`Node3D<class_Node3D>`, :ref:`ResourcePreloader<class_ResourcePreloader>`, :ref:`ShaderGlobalsOverride<class_ShaderGlobalsOverride>`, :ref:`StatusIndicator<class_StatusIndicator>`, :ref:`Timer<class_Timer>`, :ref:`Viewport<class_Viewport>`, :ref:`WorldEnvironment<class_WorldEnvironment>`
- Base class for all scene objects.
- .. rst-class:: classref-introduction-group
- Description
- -----------
- Nodes are Godot's building blocks. They can be assigned as the child of another node, resulting in a tree arrangement. A given node can contain any number of nodes as children with the requirement that all siblings (direct children of a node) should have unique names.
- A tree of nodes is called a *scene*. Scenes can be saved to the disk and then instantiated into other scenes. This allows for very high flexibility in the architecture and data model of Godot projects.
- \ **Scene tree:** The :ref:`SceneTree<class_SceneTree>` contains the active tree of nodes. When a node is added to the scene tree, it receives the :ref:`NOTIFICATION_ENTER_TREE<class_Node_constant_NOTIFICATION_ENTER_TREE>` notification and its :ref:`_enter_tree<class_Node_private_method__enter_tree>` callback is triggered. Child nodes are always added *after* their parent node, i.e. the :ref:`_enter_tree<class_Node_private_method__enter_tree>` callback of a parent node will be triggered before its child's.
- Once all nodes have been added in the scene tree, they receive the :ref:`NOTIFICATION_READY<class_Node_constant_NOTIFICATION_READY>` notification and their respective :ref:`_ready<class_Node_private_method__ready>` callbacks are triggered. For groups of nodes, the :ref:`_ready<class_Node_private_method__ready>` callback is called in reverse order, starting with the children and moving up to the parent nodes.
- This means that when adding a node to the scene tree, the following order will be used for the callbacks: :ref:`_enter_tree<class_Node_private_method__enter_tree>` of the parent, :ref:`_enter_tree<class_Node_private_method__enter_tree>` of the children, :ref:`_ready<class_Node_private_method__ready>` of the children and finally :ref:`_ready<class_Node_private_method__ready>` of the parent (recursively for the entire scene tree).
- \ **Processing:** Nodes can override the "process" state, so that they receive a callback on each frame requesting them to process (do something). Normal processing (callback :ref:`_process<class_Node_private_method__process>`, toggled with :ref:`set_process<class_Node_method_set_process>`) happens as fast as possible and is dependent on the frame rate, so the processing time *delta* (in seconds) is passed as an argument. Physics processing (callback :ref:`_physics_process<class_Node_private_method__physics_process>`, toggled with :ref:`set_physics_process<class_Node_method_set_physics_process>`) happens a fixed number of times per second (60 by default) and is useful for code related to the physics engine.
- Nodes can also process input events. When present, the :ref:`_input<class_Node_private_method__input>` function will be called for each input that the program receives. In many cases, this can be overkill (unless used for simple projects), and the :ref:`_unhandled_input<class_Node_private_method__unhandled_input>` function might be preferred; it is called when the input event was not handled by anyone else (typically, GUI :ref:`Control<class_Control>` nodes), ensuring that the node only receives the events that were meant for it.
- To keep track of the scene hierarchy (especially when instantiating scenes into other scenes), an "owner" can be set for the node with the :ref:`owner<class_Node_property_owner>` property. This keeps track of who instantiated what. This is mostly useful when writing editors and tools, though.
- Finally, when a node is freed with :ref:`Object.free<class_Object_method_free>` or :ref:`queue_free<class_Node_method_queue_free>`, it will also free all its children.
- \ **Groups:** Nodes can be added to as many groups as you want to be easy to manage, you could create groups like "enemies" or "collectables" for example, depending on your game. See :ref:`add_to_group<class_Node_method_add_to_group>`, :ref:`is_in_group<class_Node_method_is_in_group>` and :ref:`remove_from_group<class_Node_method_remove_from_group>`. You can then retrieve all nodes in these groups, iterate them and even call methods on groups via the methods on :ref:`SceneTree<class_SceneTree>`.
- \ **Networking with nodes:** After connecting to a server (or making one, see :ref:`ENetMultiplayerPeer<class_ENetMultiplayerPeer>`), it is possible to use the built-in RPC (remote procedure call) system to communicate over the network. By calling :ref:`rpc<class_Node_method_rpc>` with a method name, it will be called locally and in all connected peers (peers = clients and the server that accepts connections). To identify which node receives the RPC call, Godot will use its :ref:`NodePath<class_NodePath>` (make sure node names are the same on all peers). Also, take a look at the high-level networking tutorial and corresponding demos.
- \ **Note:** The ``script`` property is part of the :ref:`Object<class_Object>` class, not **Node**. It isn't exposed like most properties but does have a setter and getter (see :ref:`Object.set_script<class_Object_method_set_script>` and :ref:`Object.get_script<class_Object_method_get_script>`).
- .. rst-class:: classref-introduction-group
- Tutorials
- ---------
- - :doc:`Nodes and scenes <../getting_started/step_by_step/nodes_and_scenes>`
- - `All Demos <https://github.com/godotengine/godot-demo-projects/>`__
- .. rst-class:: classref-reftable-group
- Properties
- ----------
- .. table::
- :widths: auto
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` | :ref:`auto_translate_mode<class_Node_property_auto_translate_mode>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`String<class_String>` | :ref:`editor_description<class_Node_property_editor_description>` | ``""`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`MultiplayerAPI<class_MultiplayerAPI>` | :ref:`multiplayer<class_Node_property_multiplayer>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`StringName<class_StringName>` | :ref:`name<class_Node_property_name>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`Node<class_Node>` | :ref:`owner<class_Node_property_owner>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` | :ref:`physics_interpolation_mode<class_Node_property_physics_interpolation_mode>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`ProcessMode<enum_Node_ProcessMode>` | :ref:`process_mode<class_Node_property_process_mode>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`process_physics_priority<class_Node_property_process_physics_priority>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`process_priority<class_Node_property_process_priority>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` | :ref:`process_thread_group<class_Node_property_process_thread_group>` | ``0`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`int<class_int>` | :ref:`process_thread_group_order<class_Node_property_process_thread_group_order>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | |bitfield|\[:ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>`\] | :ref:`process_thread_messages<class_Node_property_process_thread_messages>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`String<class_String>` | :ref:`scene_file_path<class_Node_property_scene_file_path>` | |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- | :ref:`bool<class_bool>` | :ref:`unique_name_in_owner<class_Node_property_unique_name_in_owner>` | ``false`` |
- +-----------------------------------------------------------------------------+-----------------------------------------------------------------------------------+-----------+
- .. rst-class:: classref-reftable-group
- Methods
- -------
- .. table::
- :widths: auto
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_enter_tree<class_Node_private_method__enter_tree>`\ (\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_exit_tree<class_Node_private_method__exit_tree>`\ (\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`PackedStringArray<class_PackedStringArray>` | :ref:`_get_configuration_warnings<class_Node_private_method__get_configuration_warnings>`\ (\ ) |virtual| |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_input<class_Node_private_method__input>`\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_physics_process<class_Node_private_method__physics_process>`\ (\ delta\: :ref:`float<class_float>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_process<class_Node_private_method__process>`\ (\ delta\: :ref:`float<class_float>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_ready<class_Node_private_method__ready>`\ (\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_shortcut_input<class_Node_private_method__shortcut_input>`\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_unhandled_input<class_Node_private_method__unhandled_input>`\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>`\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`add_child<class_Node_method_add_child>`\ (\ node\: :ref:`Node<class_Node>`, force_readable_name\: :ref:`bool<class_bool>` = false, internal\: :ref:`InternalMode<enum_Node_InternalMode>` = 0\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`add_sibling<class_Node_method_add_sibling>`\ (\ sibling\: :ref:`Node<class_Node>`, force_readable_name\: :ref:`bool<class_bool>` = false\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`add_to_group<class_Node_method_add_to_group>`\ (\ group\: :ref:`StringName<class_StringName>`, persistent\: :ref:`bool<class_bool>` = false\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`atr<class_Node_method_atr>`\ (\ message\: :ref:`String<class_String>`, context\: :ref:`StringName<class_StringName>` = ""\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`atr_n<class_Node_method_atr_n>`\ (\ message\: :ref:`String<class_String>`, plural_message\: :ref:`StringName<class_StringName>`, n\: :ref:`int<class_int>`, context\: :ref:`StringName<class_StringName>` = ""\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>`\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`call_thread_safe<class_Node_method_call_thread_safe>`\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`can_process<class_Node_method_can_process>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Tween<class_Tween>` | :ref:`create_tween<class_Node_method_create_tween>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`duplicate<class_Node_method_duplicate>`\ (\ flags\: :ref:`int<class_int>` = 15\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`find_child<class_Node_method_find_child>`\ (\ pattern\: :ref:`String<class_String>`, recursive\: :ref:`bool<class_bool>` = true, owned\: :ref:`bool<class_bool>` = true\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] | :ref:`find_children<class_Node_method_find_children>`\ (\ pattern\: :ref:`String<class_String>`, type\: :ref:`String<class_String>` = "", recursive\: :ref:`bool<class_bool>` = true, owned\: :ref:`bool<class_bool>` = true\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`find_parent<class_Node_method_find_parent>`\ (\ pattern\: :ref:`String<class_String>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`get_child<class_Node_method_get_child>`\ (\ idx\: :ref:`int<class_int>`, include_internal\: :ref:`bool<class_bool>` = false\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_child_count<class_Node_method_get_child_count>`\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] | :ref:`get_children<class_Node_method_get_children>`\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] | :ref:`get_groups<class_Node_method_get_groups>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_index<class_Node_method_get_index>`\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Window<class_Window>` | :ref:`get_last_exclusive_window<class_Node_method_get_last_exclusive_window>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`int<class_int>` | :ref:`get_multiplayer_authority<class_Node_method_get_multiplayer_authority>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`get_node<class_Node_method_get_node>`\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Array<class_Array>` | :ref:`get_node_and_resource<class_Node_method_get_node_and_resource>`\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`get_node_or_null<class_Node_method_get_node_or_null>`\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Node<class_Node>` | :ref:`get_parent<class_Node_method_get_parent>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`NodePath<class_NodePath>` | :ref:`get_path<class_Node_method_get_path>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`NodePath<class_NodePath>` | :ref:`get_path_to<class_Node_method_get_path_to>`\ (\ node\: :ref:`Node<class_Node>`, use_unique_path\: :ref:`bool<class_bool>` = false\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_physics_process_delta_time<class_Node_method_get_physics_process_delta_time>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`float<class_float>` | :ref:`get_process_delta_time<class_Node_method_get_process_delta_time>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Variant<class_Variant>` | :ref:`get_rpc_config<class_Node_method_get_rpc_config>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`get_scene_instance_load_placeholder<class_Node_method_get_scene_instance_load_placeholder>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`SceneTree<class_SceneTree>` | :ref:`get_tree<class_Node_method_get_tree>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tree_string<class_Node_method_get_tree_string>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`String<class_String>` | :ref:`get_tree_string_pretty<class_Node_method_get_tree_string_pretty>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Viewport<class_Viewport>` | :ref:`get_viewport<class_Node_method_get_viewport>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Window<class_Window>` | :ref:`get_window<class_Node_method_get_window>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_node<class_Node_method_has_node>`\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`has_node_and_resource<class_Node_method_has_node_and_resource>`\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_ancestor_of<class_Node_method_is_ancestor_of>`\ (\ node\: :ref:`Node<class_Node>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_displayed_folded<class_Node_method_is_displayed_folded>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_editable_instance<class_Node_method_is_editable_instance>`\ (\ node\: :ref:`Node<class_Node>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_greater_than<class_Node_method_is_greater_than>`\ (\ node\: :ref:`Node<class_Node>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_in_group<class_Node_method_is_in_group>`\ (\ group\: :ref:`StringName<class_StringName>`\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_inside_tree<class_Node_method_is_inside_tree>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_multiplayer_authority<class_Node_method_is_multiplayer_authority>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_node_ready<class_Node_method_is_node_ready>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_part_of_edited_scene<class_Node_method_is_part_of_edited_scene>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_physics_interpolated<class_Node_method_is_physics_interpolated>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_physics_interpolated_and_enabled<class_Node_method_is_physics_interpolated_and_enabled>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_physics_processing<class_Node_method_is_physics_processing>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_physics_processing_internal<class_Node_method_is_physics_processing_internal>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing<class_Node_method_is_processing>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing_input<class_Node_method_is_processing_input>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing_internal<class_Node_method_is_processing_internal>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing_shortcut_input<class_Node_method_is_processing_shortcut_input>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing_unhandled_input<class_Node_method_is_processing_unhandled_input>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`bool<class_bool>` | :ref:`is_processing_unhandled_key_input<class_Node_method_is_processing_unhandled_key_input>`\ (\ ) |const| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`move_child<class_Node_method_move_child>`\ (\ child_node\: :ref:`Node<class_Node>`, to_index\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`notify_deferred_thread_group<class_Node_method_notify_deferred_thread_group>`\ (\ what\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`notify_thread_safe<class_Node_method_notify_thread_safe>`\ (\ what\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`print_orphan_nodes<class_Node_method_print_orphan_nodes>`\ (\ ) |static| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`print_tree<class_Node_method_print_tree>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`print_tree_pretty<class_Node_method_print_tree_pretty>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`propagate_call<class_Node_method_propagate_call>`\ (\ method\: :ref:`StringName<class_StringName>`, args\: :ref:`Array<class_Array>` = [], parent_first\: :ref:`bool<class_bool>` = false\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`propagate_notification<class_Node_method_propagate_notification>`\ (\ what\: :ref:`int<class_int>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`queue_free<class_Node_method_queue_free>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`remove_child<class_Node_method_remove_child>`\ (\ node\: :ref:`Node<class_Node>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`remove_from_group<class_Node_method_remove_from_group>`\ (\ group\: :ref:`StringName<class_StringName>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`reparent<class_Node_method_reparent>`\ (\ new_parent\: :ref:`Node<class_Node>`, keep_global_transform\: :ref:`bool<class_bool>` = true\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`replace_by<class_Node_method_replace_by>`\ (\ node\: :ref:`Node<class_Node>`, keep_groups\: :ref:`bool<class_bool>` = false\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`request_ready<class_Node_method_request_ready>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`reset_physics_interpolation<class_Node_method_reset_physics_interpolation>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`rpc<class_Node_method_rpc>`\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`rpc_config<class_Node_method_rpc_config>`\ (\ method\: :ref:`StringName<class_StringName>`, config\: :ref:`Variant<class_Variant>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | :ref:`Error<enum_@GlobalScope_Error>` | :ref:`rpc_id<class_Node_method_rpc_id>`\ (\ peer_id\: :ref:`int<class_int>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_deferred_thread_group<class_Node_method_set_deferred_thread_group>`\ (\ property\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_display_folded<class_Node_method_set_display_folded>`\ (\ fold\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_editable_instance<class_Node_method_set_editable_instance>`\ (\ node\: :ref:`Node<class_Node>`, is_editable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_multiplayer_authority<class_Node_method_set_multiplayer_authority>`\ (\ id\: :ref:`int<class_int>`, recursive\: :ref:`bool<class_bool>` = true\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_physics_process<class_Node_method_set_physics_process>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_physics_process_internal<class_Node_method_set_physics_process_internal>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process<class_Node_method_set_process>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process_input<class_Node_method_set_process_input>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process_internal<class_Node_method_set_process_internal>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process_shortcut_input<class_Node_method_set_process_shortcut_input>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process_unhandled_input<class_Node_method_set_process_unhandled_input>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_process_unhandled_key_input<class_Node_method_set_process_unhandled_key_input>`\ (\ enable\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_scene_instance_load_placeholder<class_Node_method_set_scene_instance_load_placeholder>`\ (\ load_placeholder\: :ref:`bool<class_bool>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_thread_safe<class_Node_method_set_thread_safe>`\ (\ property\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`set_translation_domain_inherited<class_Node_method_set_translation_domain_inherited>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- | |void| | :ref:`update_configuration_warnings<class_Node_method_update_configuration_warnings>`\ (\ ) |
- +------------------------------------------------------------------+-----------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------+
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Signals
- -------
- .. _class_Node_signal_child_entered_tree:
- .. rst-class:: classref-signal
- **child_entered_tree**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`๐<class_Node_signal_child_entered_tree>`
- Emitted when the child ``node`` enters the :ref:`SceneTree<class_SceneTree>`, usually because this node entered the tree (see :ref:`tree_entered<class_Node_signal_tree_entered>`), or :ref:`add_child<class_Node_method_add_child>` has been called.
- This signal is emitted *after* the child node's own :ref:`NOTIFICATION_ENTER_TREE<class_Node_constant_NOTIFICATION_ENTER_TREE>` and :ref:`tree_entered<class_Node_signal_tree_entered>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_child_exiting_tree:
- .. rst-class:: classref-signal
- **child_exiting_tree**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`๐<class_Node_signal_child_exiting_tree>`
- Emitted when the child ``node`` is about to exit the :ref:`SceneTree<class_SceneTree>`, usually because this node is exiting the tree (see :ref:`tree_exiting<class_Node_signal_tree_exiting>`), or because the child ``node`` is being removed or freed.
- When this signal is received, the child ``node`` is still accessible inside the tree. This signal is emitted *after* the child node's own :ref:`tree_exiting<class_Node_signal_tree_exiting>` and :ref:`NOTIFICATION_EXIT_TREE<class_Node_constant_NOTIFICATION_EXIT_TREE>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_child_order_changed:
- .. rst-class:: classref-signal
- **child_order_changed**\ (\ ) :ref:`๐<class_Node_signal_child_order_changed>`
- Emitted when the list of children is changed. This happens when child nodes are added, moved or removed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_editor_description_changed:
- .. rst-class:: classref-signal
- **editor_description_changed**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`๐<class_Node_signal_editor_description_changed>`
- Emitted when the node's editor description field changed.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_ready:
- .. rst-class:: classref-signal
- **ready**\ (\ ) :ref:`๐<class_Node_signal_ready>`
- Emitted when the node is considered ready, after :ref:`_ready<class_Node_private_method__ready>` is called.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_renamed:
- .. rst-class:: classref-signal
- **renamed**\ (\ ) :ref:`๐<class_Node_signal_renamed>`
- Emitted when the node's :ref:`name<class_Node_property_name>` is changed, if the node is inside the tree.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_replacing_by:
- .. rst-class:: classref-signal
- **replacing_by**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`๐<class_Node_signal_replacing_by>`
- Emitted when this node is being replaced by the ``node``, see :ref:`replace_by<class_Node_method_replace_by>`.
- This signal is emitted *after* ``node`` has been added as a child of the original parent node, but *before* all original child nodes have been reparented to ``node``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_tree_entered:
- .. rst-class:: classref-signal
- **tree_entered**\ (\ ) :ref:`๐<class_Node_signal_tree_entered>`
- Emitted when the node enters the tree.
- This signal is emitted *after* the related :ref:`NOTIFICATION_ENTER_TREE<class_Node_constant_NOTIFICATION_ENTER_TREE>` notification.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_tree_exited:
- .. rst-class:: classref-signal
- **tree_exited**\ (\ ) :ref:`๐<class_Node_signal_tree_exited>`
- Emitted after the node exits the tree and is no longer active.
- This signal is emitted *after* the related :ref:`NOTIFICATION_EXIT_TREE<class_Node_constant_NOTIFICATION_EXIT_TREE>` notification.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_signal_tree_exiting:
- .. rst-class:: classref-signal
- **tree_exiting**\ (\ ) :ref:`๐<class_Node_signal_tree_exiting>`
- Emitted when the node is just about to exit the tree. The node is still valid. As such, this is the right place for de-initialization (or a "destructor", if you will).
- This signal is emitted *after* the node's :ref:`_exit_tree<class_Node_private_method__exit_tree>`, and *before* the related :ref:`NOTIFICATION_EXIT_TREE<class_Node_constant_NOTIFICATION_EXIT_TREE>`.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Enumerations
- ------------
- .. _enum_Node_ProcessMode:
- .. rst-class:: classref-enumeration
- enum **ProcessMode**: :ref:`๐<enum_Node_ProcessMode>`
- .. _class_Node_constant_PROCESS_MODE_INHERIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessMode<enum_Node_ProcessMode>` **PROCESS_MODE_INHERIT** = ``0``
- Inherits :ref:`process_mode<class_Node_property_process_mode>` from the node's parent. This is the default for any newly created node.
- .. _class_Node_constant_PROCESS_MODE_PAUSABLE:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessMode<enum_Node_ProcessMode>` **PROCESS_MODE_PAUSABLE** = ``1``
- Stops processing when :ref:`SceneTree.paused<class_SceneTree_property_paused>` is ``true``. This is the inverse of :ref:`PROCESS_MODE_WHEN_PAUSED<class_Node_constant_PROCESS_MODE_WHEN_PAUSED>`, and the default for the root node.
- .. _class_Node_constant_PROCESS_MODE_WHEN_PAUSED:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessMode<enum_Node_ProcessMode>` **PROCESS_MODE_WHEN_PAUSED** = ``2``
- Process **only** when :ref:`SceneTree.paused<class_SceneTree_property_paused>` is ``true``. This is the inverse of :ref:`PROCESS_MODE_PAUSABLE<class_Node_constant_PROCESS_MODE_PAUSABLE>`.
- .. _class_Node_constant_PROCESS_MODE_ALWAYS:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessMode<enum_Node_ProcessMode>` **PROCESS_MODE_ALWAYS** = ``3``
- Always process. Keeps processing, ignoring :ref:`SceneTree.paused<class_SceneTree_property_paused>`. This is the inverse of :ref:`PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`.
- .. _class_Node_constant_PROCESS_MODE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessMode<enum_Node_ProcessMode>` **PROCESS_MODE_DISABLED** = ``4``
- Never process. Completely disables processing, ignoring :ref:`SceneTree.paused<class_SceneTree_property_paused>`. This is the inverse of :ref:`PROCESS_MODE_ALWAYS<class_Node_constant_PROCESS_MODE_ALWAYS>`.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_ProcessThreadGroup:
- .. rst-class:: classref-enumeration
- enum **ProcessThreadGroup**: :ref:`๐<enum_Node_ProcessThreadGroup>`
- .. _class_Node_constant_PROCESS_THREAD_GROUP_INHERIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` **PROCESS_THREAD_GROUP_INHERIT** = ``0``
- Process this node based on the thread group mode of the first parent (or grandparent) node that has a thread group mode that is not inherit. See :ref:`process_thread_group<class_Node_property_process_thread_group>` for more information.
- .. _class_Node_constant_PROCESS_THREAD_GROUP_MAIN_THREAD:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` **PROCESS_THREAD_GROUP_MAIN_THREAD** = ``1``
- Process this node (and child nodes set to inherit) on the main thread. See :ref:`process_thread_group<class_Node_property_process_thread_group>` for more information.
- .. _class_Node_constant_PROCESS_THREAD_GROUP_SUB_THREAD:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` **PROCESS_THREAD_GROUP_SUB_THREAD** = ``2``
- Process this node (and child nodes set to inherit) on a sub-thread. See :ref:`process_thread_group<class_Node_property_process_thread_group>` for more information.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_ProcessThreadMessages:
- .. rst-class:: classref-enumeration
- flags **ProcessThreadMessages**: :ref:`๐<enum_Node_ProcessThreadMessages>`
- .. _class_Node_constant_FLAG_PROCESS_THREAD_MESSAGES:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>` **FLAG_PROCESS_THREAD_MESSAGES** = ``1``
- Allows this node to process threaded messages created with :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>` right before :ref:`_process<class_Node_private_method__process>` is called.
- .. _class_Node_constant_FLAG_PROCESS_THREAD_MESSAGES_PHYSICS:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>` **FLAG_PROCESS_THREAD_MESSAGES_PHYSICS** = ``2``
- Allows this node to process threaded messages created with :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>` right before :ref:`_physics_process<class_Node_private_method__physics_process>` is called.
- .. _class_Node_constant_FLAG_PROCESS_THREAD_MESSAGES_ALL:
- .. rst-class:: classref-enumeration-constant
- :ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>` **FLAG_PROCESS_THREAD_MESSAGES_ALL** = ``3``
- Allows this node to process threaded messages created with :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>` right before either :ref:`_process<class_Node_private_method__process>` or :ref:`_physics_process<class_Node_private_method__physics_process>` are called.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_PhysicsInterpolationMode:
- .. rst-class:: classref-enumeration
- enum **PhysicsInterpolationMode**: :ref:`๐<enum_Node_PhysicsInterpolationMode>`
- .. _class_Node_constant_PHYSICS_INTERPOLATION_MODE_INHERIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` **PHYSICS_INTERPOLATION_MODE_INHERIT** = ``0``
- Inherits :ref:`physics_interpolation_mode<class_Node_property_physics_interpolation_mode>` from the node's parent. This is the default for any newly created node.
- .. _class_Node_constant_PHYSICS_INTERPOLATION_MODE_ON:
- .. rst-class:: classref-enumeration-constant
- :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` **PHYSICS_INTERPOLATION_MODE_ON** = ``1``
- Enables physics interpolation for this node and for children set to :ref:`PHYSICS_INTERPOLATION_MODE_INHERIT<class_Node_constant_PHYSICS_INTERPOLATION_MODE_INHERIT>`. This is the default for the root node.
- .. _class_Node_constant_PHYSICS_INTERPOLATION_MODE_OFF:
- .. rst-class:: classref-enumeration-constant
- :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` **PHYSICS_INTERPOLATION_MODE_OFF** = ``2``
- Disables physics interpolation for this node and for children set to :ref:`PHYSICS_INTERPOLATION_MODE_INHERIT<class_Node_constant_PHYSICS_INTERPOLATION_MODE_INHERIT>`.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_DuplicateFlags:
- .. rst-class:: classref-enumeration
- enum **DuplicateFlags**: :ref:`๐<enum_Node_DuplicateFlags>`
- .. _class_Node_constant_DUPLICATE_SIGNALS:
- .. rst-class:: classref-enumeration-constant
- :ref:`DuplicateFlags<enum_Node_DuplicateFlags>` **DUPLICATE_SIGNALS** = ``1``
- Duplicate the node's signal connections.
- .. _class_Node_constant_DUPLICATE_GROUPS:
- .. rst-class:: classref-enumeration-constant
- :ref:`DuplicateFlags<enum_Node_DuplicateFlags>` **DUPLICATE_GROUPS** = ``2``
- Duplicate the node's groups.
- .. _class_Node_constant_DUPLICATE_SCRIPTS:
- .. rst-class:: classref-enumeration-constant
- :ref:`DuplicateFlags<enum_Node_DuplicateFlags>` **DUPLICATE_SCRIPTS** = ``4``
- Duplicate the node's script (also overriding the duplicated children's scripts, if combined with :ref:`DUPLICATE_USE_INSTANTIATION<class_Node_constant_DUPLICATE_USE_INSTANTIATION>`).
- .. _class_Node_constant_DUPLICATE_USE_INSTANTIATION:
- .. rst-class:: classref-enumeration-constant
- :ref:`DuplicateFlags<enum_Node_DuplicateFlags>` **DUPLICATE_USE_INSTANTIATION** = ``8``
- Duplicate using :ref:`PackedScene.instantiate<class_PackedScene_method_instantiate>`. If the node comes from a scene saved on disk, re-uses :ref:`PackedScene.instantiate<class_PackedScene_method_instantiate>` as the base for the duplicated node and its children.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_InternalMode:
- .. rst-class:: classref-enumeration
- enum **InternalMode**: :ref:`๐<enum_Node_InternalMode>`
- .. _class_Node_constant_INTERNAL_MODE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`InternalMode<enum_Node_InternalMode>` **INTERNAL_MODE_DISABLED** = ``0``
- The node will not be internal.
- .. _class_Node_constant_INTERNAL_MODE_FRONT:
- .. rst-class:: classref-enumeration-constant
- :ref:`InternalMode<enum_Node_InternalMode>` **INTERNAL_MODE_FRONT** = ``1``
- The node will be placed at the beginning of the parent's children, before any non-internal sibling.
- .. _class_Node_constant_INTERNAL_MODE_BACK:
- .. rst-class:: classref-enumeration-constant
- :ref:`InternalMode<enum_Node_InternalMode>` **INTERNAL_MODE_BACK** = ``2``
- The node will be placed at the end of the parent's children, after any non-internal sibling.
- .. rst-class:: classref-item-separator
- ----
- .. _enum_Node_AutoTranslateMode:
- .. rst-class:: classref-enumeration
- enum **AutoTranslateMode**: :ref:`๐<enum_Node_AutoTranslateMode>`
- .. _class_Node_constant_AUTO_TRANSLATE_MODE_INHERIT:
- .. rst-class:: classref-enumeration-constant
- :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **AUTO_TRANSLATE_MODE_INHERIT** = ``0``
- Inherits :ref:`auto_translate_mode<class_Node_property_auto_translate_mode>` from the node's parent. This is the default for any newly created node.
- .. _class_Node_constant_AUTO_TRANSLATE_MODE_ALWAYS:
- .. rst-class:: classref-enumeration-constant
- :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **AUTO_TRANSLATE_MODE_ALWAYS** = ``1``
- Always automatically translate. This is the inverse of :ref:`AUTO_TRANSLATE_MODE_DISABLED<class_Node_constant_AUTO_TRANSLATE_MODE_DISABLED>`, and the default for the root node.
- .. _class_Node_constant_AUTO_TRANSLATE_MODE_DISABLED:
- .. rst-class:: classref-enumeration-constant
- :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **AUTO_TRANSLATE_MODE_DISABLED** = ``2``
- Never automatically translate. This is the inverse of :ref:`AUTO_TRANSLATE_MODE_ALWAYS<class_Node_constant_AUTO_TRANSLATE_MODE_ALWAYS>`.
- String parsing for POT generation will be skipped for this node and children that are set to :ref:`AUTO_TRANSLATE_MODE_INHERIT<class_Node_constant_AUTO_TRANSLATE_MODE_INHERIT>`.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Constants
- ---------
- .. _class_Node_constant_NOTIFICATION_ENTER_TREE:
- .. rst-class:: classref-constant
- **NOTIFICATION_ENTER_TREE** = ``10`` :ref:`๐<class_Node_constant_NOTIFICATION_ENTER_TREE>`
- Notification received when the node enters a :ref:`SceneTree<class_SceneTree>`. See :ref:`_enter_tree<class_Node_private_method__enter_tree>`.
- This notification is received *before* the related :ref:`tree_entered<class_Node_signal_tree_entered>` signal.
- .. _class_Node_constant_NOTIFICATION_EXIT_TREE:
- .. rst-class:: classref-constant
- **NOTIFICATION_EXIT_TREE** = ``11`` :ref:`๐<class_Node_constant_NOTIFICATION_EXIT_TREE>`
- Notification received when the node is about to exit a :ref:`SceneTree<class_SceneTree>`. See :ref:`_exit_tree<class_Node_private_method__exit_tree>`.
- This notification is received *after* the related :ref:`tree_exiting<class_Node_signal_tree_exiting>` signal.
- .. _class_Node_constant_NOTIFICATION_MOVED_IN_PARENT:
- .. rst-class:: classref-constant
- **NOTIFICATION_MOVED_IN_PARENT** = ``12`` :ref:`๐<class_Node_constant_NOTIFICATION_MOVED_IN_PARENT>`
- **Deprecated:** This notification is no longer sent by the engine. Use :ref:`NOTIFICATION_CHILD_ORDER_CHANGED<class_Node_constant_NOTIFICATION_CHILD_ORDER_CHANGED>` instead.
- .. _class_Node_constant_NOTIFICATION_READY:
- .. rst-class:: classref-constant
- **NOTIFICATION_READY** = ``13`` :ref:`๐<class_Node_constant_NOTIFICATION_READY>`
- Notification received when the node is ready. See :ref:`_ready<class_Node_private_method__ready>`.
- .. _class_Node_constant_NOTIFICATION_PAUSED:
- .. rst-class:: classref-constant
- **NOTIFICATION_PAUSED** = ``14`` :ref:`๐<class_Node_constant_NOTIFICATION_PAUSED>`
- Notification received when the node is paused. See :ref:`process_mode<class_Node_property_process_mode>`.
- .. _class_Node_constant_NOTIFICATION_UNPAUSED:
- .. rst-class:: classref-constant
- **NOTIFICATION_UNPAUSED** = ``15`` :ref:`๐<class_Node_constant_NOTIFICATION_UNPAUSED>`
- Notification received when the node is unpaused. See :ref:`process_mode<class_Node_property_process_mode>`.
- .. _class_Node_constant_NOTIFICATION_PHYSICS_PROCESS:
- .. rst-class:: classref-constant
- **NOTIFICATION_PHYSICS_PROCESS** = ``16`` :ref:`๐<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>`
- Notification received from the tree every physics frame when :ref:`is_physics_processing<class_Node_method_is_physics_processing>` returns ``true``. See :ref:`_physics_process<class_Node_private_method__physics_process>`.
- .. _class_Node_constant_NOTIFICATION_PROCESS:
- .. rst-class:: classref-constant
- **NOTIFICATION_PROCESS** = ``17`` :ref:`๐<class_Node_constant_NOTIFICATION_PROCESS>`
- Notification received from the tree every rendered frame when :ref:`is_processing<class_Node_method_is_processing>` returns ``true``. See :ref:`_process<class_Node_private_method__process>`.
- .. _class_Node_constant_NOTIFICATION_PARENTED:
- .. rst-class:: classref-constant
- **NOTIFICATION_PARENTED** = ``18`` :ref:`๐<class_Node_constant_NOTIFICATION_PARENTED>`
- Notification received when the node is set as a child of another node (see :ref:`add_child<class_Node_method_add_child>` and :ref:`add_sibling<class_Node_method_add_sibling>`).
- \ **Note:** This does *not* mean that the node entered the :ref:`SceneTree<class_SceneTree>`.
- .. _class_Node_constant_NOTIFICATION_UNPARENTED:
- .. rst-class:: classref-constant
- **NOTIFICATION_UNPARENTED** = ``19`` :ref:`๐<class_Node_constant_NOTIFICATION_UNPARENTED>`
- Notification received when the parent node calls :ref:`remove_child<class_Node_method_remove_child>` on this node.
- \ **Note:** This does *not* mean that the node exited the :ref:`SceneTree<class_SceneTree>`.
- .. _class_Node_constant_NOTIFICATION_SCENE_INSTANTIATED:
- .. rst-class:: classref-constant
- **NOTIFICATION_SCENE_INSTANTIATED** = ``20`` :ref:`๐<class_Node_constant_NOTIFICATION_SCENE_INSTANTIATED>`
- Notification received *only* by the newly instantiated scene root node, when :ref:`PackedScene.instantiate<class_PackedScene_method_instantiate>` is completed.
- .. _class_Node_constant_NOTIFICATION_DRAG_BEGIN:
- .. rst-class:: classref-constant
- **NOTIFICATION_DRAG_BEGIN** = ``21`` :ref:`๐<class_Node_constant_NOTIFICATION_DRAG_BEGIN>`
- Notification received when a drag operation begins. All nodes receive this notification, not only the dragged one.
- Can be triggered either by dragging a :ref:`Control<class_Control>` that provides drag data (see :ref:`Control._get_drag_data<class_Control_private_method__get_drag_data>`) or using :ref:`Control.force_drag<class_Control_method_force_drag>`.
- Use :ref:`Viewport.gui_get_drag_data<class_Viewport_method_gui_get_drag_data>` to get the dragged data.
- .. _class_Node_constant_NOTIFICATION_DRAG_END:
- .. rst-class:: classref-constant
- **NOTIFICATION_DRAG_END** = ``22`` :ref:`๐<class_Node_constant_NOTIFICATION_DRAG_END>`
- Notification received when a drag operation ends.
- Use :ref:`Viewport.gui_is_drag_successful<class_Viewport_method_gui_is_drag_successful>` to check if the drag succeeded.
- .. _class_Node_constant_NOTIFICATION_PATH_RENAMED:
- .. rst-class:: classref-constant
- **NOTIFICATION_PATH_RENAMED** = ``23`` :ref:`๐<class_Node_constant_NOTIFICATION_PATH_RENAMED>`
- Notification received when the node's :ref:`name<class_Node_property_name>` or one of its ancestors' :ref:`name<class_Node_property_name>` is changed. This notification is *not* received when the node is removed from the :ref:`SceneTree<class_SceneTree>`.
- .. _class_Node_constant_NOTIFICATION_CHILD_ORDER_CHANGED:
- .. rst-class:: classref-constant
- **NOTIFICATION_CHILD_ORDER_CHANGED** = ``24`` :ref:`๐<class_Node_constant_NOTIFICATION_CHILD_ORDER_CHANGED>`
- Notification received when the list of children is changed. This happens when child nodes are added, moved or removed.
- .. _class_Node_constant_NOTIFICATION_INTERNAL_PROCESS:
- .. rst-class:: classref-constant
- **NOTIFICATION_INTERNAL_PROCESS** = ``25`` :ref:`๐<class_Node_constant_NOTIFICATION_INTERNAL_PROCESS>`
- Notification received from the tree every rendered frame when :ref:`is_processing_internal<class_Node_method_is_processing_internal>` returns ``true``.
- .. _class_Node_constant_NOTIFICATION_INTERNAL_PHYSICS_PROCESS:
- .. rst-class:: classref-constant
- **NOTIFICATION_INTERNAL_PHYSICS_PROCESS** = ``26`` :ref:`๐<class_Node_constant_NOTIFICATION_INTERNAL_PHYSICS_PROCESS>`
- Notification received from the tree every physics frame when :ref:`is_physics_processing_internal<class_Node_method_is_physics_processing_internal>` returns ``true``.
- .. _class_Node_constant_NOTIFICATION_POST_ENTER_TREE:
- .. rst-class:: classref-constant
- **NOTIFICATION_POST_ENTER_TREE** = ``27`` :ref:`๐<class_Node_constant_NOTIFICATION_POST_ENTER_TREE>`
- Notification received when the node enters the tree, just before :ref:`NOTIFICATION_READY<class_Node_constant_NOTIFICATION_READY>` may be received. Unlike the latter, it is sent every time the node enters tree, not just once.
- .. _class_Node_constant_NOTIFICATION_DISABLED:
- .. rst-class:: classref-constant
- **NOTIFICATION_DISABLED** = ``28`` :ref:`๐<class_Node_constant_NOTIFICATION_DISABLED>`
- Notification received when the node is disabled. See :ref:`PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`.
- .. _class_Node_constant_NOTIFICATION_ENABLED:
- .. rst-class:: classref-constant
- **NOTIFICATION_ENABLED** = ``29`` :ref:`๐<class_Node_constant_NOTIFICATION_ENABLED>`
- Notification received when the node is enabled again after being disabled. See :ref:`PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`.
- .. _class_Node_constant_NOTIFICATION_RESET_PHYSICS_INTERPOLATION:
- .. rst-class:: classref-constant
- **NOTIFICATION_RESET_PHYSICS_INTERPOLATION** = ``2001`` :ref:`๐<class_Node_constant_NOTIFICATION_RESET_PHYSICS_INTERPOLATION>`
- Notification received when :ref:`reset_physics_interpolation<class_Node_method_reset_physics_interpolation>` is called on the node or its ancestors.
- .. _class_Node_constant_NOTIFICATION_EDITOR_PRE_SAVE:
- .. rst-class:: classref-constant
- **NOTIFICATION_EDITOR_PRE_SAVE** = ``9001`` :ref:`๐<class_Node_constant_NOTIFICATION_EDITOR_PRE_SAVE>`
- Notification received right before the scene with the node is saved in the editor. This notification is only sent in the Godot editor and will not occur in exported projects.
- .. _class_Node_constant_NOTIFICATION_EDITOR_POST_SAVE:
- .. rst-class:: classref-constant
- **NOTIFICATION_EDITOR_POST_SAVE** = ``9002`` :ref:`๐<class_Node_constant_NOTIFICATION_EDITOR_POST_SAVE>`
- Notification received right after the scene with the node is saved in the editor. This notification is only sent in the Godot editor and will not occur in exported projects.
- .. _class_Node_constant_NOTIFICATION_WM_MOUSE_ENTER:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_MOUSE_ENTER** = ``1002`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_MOUSE_ENTER>`
- Notification received when the mouse enters the window.
- Implemented for embedded windows and on desktop and web platforms.
- .. _class_Node_constant_NOTIFICATION_WM_MOUSE_EXIT:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_MOUSE_EXIT** = ``1003`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_MOUSE_EXIT>`
- Notification received when the mouse leaves the window.
- Implemented for embedded windows and on desktop and web platforms.
- .. _class_Node_constant_NOTIFICATION_WM_WINDOW_FOCUS_IN:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_WINDOW_FOCUS_IN** = ``1004`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_WINDOW_FOCUS_IN>`
- Notification received from the OS when the node's :ref:`Window<class_Window>` ancestor is focused. This may be a change of focus between two windows of the same engine instance, or from the OS desktop or a third-party application to a window of the game (in which case :ref:`NOTIFICATION_APPLICATION_FOCUS_IN<class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_IN>` is also received).
- A :ref:`Window<class_Window>` node receives this notification when it is focused.
- .. _class_Node_constant_NOTIFICATION_WM_WINDOW_FOCUS_OUT:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_WINDOW_FOCUS_OUT** = ``1005`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_WINDOW_FOCUS_OUT>`
- Notification received from the OS when the node's :ref:`Window<class_Window>` ancestor is defocused. This may be a change of focus between two windows of the same engine instance, or from a window of the game to the OS desktop or a third-party application (in which case :ref:`NOTIFICATION_APPLICATION_FOCUS_OUT<class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_OUT>` is also received).
- A :ref:`Window<class_Window>` node receives this notification when it is defocused.
- .. _class_Node_constant_NOTIFICATION_WM_CLOSE_REQUEST:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_CLOSE_REQUEST** = ``1006`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_CLOSE_REQUEST>`
- Notification received from the OS when a close request is sent (e.g. closing the window with a "Close" button or :kbd:`Alt + F4`).
- Implemented on desktop platforms.
- .. _class_Node_constant_NOTIFICATION_WM_GO_BACK_REQUEST:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_GO_BACK_REQUEST** = ``1007`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_GO_BACK_REQUEST>`
- Notification received from the OS when a go back request is sent (e.g. pressing the "Back" button on Android).
- Implemented only on Android.
- .. _class_Node_constant_NOTIFICATION_WM_SIZE_CHANGED:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_SIZE_CHANGED** = ``1008`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_SIZE_CHANGED>`
- Notification received when the window is resized.
- \ **Note:** Only the resized :ref:`Window<class_Window>` node receives this notification, and it's not propagated to the child nodes.
- .. _class_Node_constant_NOTIFICATION_WM_DPI_CHANGE:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_DPI_CHANGE** = ``1009`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_DPI_CHANGE>`
- Notification received from the OS when the screen's dots per inch (DPI) scale is changed. Only implemented on macOS.
- .. _class_Node_constant_NOTIFICATION_VP_MOUSE_ENTER:
- .. rst-class:: classref-constant
- **NOTIFICATION_VP_MOUSE_ENTER** = ``1010`` :ref:`๐<class_Node_constant_NOTIFICATION_VP_MOUSE_ENTER>`
- Notification received when the mouse cursor enters the :ref:`Viewport<class_Viewport>`'s visible area, that is not occluded behind other :ref:`Control<class_Control>`\ s or :ref:`Window<class_Window>`\ s, provided its :ref:`Viewport.gui_disable_input<class_Viewport_property_gui_disable_input>` is ``false`` and regardless if it's currently focused or not.
- .. _class_Node_constant_NOTIFICATION_VP_MOUSE_EXIT:
- .. rst-class:: classref-constant
- **NOTIFICATION_VP_MOUSE_EXIT** = ``1011`` :ref:`๐<class_Node_constant_NOTIFICATION_VP_MOUSE_EXIT>`
- Notification received when the mouse cursor leaves the :ref:`Viewport<class_Viewport>`'s visible area, that is not occluded behind other :ref:`Control<class_Control>`\ s or :ref:`Window<class_Window>`\ s, provided its :ref:`Viewport.gui_disable_input<class_Viewport_property_gui_disable_input>` is ``false`` and regardless if it's currently focused or not.
- .. _class_Node_constant_NOTIFICATION_OS_MEMORY_WARNING:
- .. rst-class:: classref-constant
- **NOTIFICATION_OS_MEMORY_WARNING** = ``2009`` :ref:`๐<class_Node_constant_NOTIFICATION_OS_MEMORY_WARNING>`
- Notification received from the OS when the application is exceeding its allocated memory.
- Implemented only on iOS.
- .. _class_Node_constant_NOTIFICATION_TRANSLATION_CHANGED:
- .. rst-class:: classref-constant
- **NOTIFICATION_TRANSLATION_CHANGED** = ``2010`` :ref:`๐<class_Node_constant_NOTIFICATION_TRANSLATION_CHANGED>`
- Notification received when translations may have changed. Can be triggered by the user changing the locale, changing :ref:`auto_translate_mode<class_Node_property_auto_translate_mode>` or when the node enters the scene tree. Can be used to respond to language changes, for example to change the UI strings on the fly. Useful when working with the built-in translation support, like :ref:`Object.tr<class_Object_method_tr>`.
- \ **Note:** This notification is received alongside :ref:`NOTIFICATION_ENTER_TREE<class_Node_constant_NOTIFICATION_ENTER_TREE>`, so if you are instantiating a scene, the child nodes will not be initialized yet. You can use it to setup translations for this node, child nodes created from script, or if you want to access child nodes added in the editor, make sure the node is ready using :ref:`is_node_ready<class_Node_method_is_node_ready>`.
- ::
- func _notification(what):
- if what == NOTIFICATION_TRANSLATION_CHANGED:
- if not is_node_ready():
- await ready # Wait until ready signal.
- $Label.text = atr("%d Bananas") % banana_counter
- .. _class_Node_constant_NOTIFICATION_WM_ABOUT:
- .. rst-class:: classref-constant
- **NOTIFICATION_WM_ABOUT** = ``2011`` :ref:`๐<class_Node_constant_NOTIFICATION_WM_ABOUT>`
- Notification received from the OS when a request for "About" information is sent.
- Implemented only on macOS.
- .. _class_Node_constant_NOTIFICATION_CRASH:
- .. rst-class:: classref-constant
- **NOTIFICATION_CRASH** = ``2012`` :ref:`๐<class_Node_constant_NOTIFICATION_CRASH>`
- Notification received from Godot's crash handler when the engine is about to crash.
- Implemented on desktop platforms, if the crash handler is enabled.
- .. _class_Node_constant_NOTIFICATION_OS_IME_UPDATE:
- .. rst-class:: classref-constant
- **NOTIFICATION_OS_IME_UPDATE** = ``2013`` :ref:`๐<class_Node_constant_NOTIFICATION_OS_IME_UPDATE>`
- Notification received from the OS when an update of the Input Method Engine occurs (e.g. change of IME cursor position or composition string).
- Implemented only on macOS.
- .. _class_Node_constant_NOTIFICATION_APPLICATION_RESUMED:
- .. rst-class:: classref-constant
- **NOTIFICATION_APPLICATION_RESUMED** = ``2014`` :ref:`๐<class_Node_constant_NOTIFICATION_APPLICATION_RESUMED>`
- Notification received from the OS when the application is resumed.
- Specific to the Android and iOS platforms.
- .. _class_Node_constant_NOTIFICATION_APPLICATION_PAUSED:
- .. rst-class:: classref-constant
- **NOTIFICATION_APPLICATION_PAUSED** = ``2015`` :ref:`๐<class_Node_constant_NOTIFICATION_APPLICATION_PAUSED>`
- Notification received from the OS when the application is paused.
- Specific to the Android and iOS platforms.
- \ **Note:** On iOS, you only have approximately 5 seconds to finish a task started by this signal. If you go over this allotment, iOS will kill the app instead of pausing it.
- .. _class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_IN:
- .. rst-class:: classref-constant
- **NOTIFICATION_APPLICATION_FOCUS_IN** = ``2016`` :ref:`๐<class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_IN>`
- Notification received from the OS when the application is focused, i.e. when changing the focus from the OS desktop or a thirdparty application to any open window of the Godot instance.
- Implemented on desktop and mobile platforms.
- .. _class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_OUT:
- .. rst-class:: classref-constant
- **NOTIFICATION_APPLICATION_FOCUS_OUT** = ``2017`` :ref:`๐<class_Node_constant_NOTIFICATION_APPLICATION_FOCUS_OUT>`
- Notification received from the OS when the application is defocused, i.e. when changing the focus from any open window of the Godot instance to the OS desktop or a thirdparty application.
- Implemented on desktop and mobile platforms.
- .. _class_Node_constant_NOTIFICATION_TEXT_SERVER_CHANGED:
- .. rst-class:: classref-constant
- **NOTIFICATION_TEXT_SERVER_CHANGED** = ``2018`` :ref:`๐<class_Node_constant_NOTIFICATION_TEXT_SERVER_CHANGED>`
- Notification received when the :ref:`TextServer<class_TextServer>` is changed.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Property Descriptions
- ---------------------
- .. _class_Node_property_auto_translate_mode:
- .. rst-class:: classref-property
- :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **auto_translate_mode** = ``0`` :ref:`๐<class_Node_property_auto_translate_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_auto_translate_mode**\ (\ value\: :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>`\ )
- - :ref:`AutoTranslateMode<enum_Node_AutoTranslateMode>` **get_auto_translate_mode**\ (\ )
- Defines if any text should automatically change to its translated version depending on the current locale (for nodes such as :ref:`Label<class_Label>`, :ref:`RichTextLabel<class_RichTextLabel>`, :ref:`Window<class_Window>`, etc.). Also decides if the node's strings should be parsed for POT generation.
- \ **Note:** For the root node, auto translate mode can also be set via :ref:`ProjectSettings.internationalization/rendering/root_node_auto_translate<class_ProjectSettings_property_internationalization/rendering/root_node_auto_translate>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_editor_description:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **editor_description** = ``""`` :ref:`๐<class_Node_property_editor_description>`
- .. rst-class:: classref-property-setget
- - |void| **set_editor_description**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_editor_description**\ (\ )
- An optional description to the node. It will be displayed as a tooltip when hovering over the node in the editor's Scene dock.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_multiplayer:
- .. rst-class:: classref-property
- :ref:`MultiplayerAPI<class_MultiplayerAPI>` **multiplayer** :ref:`๐<class_Node_property_multiplayer>`
- .. rst-class:: classref-property-setget
- - :ref:`MultiplayerAPI<class_MultiplayerAPI>` **get_multiplayer**\ (\ )
- The :ref:`MultiplayerAPI<class_MultiplayerAPI>` instance associated with this node. See :ref:`SceneTree.get_multiplayer<class_SceneTree_method_get_multiplayer>`.
- \ **Note:** Renaming the node, or moving it in the tree, will not move the :ref:`MultiplayerAPI<class_MultiplayerAPI>` to the new path, you will have to update this manually.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_name:
- .. rst-class:: classref-property
- :ref:`StringName<class_StringName>` **name** :ref:`๐<class_Node_property_name>`
- .. rst-class:: classref-property-setget
- - |void| **set_name**\ (\ value\: :ref:`StringName<class_StringName>`\ )
- - :ref:`StringName<class_StringName>` **get_name**\ (\ )
- The name of the node. This name must be unique among the siblings (other child nodes from the same parent). When set to an existing sibling's name, the node is automatically renamed.
- \ **Note:** When changing the name, the following characters will be replaced with an underscore: (``.`` ``:`` ``@`` ``/`` ``"`` ``%``). In particular, the ``@`` character is reserved for auto-generated names. See also :ref:`String.validate_node_name<class_String_method_validate_node_name>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_owner:
- .. rst-class:: classref-property
- :ref:`Node<class_Node>` **owner** :ref:`๐<class_Node_property_owner>`
- .. rst-class:: classref-property-setget
- - |void| **set_owner**\ (\ value\: :ref:`Node<class_Node>`\ )
- - :ref:`Node<class_Node>` **get_owner**\ (\ )
- The owner of this node. The owner must be an ancestor of this node. When packing the owner node in a :ref:`PackedScene<class_PackedScene>`, all the nodes it owns are also saved with it. See also :ref:`unique_name_in_owner<class_Node_property_unique_name_in_owner>`.
- \ **Note:** In the editor, nodes not owned by the scene root are usually not displayed in the Scene dock, and will **not** be saved. To prevent this, remember to set the owner after calling :ref:`add_child<class_Node_method_add_child>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_physics_interpolation_mode:
- .. rst-class:: classref-property
- :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` **physics_interpolation_mode** = ``0`` :ref:`๐<class_Node_property_physics_interpolation_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_physics_interpolation_mode**\ (\ value\: :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>`\ )
- - :ref:`PhysicsInterpolationMode<enum_Node_PhysicsInterpolationMode>` **get_physics_interpolation_mode**\ (\ )
- Allows enabling or disabling physics interpolation per node, offering a finer grain of control than turning physics interpolation on and off globally. See :ref:`ProjectSettings.physics/common/physics_interpolation<class_ProjectSettings_property_physics/common/physics_interpolation>` and :ref:`SceneTree.physics_interpolation<class_SceneTree_property_physics_interpolation>` for the global setting.
- \ **Note:** When teleporting a node to a distant position you should temporarily disable interpolation with :ref:`reset_physics_interpolation<class_Node_method_reset_physics_interpolation>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_mode:
- .. rst-class:: classref-property
- :ref:`ProcessMode<enum_Node_ProcessMode>` **process_mode** = ``0`` :ref:`๐<class_Node_property_process_mode>`
- .. rst-class:: classref-property-setget
- - |void| **set_process_mode**\ (\ value\: :ref:`ProcessMode<enum_Node_ProcessMode>`\ )
- - :ref:`ProcessMode<enum_Node_ProcessMode>` **get_process_mode**\ (\ )
- The node's processing behavior (see :ref:`ProcessMode<enum_Node_ProcessMode>`). To check if the node can process in its current mode, use :ref:`can_process<class_Node_method_can_process>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_physics_priority:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **process_physics_priority** = ``0`` :ref:`๐<class_Node_property_process_physics_priority>`
- .. rst-class:: classref-property-setget
- - |void| **set_physics_process_priority**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_physics_process_priority**\ (\ )
- Similar to :ref:`process_priority<class_Node_property_process_priority>` but for :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>`, :ref:`_physics_process<class_Node_private_method__physics_process>`, or :ref:`NOTIFICATION_INTERNAL_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PHYSICS_PROCESS>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_priority:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **process_priority** = ``0`` :ref:`๐<class_Node_property_process_priority>`
- .. rst-class:: classref-property-setget
- - |void| **set_process_priority**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_process_priority**\ (\ )
- The node's execution order of the process callbacks (:ref:`_process<class_Node_private_method__process>`, :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>`, and :ref:`NOTIFICATION_INTERNAL_PROCESS<class_Node_constant_NOTIFICATION_INTERNAL_PROCESS>`). Nodes whose priority value is *lower* call their process callbacks first, regardless of tree order.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_thread_group:
- .. rst-class:: classref-property
- :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` **process_thread_group** = ``0`` :ref:`๐<class_Node_property_process_thread_group>`
- .. rst-class:: classref-property-setget
- - |void| **set_process_thread_group**\ (\ value\: :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>`\ )
- - :ref:`ProcessThreadGroup<enum_Node_ProcessThreadGroup>` **get_process_thread_group**\ (\ )
- Set the process thread group for this node (basically, whether it receives :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>`, :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>`, :ref:`_process<class_Node_private_method__process>` or :ref:`_physics_process<class_Node_private_method__physics_process>` (and the internal versions) on the main thread or in a sub-thread.
- By default, the thread group is :ref:`PROCESS_THREAD_GROUP_INHERIT<class_Node_constant_PROCESS_THREAD_GROUP_INHERIT>`, which means that this node belongs to the same thread group as the parent node. The thread groups means that nodes in a specific thread group will process together, separate to other thread groups (depending on :ref:`process_thread_group_order<class_Node_property_process_thread_group_order>`). If the value is set is :ref:`PROCESS_THREAD_GROUP_SUB_THREAD<class_Node_constant_PROCESS_THREAD_GROUP_SUB_THREAD>`, this thread group will occur on a sub thread (not the main thread), otherwise if set to :ref:`PROCESS_THREAD_GROUP_MAIN_THREAD<class_Node_constant_PROCESS_THREAD_GROUP_MAIN_THREAD>` it will process on the main thread. If there is not a parent or grandparent node set to something other than inherit, the node will belong to the *default thread group*. This default group will process on the main thread and its group order is 0.
- During processing in a sub-thread, accessing most functions in nodes outside the thread group is forbidden (and it will result in an error in debug mode). Use :ref:`Object.call_deferred<class_Object_method_call_deferred>`, :ref:`call_thread_safe<class_Node_method_call_thread_safe>`, :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>` and the likes in order to communicate from the thread groups to the main thread (or to other thread groups).
- To better understand process thread groups, the idea is that any node set to any other value than :ref:`PROCESS_THREAD_GROUP_INHERIT<class_Node_constant_PROCESS_THREAD_GROUP_INHERIT>` will include any child (and grandchild) nodes set to inherit into its process thread group. This means that the processing of all the nodes in the group will happen together, at the same time as the node including them.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_thread_group_order:
- .. rst-class:: classref-property
- :ref:`int<class_int>` **process_thread_group_order** :ref:`๐<class_Node_property_process_thread_group_order>`
- .. rst-class:: classref-property-setget
- - |void| **set_process_thread_group_order**\ (\ value\: :ref:`int<class_int>`\ )
- - :ref:`int<class_int>` **get_process_thread_group_order**\ (\ )
- Change the process thread group order. Groups with a lesser order will process before groups with a greater order. This is useful when a large amount of nodes process in sub thread and, afterwards, another group wants to collect their result in the main thread, as an example.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_process_thread_messages:
- .. rst-class:: classref-property
- |bitfield|\[:ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>`\] **process_thread_messages** :ref:`๐<class_Node_property_process_thread_messages>`
- .. rst-class:: classref-property-setget
- - |void| **set_process_thread_messages**\ (\ value\: |bitfield|\[:ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>`\]\ )
- - |bitfield|\[:ref:`ProcessThreadMessages<enum_Node_ProcessThreadMessages>`\] **get_process_thread_messages**\ (\ )
- Set whether the current thread group will process messages (calls to :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>` on threads), and whether it wants to receive them during regular process or physics process callbacks.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_scene_file_path:
- .. rst-class:: classref-property
- :ref:`String<class_String>` **scene_file_path** :ref:`๐<class_Node_property_scene_file_path>`
- .. rst-class:: classref-property-setget
- - |void| **set_scene_file_path**\ (\ value\: :ref:`String<class_String>`\ )
- - :ref:`String<class_String>` **get_scene_file_path**\ (\ )
- The original scene's file path, if the node has been instantiated from a :ref:`PackedScene<class_PackedScene>` file. Only scene root nodes contains this.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_property_unique_name_in_owner:
- .. rst-class:: classref-property
- :ref:`bool<class_bool>` **unique_name_in_owner** = ``false`` :ref:`๐<class_Node_property_unique_name_in_owner>`
- .. rst-class:: classref-property-setget
- - |void| **set_unique_name_in_owner**\ (\ value\: :ref:`bool<class_bool>`\ )
- - :ref:`bool<class_bool>` **is_unique_name_in_owner**\ (\ )
- If ``true``, the node can be accessed from any node sharing the same :ref:`owner<class_Node_property_owner>` or from the :ref:`owner<class_Node_property_owner>` itself, with special ``%Name`` syntax in :ref:`get_node<class_Node_method_get_node>`.
- \ **Note:** If another node with the same :ref:`owner<class_Node_property_owner>` shares the same :ref:`name<class_Node_property_name>` as this node, the other node will no longer be accessible as unique.
- .. rst-class:: classref-section-separator
- ----
- .. rst-class:: classref-descriptions-group
- Method Descriptions
- -------------------
- .. _class_Node_private_method__enter_tree:
- .. rst-class:: classref-method
- |void| **_enter_tree**\ (\ ) |virtual| :ref:`๐<class_Node_private_method__enter_tree>`
- Called when the node enters the :ref:`SceneTree<class_SceneTree>` (e.g. upon instantiating, scene changing, or after calling :ref:`add_child<class_Node_method_add_child>` in a script). If the node has children, its :ref:`_enter_tree<class_Node_private_method__enter_tree>` callback will be called first, and then that of the children.
- Corresponds to the :ref:`NOTIFICATION_ENTER_TREE<class_Node_constant_NOTIFICATION_ENTER_TREE>` notification in :ref:`Object._notification<class_Object_private_method__notification>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__exit_tree:
- .. rst-class:: classref-method
- |void| **_exit_tree**\ (\ ) |virtual| :ref:`๐<class_Node_private_method__exit_tree>`
- Called when the node is about to leave the :ref:`SceneTree<class_SceneTree>` (e.g. upon freeing, scene changing, or after calling :ref:`remove_child<class_Node_method_remove_child>` in a script). If the node has children, its :ref:`_exit_tree<class_Node_private_method__exit_tree>` callback will be called last, after all its children have left the tree.
- Corresponds to the :ref:`NOTIFICATION_EXIT_TREE<class_Node_constant_NOTIFICATION_EXIT_TREE>` notification in :ref:`Object._notification<class_Object_private_method__notification>` and signal :ref:`tree_exiting<class_Node_signal_tree_exiting>`. To get notified when the node has already left the active tree, connect to the :ref:`tree_exited<class_Node_signal_tree_exited>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__get_configuration_warnings:
- .. rst-class:: classref-method
- :ref:`PackedStringArray<class_PackedStringArray>` **_get_configuration_warnings**\ (\ ) |virtual| |const| :ref:`๐<class_Node_private_method__get_configuration_warnings>`
- The elements in the array returned from this method are displayed as warnings in the Scene dock if the script that overrides it is a ``tool`` script.
- Returning an empty array produces no warnings.
- Call :ref:`update_configuration_warnings<class_Node_method_update_configuration_warnings>` when the warnings need to be updated for this node.
- ::
- @export var energy = 0:
- set(value):
- energy = value
- update_configuration_warnings()
-
- func _get_configuration_warnings():
- if energy < 0:
- return ["Energy must be 0 or greater."]
- else:
- return []
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__input:
- .. rst-class:: classref-method
- |void| **_input**\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| :ref:`๐<class_Node_private_method__input>`
- Called when there is an input event. The input event propagates up through the node tree until a node consumes it.
- It is only called if input processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_process_input<class_Node_method_set_process_input>`.
- To consume the input event and stop it propagating further to other nodes, :ref:`Viewport.set_input_as_handled<class_Viewport_method_set_input_as_handled>` can be called.
- For gameplay input, :ref:`_unhandled_input<class_Node_private_method__unhandled_input>` and :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>` are usually a better fit as they allow the GUI to intercept the events first.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not an orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__physics_process:
- .. rst-class:: classref-method
- |void| **_physics_process**\ (\ delta\: :ref:`float<class_float>`\ ) |virtual| :ref:`๐<class_Node_private_method__physics_process>`
- Called during the physics processing step of the main loop. Physics processing means that the frame rate is synced to the physics, i.e. the ``delta`` variable should be constant. ``delta`` is in seconds.
- It is only called if physics processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_physics_process<class_Node_method_set_physics_process>`.
- Processing happens in order of :ref:`process_physics_priority<class_Node_property_process_physics_priority>`, lower priority values are called first. Nodes with the same priority are processed in tree order, or top to bottom as seen in the editor (also known as pre-order traversal).
- Corresponds to the :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>` notification in :ref:`Object._notification<class_Object_private_method__notification>`.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not an orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__process:
- .. rst-class:: classref-method
- |void| **_process**\ (\ delta\: :ref:`float<class_float>`\ ) |virtual| :ref:`๐<class_Node_private_method__process>`
- Called during the processing step of the main loop. Processing happens at every frame and as fast as possible, so the ``delta`` time since the previous frame is not constant. ``delta`` is in seconds.
- It is only called if processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_process<class_Node_method_set_process>`.
- Processing happens in order of :ref:`process_priority<class_Node_property_process_priority>`, lower priority values are called first. Nodes with the same priority are processed in tree order, or top to bottom as seen in the editor (also known as pre-order traversal).
- Corresponds to the :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>` notification in :ref:`Object._notification<class_Object_private_method__notification>`.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not an orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__ready:
- .. rst-class:: classref-method
- |void| **_ready**\ (\ ) |virtual| :ref:`๐<class_Node_private_method__ready>`
- Called when the node is "ready", i.e. when both the node and its children have entered the scene tree. If the node has children, their :ref:`_ready<class_Node_private_method__ready>` callbacks get triggered first, and the parent node will receive the ready notification afterwards.
- Corresponds to the :ref:`NOTIFICATION_READY<class_Node_constant_NOTIFICATION_READY>` notification in :ref:`Object._notification<class_Object_private_method__notification>`. See also the ``@onready`` annotation for variables.
- Usually used for initialization. For even earlier initialization, :ref:`Object._init<class_Object_private_method__init>` may be used. See also :ref:`_enter_tree<class_Node_private_method__enter_tree>`.
- \ **Note:** This method may be called only once for each node. After removing a node from the scene tree and adding it again, :ref:`_ready<class_Node_private_method__ready>` will **not** be called a second time. This can be bypassed by requesting another call with :ref:`request_ready<class_Node_method_request_ready>`, which may be called anywhere before adding the node again.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__shortcut_input:
- .. rst-class:: classref-method
- |void| **_shortcut_input**\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| :ref:`๐<class_Node_private_method__shortcut_input>`
- Called when an :ref:`InputEventKey<class_InputEventKey>`, :ref:`InputEventShortcut<class_InputEventShortcut>`, or :ref:`InputEventJoypadButton<class_InputEventJoypadButton>` hasn't been consumed by :ref:`_input<class_Node_private_method__input>` or any GUI :ref:`Control<class_Control>` item. It is called before :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>` and :ref:`_unhandled_input<class_Node_private_method__unhandled_input>`. The input event propagates up through the node tree until a node consumes it.
- It is only called if shortcut processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_process_shortcut_input<class_Node_method_set_process_shortcut_input>`.
- To consume the input event and stop it propagating further to other nodes, :ref:`Viewport.set_input_as_handled<class_Viewport_method_set_input_as_handled>` can be called.
- This method can be used to handle shortcuts. For generic GUI events, use :ref:`_input<class_Node_private_method__input>` instead. Gameplay events should usually be handled with either :ref:`_unhandled_input<class_Node_private_method__unhandled_input>` or :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>`.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__unhandled_input:
- .. rst-class:: classref-method
- |void| **_unhandled_input**\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| :ref:`๐<class_Node_private_method__unhandled_input>`
- Called when an :ref:`InputEvent<class_InputEvent>` hasn't been consumed by :ref:`_input<class_Node_private_method__input>` or any GUI :ref:`Control<class_Control>` item. It is called after :ref:`_shortcut_input<class_Node_private_method__shortcut_input>` and after :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>`. The input event propagates up through the node tree until a node consumes it.
- It is only called if unhandled input processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_process_unhandled_input<class_Node_method_set_process_unhandled_input>`.
- To consume the input event and stop it propagating further to other nodes, :ref:`Viewport.set_input_as_handled<class_Viewport_method_set_input_as_handled>` can be called.
- For gameplay input, this method is usually a better fit than :ref:`_input<class_Node_private_method__input>`, as GUI events need a higher priority. For keyboard shortcuts, consider using :ref:`_shortcut_input<class_Node_private_method__shortcut_input>` instead, as it is called before this method. Finally, to handle keyboard events, consider using :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>` for performance reasons.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not an orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_private_method__unhandled_key_input:
- .. rst-class:: classref-method
- |void| **_unhandled_key_input**\ (\ event\: :ref:`InputEvent<class_InputEvent>`\ ) |virtual| :ref:`๐<class_Node_private_method__unhandled_key_input>`
- Called when an :ref:`InputEventKey<class_InputEventKey>` hasn't been consumed by :ref:`_input<class_Node_private_method__input>` or any GUI :ref:`Control<class_Control>` item. It is called after :ref:`_shortcut_input<class_Node_private_method__shortcut_input>` but before :ref:`_unhandled_input<class_Node_private_method__unhandled_input>`. The input event propagates up through the node tree until a node consumes it.
- It is only called if unhandled key input processing is enabled, which is done automatically if this method is overridden, and can be toggled with :ref:`set_process_unhandled_key_input<class_Node_method_set_process_unhandled_key_input>`.
- To consume the input event and stop it propagating further to other nodes, :ref:`Viewport.set_input_as_handled<class_Viewport_method_set_input_as_handled>` can be called.
- This method can be used to handle Unicode character input with :kbd:`Alt`, :kbd:`Alt + Ctrl`, and :kbd:`Alt + Shift` modifiers, after shortcuts were handled.
- For gameplay input, this and :ref:`_unhandled_input<class_Node_private_method__unhandled_input>` are usually a better fit than :ref:`_input<class_Node_private_method__input>`, as GUI events should be handled first. This method also performs better than :ref:`_unhandled_input<class_Node_private_method__unhandled_input>`, since unrelated events such as :ref:`InputEventMouseMotion<class_InputEventMouseMotion>` are automatically filtered. For shortcuts, consider using :ref:`_shortcut_input<class_Node_private_method__shortcut_input>` instead.
- \ **Note:** This method is only called if the node is present in the scene tree (i.e. if it's not an orphan).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_add_child:
- .. rst-class:: classref-method
- |void| **add_child**\ (\ node\: :ref:`Node<class_Node>`, force_readable_name\: :ref:`bool<class_bool>` = false, internal\: :ref:`InternalMode<enum_Node_InternalMode>` = 0\ ) :ref:`๐<class_Node_method_add_child>`
- Adds a child ``node``. Nodes can have any number of children, but every child must have a unique name. Child nodes are automatically deleted when the parent node is deleted, so an entire scene can be removed by deleting its topmost node.
- If ``force_readable_name`` is ``true``, improves the readability of the added ``node``. If not named, the ``node`` is renamed to its type, and if it shares :ref:`name<class_Node_property_name>` with a sibling, a number is suffixed more appropriately. This operation is very slow. As such, it is recommended leaving this to ``false``, which assigns a dummy name featuring ``@`` in both situations.
- If ``internal`` is different than :ref:`INTERNAL_MODE_DISABLED<class_Node_constant_INTERNAL_MODE_DISABLED>`, the child will be added as internal node. These nodes are ignored by methods like :ref:`get_children<class_Node_method_get_children>`, unless their parameter ``include_internal`` is ``true``. The intended usage is to hide the internal nodes from the user, so the user won't accidentally delete or modify them. Used by some GUI nodes, e.g. :ref:`ColorPicker<class_ColorPicker>`. See :ref:`InternalMode<enum_Node_InternalMode>` for available modes.
- \ **Note:** If ``node`` already has a parent, this method will fail. Use :ref:`remove_child<class_Node_method_remove_child>` first to remove ``node`` from its current parent. For example:
- .. tabs::
- .. code-tab:: gdscript
- var child_node = get_child(0)
- if child_node.get_parent():
- child_node.get_parent().remove_child(child_node)
- add_child(child_node)
- .. code-tab:: csharp
- Node childNode = GetChild(0);
- if (childNode.GetParent() != null)
- {
- childNode.GetParent().RemoveChild(childNode);
- }
- AddChild(childNode);
- If you need the child node to be added below a specific node in the list of children, use :ref:`add_sibling<class_Node_method_add_sibling>` instead of this method.
- \ **Note:** If you want a child to be persisted to a :ref:`PackedScene<class_PackedScene>`, you must set :ref:`owner<class_Node_property_owner>` in addition to calling :ref:`add_child<class_Node_method_add_child>`. This is typically relevant for :doc:`tool scripts <../tutorials/plugins/running_code_in_the_editor>` and :doc:`editor plugins <../tutorials/plugins/editor/index>`. If :ref:`add_child<class_Node_method_add_child>` is called without setting :ref:`owner<class_Node_property_owner>`, the newly added **Node** will not be visible in the scene tree, though it will be visible in the 2D/3D view.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_add_sibling:
- .. rst-class:: classref-method
- |void| **add_sibling**\ (\ sibling\: :ref:`Node<class_Node>`, force_readable_name\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_Node_method_add_sibling>`
- Adds a ``sibling`` node to this node's parent, and moves the added sibling right below this node.
- If ``force_readable_name`` is ``true``, improves the readability of the added ``sibling``. If not named, the ``sibling`` is renamed to its type, and if it shares :ref:`name<class_Node_property_name>` with a sibling, a number is suffixed more appropriately. This operation is very slow. As such, it is recommended leaving this to ``false``, which assigns a dummy name featuring ``@`` in both situations.
- Use :ref:`add_child<class_Node_method_add_child>` instead of this method if you don't need the child node to be added below a specific node in the list of children.
- \ **Note:** If this node is internal, the added sibling will be internal too (see :ref:`add_child<class_Node_method_add_child>`'s ``internal`` parameter).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_add_to_group:
- .. rst-class:: classref-method
- |void| **add_to_group**\ (\ group\: :ref:`StringName<class_StringName>`, persistent\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_Node_method_add_to_group>`
- Adds the node to the ``group``. Groups can be helpful to organize a subset of nodes, for example ``"enemies"`` or ``"collectables"``. See notes in the description, and the group methods in :ref:`SceneTree<class_SceneTree>`.
- If ``persistent`` is ``true``, the group will be stored when saved inside a :ref:`PackedScene<class_PackedScene>`. All groups created and displayed in the Node dock are persistent.
- \ **Note:** To improve performance, the order of group names is *not* guaranteed and may vary between project runs. Therefore, do not rely on the group order.
- \ **Note:** :ref:`SceneTree<class_SceneTree>`'s group methods will *not* work on this node if not inside the tree (see :ref:`is_inside_tree<class_Node_method_is_inside_tree>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_atr:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **atr**\ (\ message\: :ref:`String<class_String>`, context\: :ref:`StringName<class_StringName>` = ""\ ) |const| :ref:`๐<class_Node_method_atr>`
- Translates a ``message``, using the translation catalogs configured in the Project Settings. Further ``context`` can be specified to help with the translation. Note that most :ref:`Control<class_Control>` nodes automatically translate their strings, so this method is mostly useful for formatted strings or custom drawn text.
- This method works the same as :ref:`Object.tr<class_Object_method_tr>`, with the addition of respecting the :ref:`auto_translate_mode<class_Node_property_auto_translate_mode>` state.
- If :ref:`Object.can_translate_messages<class_Object_method_can_translate_messages>` is ``false``, or no translation is available, this method returns the ``message`` without changes. See :ref:`Object.set_message_translation<class_Object_method_set_message_translation>`.
- For detailed examples, see :doc:`Internationalizing games <../tutorials/i18n/internationalizing_games>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_atr_n:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **atr_n**\ (\ message\: :ref:`String<class_String>`, plural_message\: :ref:`StringName<class_StringName>`, n\: :ref:`int<class_int>`, context\: :ref:`StringName<class_StringName>` = ""\ ) |const| :ref:`๐<class_Node_method_atr_n>`
- Translates a ``message`` or ``plural_message``, using the translation catalogs configured in the Project Settings. Further ``context`` can be specified to help with the translation.
- This method works the same as :ref:`Object.tr_n<class_Object_method_tr_n>`, with the addition of respecting the :ref:`auto_translate_mode<class_Node_property_auto_translate_mode>` state.
- If :ref:`Object.can_translate_messages<class_Object_method_can_translate_messages>` is ``false``, or no translation is available, this method returns ``message`` or ``plural_message``, without changes. See :ref:`Object.set_message_translation<class_Object_method_set_message_translation>`.
- The ``n`` is the number, or amount, of the message's subject. It is used by the translation system to fetch the correct plural form for the current language.
- For detailed examples, see :doc:`Localization using gettext <../tutorials/i18n/localization_using_gettext>`.
- \ **Note:** Negative and :ref:`float<class_float>` numbers may not properly apply to some countable subjects. It's recommended to handle these cases with :ref:`atr<class_Node_method_atr>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_call_deferred_thread_group:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **call_deferred_thread_group**\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`๐<class_Node_method_call_deferred_thread_group>`
- This function is similar to :ref:`Object.call_deferred<class_Object_method_call_deferred>` except that the call will take place when the node thread group is processed. If the node thread group processes in sub-threads, then the call will be done on that thread, right before :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>` or :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>`, the :ref:`_process<class_Node_private_method__process>` or :ref:`_physics_process<class_Node_private_method__physics_process>` or their internal versions are called.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_call_thread_safe:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **call_thread_safe**\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`๐<class_Node_method_call_thread_safe>`
- This function ensures that the calling of this function will succeed, no matter whether it's being done from a thread or not. If called from a thread that is not allowed to call the function, the call will become deferred. Otherwise, the call will go through directly.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_can_process:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **can_process**\ (\ ) |const| :ref:`๐<class_Node_method_can_process>`
- Returns ``true`` if the node can receive processing notifications and input callbacks (:ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>`, :ref:`_input<class_Node_private_method__input>`, etc.) from the :ref:`SceneTree<class_SceneTree>` and :ref:`Viewport<class_Viewport>`. The returned value depends on :ref:`process_mode<class_Node_property_process_mode>`:
- - If set to :ref:`PROCESS_MODE_PAUSABLE<class_Node_constant_PROCESS_MODE_PAUSABLE>`, returns ``true`` when the game is processing, i.e. :ref:`SceneTree.paused<class_SceneTree_property_paused>` is ``false``;
- - If set to :ref:`PROCESS_MODE_WHEN_PAUSED<class_Node_constant_PROCESS_MODE_WHEN_PAUSED>`, returns ``true`` when the game is paused, i.e. :ref:`SceneTree.paused<class_SceneTree_property_paused>` is ``true``;
- - If set to :ref:`PROCESS_MODE_ALWAYS<class_Node_constant_PROCESS_MODE_ALWAYS>`, always returns ``true``;
- - If set to :ref:`PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`, always returns ``false``;
- - If set to :ref:`PROCESS_MODE_INHERIT<class_Node_constant_PROCESS_MODE_INHERIT>`, use the parent node's :ref:`process_mode<class_Node_property_process_mode>` to determine the result.
- If the node is not inside the tree, returns ``false`` no matter the value of :ref:`process_mode<class_Node_property_process_mode>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_create_tween:
- .. rst-class:: classref-method
- :ref:`Tween<class_Tween>` **create_tween**\ (\ ) :ref:`๐<class_Node_method_create_tween>`
- Creates a new :ref:`Tween<class_Tween>` and binds it to this node.
- This is the equivalent of doing:
- .. tabs::
- .. code-tab:: gdscript
- get_tree().create_tween().bind_node(self)
- .. code-tab:: csharp
- GetTree().CreateTween().BindNode(this);
- The Tween will start automatically on the next process frame or physics frame (depending on :ref:`TweenProcessMode<enum_Tween_TweenProcessMode>`). See :ref:`Tween.bind_node<class_Tween_method_bind_node>` for more info on Tweens bound to nodes.
- \ **Note:** The method can still be used when the node is not inside :ref:`SceneTree<class_SceneTree>`. It can fail in an unlikely case of using a custom :ref:`MainLoop<class_MainLoop>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_duplicate:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **duplicate**\ (\ flags\: :ref:`int<class_int>` = 15\ ) |const| :ref:`๐<class_Node_method_duplicate>`
- Duplicates the node, returning a new node with all of its properties, signals, groups, and children copied from the original. The behavior can be tweaked through the ``flags`` (see :ref:`DuplicateFlags<enum_Node_DuplicateFlags>`).
- \ **Note:** For nodes with a :ref:`Script<class_Script>` attached, if :ref:`Object._init<class_Object_private_method__init>` has been defined with required parameters, the duplicated node will not have a :ref:`Script<class_Script>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_find_child:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **find_child**\ (\ pattern\: :ref:`String<class_String>`, recursive\: :ref:`bool<class_bool>` = true, owned\: :ref:`bool<class_bool>` = true\ ) |const| :ref:`๐<class_Node_method_find_child>`
- Finds the first descendant of this node whose :ref:`name<class_Node_property_name>` matches ``pattern``, returning ``null`` if no match is found. The matching is done against node names, *not* their paths, through :ref:`String.match<class_String_method_match>`. As such, it is case-sensitive, ``"*"`` matches zero or more characters, and ``"?"`` matches any single character.
- If ``recursive`` is ``false``, only this node's direct children are checked. Nodes are checked in tree order, so this node's first direct child is checked first, then its own direct children, etc., before moving to the second direct child, and so on. Internal children are also included in the search (see ``internal`` parameter in :ref:`add_child<class_Node_method_add_child>`).
- If ``owned`` is ``true``, only descendants with a valid :ref:`owner<class_Node_property_owner>` node are checked.
- \ **Note:** This method can be very slow. Consider storing a reference to the found node in a variable. Alternatively, use :ref:`get_node<class_Node_method_get_node>` with unique names (see :ref:`unique_name_in_owner<class_Node_property_unique_name_in_owner>`).
- \ **Note:** To find all descendant nodes matching a pattern or a class type, see :ref:`find_children<class_Node_method_find_children>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_find_children:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] **find_children**\ (\ pattern\: :ref:`String<class_String>`, type\: :ref:`String<class_String>` = "", recursive\: :ref:`bool<class_bool>` = true, owned\: :ref:`bool<class_bool>` = true\ ) |const| :ref:`๐<class_Node_method_find_children>`
- Finds all descendants of this node whose names match ``pattern``, returning an empty :ref:`Array<class_Array>` if no match is found. The matching is done against node names, *not* their paths, through :ref:`String.match<class_String_method_match>`. As such, it is case-sensitive, ``"*"`` matches zero or more characters, and ``"?"`` matches any single character.
- If ``type`` is not empty, only ancestors inheriting from ``type`` are included (see :ref:`Object.is_class<class_Object_method_is_class>`).
- If ``recursive`` is ``false``, only this node's direct children are checked. Nodes are checked in tree order, so this node's first direct child is checked first, then its own direct children, etc., before moving to the second direct child, and so on. Internal children are also included in the search (see ``internal`` parameter in :ref:`add_child<class_Node_method_add_child>`).
- If ``owned`` is ``true``, only descendants with a valid :ref:`owner<class_Node_property_owner>` node are checked.
- \ **Note:** This method can be very slow. Consider storing references to the found nodes in a variable.
- \ **Note:** To find a single descendant node matching a pattern, see :ref:`find_child<class_Node_method_find_child>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_find_parent:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **find_parent**\ (\ pattern\: :ref:`String<class_String>`\ ) |const| :ref:`๐<class_Node_method_find_parent>`
- Finds the first ancestor of this node whose :ref:`name<class_Node_property_name>` matches ``pattern``, returning ``null`` if no match is found. The matching is done through :ref:`String.match<class_String_method_match>`. As such, it is case-sensitive, ``"*"`` matches zero or more characters, and ``"?"`` matches any single character. See also :ref:`find_child<class_Node_method_find_child>` and :ref:`find_children<class_Node_method_find_children>`.
- \ **Note:** As this method walks upwards in the scene tree, it can be slow in large, deeply nested nodes. Consider storing a reference to the found node in a variable. Alternatively, use :ref:`get_node<class_Node_method_get_node>` with unique names (see :ref:`unique_name_in_owner<class_Node_property_unique_name_in_owner>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_child:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **get_child**\ (\ idx\: :ref:`int<class_int>`, include_internal\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐<class_Node_method_get_child>`
- Fetches a child node by its index. Each child node has an index relative its siblings (see :ref:`get_index<class_Node_method_get_index>`). The first child is at index 0. Negative values can also be used to start from the end of the list. This method can be used in combination with :ref:`get_child_count<class_Node_method_get_child_count>` to iterate over this node's children. If no child exists at the given index, this method returns ``null`` and an error is generated.
- If ``include_internal`` is ``false``, internal children are ignored (see :ref:`add_child<class_Node_method_add_child>`'s ``internal`` parameter).
- ::
- # Assuming the following are children of this node, in order:
- # First, Middle, Last.
-
- var a = get_child(0).name # a is "First"
- var b = get_child(1).name # b is "Middle"
- var b = get_child(2).name # b is "Last"
- var c = get_child(-1).name # c is "Last"
- \ **Note:** To fetch a node by :ref:`NodePath<class_NodePath>`, use :ref:`get_node<class_Node_method_get_node>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_child_count:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_child_count**\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐<class_Node_method_get_child_count>`
- Returns the number of children of this node.
- If ``include_internal`` is ``false``, internal children are not counted (see :ref:`add_child<class_Node_method_add_child>`'s ``internal`` parameter).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_children:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`Node<class_Node>`\] **get_children**\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐<class_Node_method_get_children>`
- Returns all children of this node inside an :ref:`Array<class_Array>`.
- If ``include_internal`` is ``false``, excludes internal children from the returned array (see :ref:`add_child<class_Node_method_add_child>`'s ``internal`` parameter).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_groups:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>`\[:ref:`StringName<class_StringName>`\] **get_groups**\ (\ ) |const| :ref:`๐<class_Node_method_get_groups>`
- Returns an :ref:`Array<class_Array>` of group names that the node has been added to.
- \ **Note:** To improve performance, the order of group names is *not* guaranteed and may vary between project runs. Therefore, do not rely on the group order.
- \ **Note:** This method may also return some group names starting with an underscore (``_``). These are internally used by the engine. To avoid conflicts, do not use custom groups starting with underscores. To exclude internal groups, see the following code snippet:
- .. tabs::
- .. code-tab:: gdscript
- # Stores the node's non-internal groups only (as an array of StringNames).
- var non_internal_groups = []
- for group in get_groups():
- if not str(group).begins_with("_"):
- non_internal_groups.push_back(group)
- .. code-tab:: csharp
- // Stores the node's non-internal groups only (as a List of StringNames).
- List<string> nonInternalGroups = new List<string>();
- foreach (string group in GetGroups())
- {
- if (!group.BeginsWith("_"))
- nonInternalGroups.Add(group);
- }
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_index:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_index**\ (\ include_internal\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐<class_Node_method_get_index>`
- Returns this node's order among its siblings. The first node's index is ``0``. See also :ref:`get_child<class_Node_method_get_child>`.
- If ``include_internal`` is ``false``, returns the index ignoring internal children. The first, non-internal child will have an index of ``0`` (see :ref:`add_child<class_Node_method_add_child>`'s ``internal`` parameter).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_last_exclusive_window:
- .. rst-class:: classref-method
- :ref:`Window<class_Window>` **get_last_exclusive_window**\ (\ ) |const| :ref:`๐<class_Node_method_get_last_exclusive_window>`
- Returns the :ref:`Window<class_Window>` that contains this node, or the last exclusive child in a chain of windows starting with the one that contains this node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_multiplayer_authority:
- .. rst-class:: classref-method
- :ref:`int<class_int>` **get_multiplayer_authority**\ (\ ) |const| :ref:`๐<class_Node_method_get_multiplayer_authority>`
- Returns the peer ID of the multiplayer authority for this node. See :ref:`set_multiplayer_authority<class_Node_method_set_multiplayer_authority>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_node:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **get_node**\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| :ref:`๐<class_Node_method_get_node>`
- Fetches a node. The :ref:`NodePath<class_NodePath>` can either be a relative path (from this node), or an absolute path (from the :ref:`SceneTree.root<class_SceneTree_property_root>`) to a node. If ``path`` does not point to a valid node, generates an error and returns ``null``. Attempts to access methods on the return value will result in an *"Attempt to call <method> on a null instance."* error.
- \ **Note:** Fetching by absolute path only works when the node is inside the scene tree (see :ref:`is_inside_tree<class_Node_method_is_inside_tree>`).
- \ **Example:** Assume this method is called from the Character node, inside the following tree:
- .. code:: text
- โโดroot
- โ โดCharacter (you are here!)
- โ โ โดSword
- โ โโดBackpack
- โ โโดDagger
- โ โดMyGame
- โโดSwamp
- โ โดAlligator
- โ โดMosquito
- โโดGoblin
- The following calls will return a valid node:
- .. tabs::
- .. code-tab:: gdscript
- get_node("Sword")
- get_node("Backpack/Dagger")
- get_node("../Swamp/Alligator")
- get_node("/root/MyGame")
- .. code-tab:: csharp
- GetNode("Sword");
- GetNode("Backpack/Dagger");
- GetNode("../Swamp/Alligator");
- GetNode("/root/MyGame");
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_node_and_resource:
- .. rst-class:: classref-method
- :ref:`Array<class_Array>` **get_node_and_resource**\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) :ref:`๐<class_Node_method_get_node_and_resource>`
- Fetches a node and its most nested resource as specified by the :ref:`NodePath<class_NodePath>`'s subname. Returns an :ref:`Array<class_Array>` of size ``3`` where:
- - Element ``0`` is the **Node**, or ``null`` if not found;
- - Element ``1`` is the subname's last nested :ref:`Resource<class_Resource>`, or ``null`` if not found;
- - Element ``2`` is the remaining :ref:`NodePath<class_NodePath>`, referring to an existing, non-:ref:`Resource<class_Resource>` property (see :ref:`Object.get_indexed<class_Object_method_get_indexed>`).
- \ **Example:** Assume that the child's :ref:`Sprite2D.texture<class_Sprite2D_property_texture>` has been assigned a :ref:`AtlasTexture<class_AtlasTexture>`:
- .. tabs::
- .. code-tab:: gdscript
- var a = get_node_and_resource("Area2D/Sprite2D")
- print(a[0].name) # Prints Sprite2D
- print(a[1]) # Prints <null>
- print(a[2]) # Prints ^""
-
- var b = get_node_and_resource("Area2D/Sprite2D:texture:atlas")
- print(b[0].name) # Prints Sprite2D
- print(b[1].get_class()) # Prints AtlasTexture
- print(b[2]) # Prints ^""
-
- var c = get_node_and_resource("Area2D/Sprite2D:texture:atlas:region")
- print(c[0].name) # Prints Sprite2D
- print(c[1].get_class()) # Prints AtlasTexture
- print(c[2]) # Prints ^":region"
- .. code-tab:: csharp
- var a = GetNodeAndResource(NodePath("Area2D/Sprite2D"));
- GD.Print(a[0].Name); // Prints Sprite2D
- GD.Print(a[1]); // Prints <null>
- GD.Print(a[2]); // Prints ^"
-
- var b = GetNodeAndResource(NodePath("Area2D/Sprite2D:texture:atlas"));
- GD.Print(b[0].name); // Prints Sprite2D
- GD.Print(b[1].get_class()); // Prints AtlasTexture
- GD.Print(b[2]); // Prints ^""
-
- var c = GetNodeAndResource(NodePath("Area2D/Sprite2D:texture:atlas:region"));
- GD.Print(c[0].name); // Prints Sprite2D
- GD.Print(c[1].get_class()); // Prints AtlasTexture
- GD.Print(c[2]); // Prints ^":region"
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_node_or_null:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **get_node_or_null**\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| :ref:`๐<class_Node_method_get_node_or_null>`
- Fetches a node by :ref:`NodePath<class_NodePath>`. Similar to :ref:`get_node<class_Node_method_get_node>`, but does not generate an error if ``path`` does not point to a valid node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_parent:
- .. rst-class:: classref-method
- :ref:`Node<class_Node>` **get_parent**\ (\ ) |const| :ref:`๐<class_Node_method_get_parent>`
- Returns this node's parent node, or ``null`` if the node doesn't have a parent.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_path:
- .. rst-class:: classref-method
- :ref:`NodePath<class_NodePath>` **get_path**\ (\ ) |const| :ref:`๐<class_Node_method_get_path>`
- Returns the node's absolute path, relative to the :ref:`SceneTree.root<class_SceneTree_property_root>`. If the node is not inside the scene tree, this method fails and returns an empty :ref:`NodePath<class_NodePath>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_path_to:
- .. rst-class:: classref-method
- :ref:`NodePath<class_NodePath>` **get_path_to**\ (\ node\: :ref:`Node<class_Node>`, use_unique_path\: :ref:`bool<class_bool>` = false\ ) |const| :ref:`๐<class_Node_method_get_path_to>`
- Returns the relative :ref:`NodePath<class_NodePath>` from this node to the specified ``node``. Both nodes must be in the same :ref:`SceneTree<class_SceneTree>` or scene hierarchy, otherwise this method fails and returns an empty :ref:`NodePath<class_NodePath>`.
- If ``use_unique_path`` is ``true``, returns the shortest path accounting for this node's unique name (see :ref:`unique_name_in_owner<class_Node_property_unique_name_in_owner>`).
- \ **Note:** If you get a relative path which starts from a unique node, the path may be longer than a normal relative path, due to the addition of the unique node's name.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_physics_process_delta_time:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **get_physics_process_delta_time**\ (\ ) |const| :ref:`๐<class_Node_method_get_physics_process_delta_time>`
- Returns the time elapsed (in seconds) since the last physics callback. This value is identical to :ref:`_physics_process<class_Node_private_method__physics_process>`'s ``delta`` parameter, and is often consistent at run-time, unless :ref:`Engine.physics_ticks_per_second<class_Engine_property_physics_ticks_per_second>` is changed. See also :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_process_delta_time:
- .. rst-class:: classref-method
- :ref:`float<class_float>` **get_process_delta_time**\ (\ ) |const| :ref:`๐<class_Node_method_get_process_delta_time>`
- Returns the time elapsed (in seconds) since the last process callback. This value is identical to :ref:`_process<class_Node_private_method__process>`'s ``delta`` parameter, and may vary from frame to frame. See also :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_rpc_config:
- .. rst-class:: classref-method
- :ref:`Variant<class_Variant>` **get_rpc_config**\ (\ ) |const| :ref:`๐<class_Node_method_get_rpc_config>`
- Returns a :ref:`Dictionary<class_Dictionary>` mapping method names to their RPC configuration defined for this node using :ref:`rpc_config<class_Node_method_rpc_config>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_scene_instance_load_placeholder:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **get_scene_instance_load_placeholder**\ (\ ) |const| :ref:`๐<class_Node_method_get_scene_instance_load_placeholder>`
- Returns ``true`` if this node is an instance load placeholder. See :ref:`InstancePlaceholder<class_InstancePlaceholder>` and :ref:`set_scene_instance_load_placeholder<class_Node_method_set_scene_instance_load_placeholder>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_tree:
- .. rst-class:: classref-method
- :ref:`SceneTree<class_SceneTree>` **get_tree**\ (\ ) |const| :ref:`๐<class_Node_method_get_tree>`
- Returns the :ref:`SceneTree<class_SceneTree>` that contains this node. If this node is not inside the tree, generates an error and returns ``null``. See also :ref:`is_inside_tree<class_Node_method_is_inside_tree>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_tree_string:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_tree_string**\ (\ ) :ref:`๐<class_Node_method_get_tree_string>`
- Returns the tree as a :ref:`String<class_String>`. Used mainly for debugging purposes. This version displays the path relative to the current node, and is good for copy/pasting into the :ref:`get_node<class_Node_method_get_node>` function. It also can be used in game UI/UX.
- May print, for example:
- .. code:: text
- TheGame
- TheGame/Menu
- TheGame/Menu/Label
- TheGame/Menu/Camera2D
- TheGame/SplashScreen
- TheGame/SplashScreen/Camera2D
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_tree_string_pretty:
- .. rst-class:: classref-method
- :ref:`String<class_String>` **get_tree_string_pretty**\ (\ ) :ref:`๐<class_Node_method_get_tree_string_pretty>`
- Similar to :ref:`get_tree_string<class_Node_method_get_tree_string>`, this returns the tree as a :ref:`String<class_String>`. This version displays a more graphical representation similar to what is displayed in the Scene Dock. It is useful for inspecting larger trees.
- May print, for example:
- .. code:: text
- โโดTheGame
- โ โดMenu
- โ โ โดLabel
- โ โโดCamera2D
- โโดSplashScreen
- โโดCamera2D
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_viewport:
- .. rst-class:: classref-method
- :ref:`Viewport<class_Viewport>` **get_viewport**\ (\ ) |const| :ref:`๐<class_Node_method_get_viewport>`
- Returns the node's closest :ref:`Viewport<class_Viewport>` ancestor, if the node is inside the tree. Otherwise, returns ``null``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_get_window:
- .. rst-class:: classref-method
- :ref:`Window<class_Window>` **get_window**\ (\ ) |const| :ref:`๐<class_Node_method_get_window>`
- Returns the :ref:`Window<class_Window>` that contains this node. If the node is in the main window, this is equivalent to getting the root node (``get_tree().get_root()``).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_has_node:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_node**\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| :ref:`๐<class_Node_method_has_node>`
- Returns ``true`` if the ``path`` points to a valid node. See also :ref:`get_node<class_Node_method_get_node>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_has_node_and_resource:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **has_node_and_resource**\ (\ path\: :ref:`NodePath<class_NodePath>`\ ) |const| :ref:`๐<class_Node_method_has_node_and_resource>`
- Returns ``true`` if ``path`` points to a valid node and its subnames point to a valid :ref:`Resource<class_Resource>`, e.g. ``Area2D/CollisionShape2D:shape``. Properties that are not :ref:`Resource<class_Resource>` types (such as nodes or other :ref:`Variant<class_Variant>` types) are not considered. See also :ref:`get_node_and_resource<class_Node_method_get_node_and_resource>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_ancestor_of:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_ancestor_of**\ (\ node\: :ref:`Node<class_Node>`\ ) |const| :ref:`๐<class_Node_method_is_ancestor_of>`
- Returns ``true`` if the given ``node`` is a direct or indirect child of this node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_displayed_folded:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_displayed_folded**\ (\ ) |const| :ref:`๐<class_Node_method_is_displayed_folded>`
- Returns ``true`` if the node is folded (collapsed) in the Scene dock. This method is intended to be used in editor plugins and tools. See also :ref:`set_display_folded<class_Node_method_set_display_folded>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_editable_instance:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_editable_instance**\ (\ node\: :ref:`Node<class_Node>`\ ) |const| :ref:`๐<class_Node_method_is_editable_instance>`
- Returns ``true`` if ``node`` has editable children enabled relative to this node. This method is intended to be used in editor plugins and tools. See also :ref:`set_editable_instance<class_Node_method_set_editable_instance>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_greater_than:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_greater_than**\ (\ node\: :ref:`Node<class_Node>`\ ) |const| :ref:`๐<class_Node_method_is_greater_than>`
- Returns ``true`` if the given ``node`` occurs later in the scene hierarchy than this node. A node occurring later is usually processed last.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_in_group:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_in_group**\ (\ group\: :ref:`StringName<class_StringName>`\ ) |const| :ref:`๐<class_Node_method_is_in_group>`
- Returns ``true`` if this node has been added to the given ``group``. See :ref:`add_to_group<class_Node_method_add_to_group>` and :ref:`remove_from_group<class_Node_method_remove_from_group>`. See also notes in the description, and the :ref:`SceneTree<class_SceneTree>`'s group methods.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_inside_tree:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_inside_tree**\ (\ ) |const| :ref:`๐<class_Node_method_is_inside_tree>`
- Returns ``true`` if this node is currently inside a :ref:`SceneTree<class_SceneTree>`. See also :ref:`get_tree<class_Node_method_get_tree>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_multiplayer_authority:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_multiplayer_authority**\ (\ ) |const| :ref:`๐<class_Node_method_is_multiplayer_authority>`
- Returns ``true`` if the local system is the multiplayer authority of this node.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_node_ready:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_node_ready**\ (\ ) |const| :ref:`๐<class_Node_method_is_node_ready>`
- Returns ``true`` if the node is ready, i.e. it's inside scene tree and all its children are initialized.
- \ :ref:`request_ready<class_Node_method_request_ready>` resets it back to ``false``.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_part_of_edited_scene:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_part_of_edited_scene**\ (\ ) |const| :ref:`๐<class_Node_method_is_part_of_edited_scene>`
- Returns ``true`` if the node is part of the scene currently opened in the editor.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_physics_interpolated:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_physics_interpolated**\ (\ ) |const| :ref:`๐<class_Node_method_is_physics_interpolated>`
- Returns ``true`` if physics interpolation is enabled for this node (see :ref:`physics_interpolation_mode<class_Node_property_physics_interpolation_mode>`).
- \ **Note:** Interpolation will only be active if both the flag is set **and** physics interpolation is enabled within the :ref:`SceneTree<class_SceneTree>`. This can be tested using :ref:`is_physics_interpolated_and_enabled<class_Node_method_is_physics_interpolated_and_enabled>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_physics_interpolated_and_enabled:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_physics_interpolated_and_enabled**\ (\ ) |const| :ref:`๐<class_Node_method_is_physics_interpolated_and_enabled>`
- Returns ``true`` if physics interpolation is enabled (see :ref:`physics_interpolation_mode<class_Node_property_physics_interpolation_mode>`) **and** enabled in the :ref:`SceneTree<class_SceneTree>`.
- This is a convenience version of :ref:`is_physics_interpolated<class_Node_method_is_physics_interpolated>` that also checks whether physics interpolation is enabled globally.
- See :ref:`SceneTree.physics_interpolation<class_SceneTree_property_physics_interpolation>` and :ref:`ProjectSettings.physics/common/physics_interpolation<class_ProjectSettings_property_physics/common/physics_interpolation>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_physics_processing:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_physics_processing**\ (\ ) |const| :ref:`๐<class_Node_method_is_physics_processing>`
- Returns ``true`` if physics processing is enabled (see :ref:`set_physics_process<class_Node_method_set_physics_process>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_physics_processing_internal:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_physics_processing_internal**\ (\ ) |const| :ref:`๐<class_Node_method_is_physics_processing_internal>`
- Returns ``true`` if internal physics processing is enabled (see :ref:`set_physics_process_internal<class_Node_method_set_physics_process_internal>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing>`
- Returns ``true`` if processing is enabled (see :ref:`set_process<class_Node_method_set_process>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing_input:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing_input**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing_input>`
- Returns ``true`` if the node is processing input (see :ref:`set_process_input<class_Node_method_set_process_input>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing_internal:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing_internal**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing_internal>`
- Returns ``true`` if internal processing is enabled (see :ref:`set_process_internal<class_Node_method_set_process_internal>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing_shortcut_input:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing_shortcut_input**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing_shortcut_input>`
- Returns ``true`` if the node is processing shortcuts (see :ref:`set_process_shortcut_input<class_Node_method_set_process_shortcut_input>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing_unhandled_input:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing_unhandled_input**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing_unhandled_input>`
- Returns ``true`` if the node is processing unhandled input (see :ref:`set_process_unhandled_input<class_Node_method_set_process_unhandled_input>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_is_processing_unhandled_key_input:
- .. rst-class:: classref-method
- :ref:`bool<class_bool>` **is_processing_unhandled_key_input**\ (\ ) |const| :ref:`๐<class_Node_method_is_processing_unhandled_key_input>`
- Returns ``true`` if the node is processing unhandled key input (see :ref:`set_process_unhandled_key_input<class_Node_method_set_process_unhandled_key_input>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_move_child:
- .. rst-class:: classref-method
- |void| **move_child**\ (\ child_node\: :ref:`Node<class_Node>`, to_index\: :ref:`int<class_int>`\ ) :ref:`๐<class_Node_method_move_child>`
- Moves ``child_node`` to the given index. A node's index is the order among its siblings. If ``to_index`` is negative, the index is counted from the end of the list. See also :ref:`get_child<class_Node_method_get_child>` and :ref:`get_index<class_Node_method_get_index>`.
- \ **Note:** The processing order of several engine callbacks (:ref:`_ready<class_Node_private_method__ready>`, :ref:`_process<class_Node_private_method__process>`, etc.) and notifications sent through :ref:`propagate_notification<class_Node_method_propagate_notification>` is affected by tree order. :ref:`CanvasItem<class_CanvasItem>` nodes are also rendered in tree order. See also :ref:`process_priority<class_Node_property_process_priority>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_notify_deferred_thread_group:
- .. rst-class:: classref-method
- |void| **notify_deferred_thread_group**\ (\ what\: :ref:`int<class_int>`\ ) :ref:`๐<class_Node_method_notify_deferred_thread_group>`
- Similar to :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>`, but for notifications.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_notify_thread_safe:
- .. rst-class:: classref-method
- |void| **notify_thread_safe**\ (\ what\: :ref:`int<class_int>`\ ) :ref:`๐<class_Node_method_notify_thread_safe>`
- Similar to :ref:`call_thread_safe<class_Node_method_call_thread_safe>`, but for notifications.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_print_orphan_nodes:
- .. rst-class:: classref-method
- |void| **print_orphan_nodes**\ (\ ) |static| :ref:`๐<class_Node_method_print_orphan_nodes>`
- Prints all orphan nodes (nodes outside the :ref:`SceneTree<class_SceneTree>`). Useful for debugging.
- \ **Note:** This method only works in debug builds. Does nothing in a project exported in release mode.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_print_tree:
- .. rst-class:: classref-method
- |void| **print_tree**\ (\ ) :ref:`๐<class_Node_method_print_tree>`
- Prints the node and its children to the console, recursively. The node does not have to be inside the tree. This method outputs :ref:`NodePath<class_NodePath>`\ s relative to this node, and is good for copy/pasting into :ref:`get_node<class_Node_method_get_node>`. See also :ref:`print_tree_pretty<class_Node_method_print_tree_pretty>`.
- May print, for example:
- .. code:: text
- .
- Menu
- Menu/Label
- Menu/Camera2D
- SplashScreen
- SplashScreen/Camera2D
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_print_tree_pretty:
- .. rst-class:: classref-method
- |void| **print_tree_pretty**\ (\ ) :ref:`๐<class_Node_method_print_tree_pretty>`
- Prints the node and its children to the console, recursively. The node does not have to be inside the tree. Similar to :ref:`print_tree<class_Node_method_print_tree>`, but the graphical representation looks like what is displayed in the editor's Scene dock. It is useful for inspecting larger trees.
- May print, for example:
- .. code:: text
- โโดTheGame
- โ โดMenu
- โ โ โดLabel
- โ โโดCamera2D
- โโดSplashScreen
- โโดCamera2D
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_propagate_call:
- .. rst-class:: classref-method
- |void| **propagate_call**\ (\ method\: :ref:`StringName<class_StringName>`, args\: :ref:`Array<class_Array>` = [], parent_first\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_Node_method_propagate_call>`
- Calls the given ``method`` name, passing ``args`` as arguments, on this node and all of its children, recursively.
- If ``parent_first`` is ``true``, the method is called on this node first, then on all of its children. If ``false``, the children's methods are called first.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_propagate_notification:
- .. rst-class:: classref-method
- |void| **propagate_notification**\ (\ what\: :ref:`int<class_int>`\ ) :ref:`๐<class_Node_method_propagate_notification>`
- Calls :ref:`Object.notification<class_Object_method_notification>` with ``what`` on this node and all of its children, recursively.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_queue_free:
- .. rst-class:: classref-method
- |void| **queue_free**\ (\ ) :ref:`๐<class_Node_method_queue_free>`
- Queues this node to be deleted at the end of the current frame. When deleted, all of its children are deleted as well, and all references to the node and its children become invalid.
- Unlike with :ref:`Object.free<class_Object_method_free>`, the node is not deleted instantly, and it can still be accessed before deletion. It is also safe to call :ref:`queue_free<class_Node_method_queue_free>` multiple times. Use :ref:`Object.is_queued_for_deletion<class_Object_method_is_queued_for_deletion>` to check if the node will be deleted at the end of the frame.
- \ **Note:** The node will only be freed after all other deferred calls are finished. Using this method is not always the same as calling :ref:`Object.free<class_Object_method_free>` through :ref:`Object.call_deferred<class_Object_method_call_deferred>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_remove_child:
- .. rst-class:: classref-method
- |void| **remove_child**\ (\ node\: :ref:`Node<class_Node>`\ ) :ref:`๐<class_Node_method_remove_child>`
- Removes a child ``node``. The ``node``, along with its children, are **not** deleted. To delete a node, see :ref:`queue_free<class_Node_method_queue_free>`.
- \ **Note:** When this node is inside the tree, this method sets the :ref:`owner<class_Node_property_owner>` of the removed ``node`` (or its descendants) to ``null``, if their :ref:`owner<class_Node_property_owner>` is no longer an ancestor (see :ref:`is_ancestor_of<class_Node_method_is_ancestor_of>`).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_remove_from_group:
- .. rst-class:: classref-method
- |void| **remove_from_group**\ (\ group\: :ref:`StringName<class_StringName>`\ ) :ref:`๐<class_Node_method_remove_from_group>`
- Removes the node from the given ``group``. Does nothing if the node is not in the ``group``. See also notes in the description, and the :ref:`SceneTree<class_SceneTree>`'s group methods.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_reparent:
- .. rst-class:: classref-method
- |void| **reparent**\ (\ new_parent\: :ref:`Node<class_Node>`, keep_global_transform\: :ref:`bool<class_bool>` = true\ ) :ref:`๐<class_Node_method_reparent>`
- Changes the parent of this **Node** to the ``new_parent``. The node needs to already have a parent. The node's :ref:`owner<class_Node_property_owner>` is preserved if its owner is still reachable from the new location (i.e., the node is still a descendant of the new parent after the operation).
- If ``keep_global_transform`` is ``true``, the node's global transform will be preserved if supported. :ref:`Node2D<class_Node2D>`, :ref:`Node3D<class_Node3D>` and :ref:`Control<class_Control>` support this argument (but :ref:`Control<class_Control>` keeps only position).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_replace_by:
- .. rst-class:: classref-method
- |void| **replace_by**\ (\ node\: :ref:`Node<class_Node>`, keep_groups\: :ref:`bool<class_bool>` = false\ ) :ref:`๐<class_Node_method_replace_by>`
- Replaces this node by the given ``node``. All children of this node are moved to ``node``.
- If ``keep_groups`` is ``true``, the ``node`` is added to the same groups that the replaced node is in (see :ref:`add_to_group<class_Node_method_add_to_group>`).
- \ **Warning:** The replaced node is removed from the tree, but it is **not** deleted. To prevent memory leaks, store a reference to the node in a variable, or use :ref:`Object.free<class_Object_method_free>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_request_ready:
- .. rst-class:: classref-method
- |void| **request_ready**\ (\ ) :ref:`๐<class_Node_method_request_ready>`
- Requests :ref:`_ready<class_Node_private_method__ready>` to be called again the next time the node enters the tree. Does **not** immediately call :ref:`_ready<class_Node_private_method__ready>`.
- \ **Note:** This method only affects the current node. If the node's children also need to request ready, this method needs to be called for each one of them. When the node and its children enter the tree again, the order of :ref:`_ready<class_Node_private_method__ready>` callbacks will be the same as normal.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_reset_physics_interpolation:
- .. rst-class:: classref-method
- |void| **reset_physics_interpolation**\ (\ ) :ref:`๐<class_Node_method_reset_physics_interpolation>`
- When physics interpolation is active, moving a node to a radically different transform (such as placement within a level) can result in a visible glitch as the object is rendered moving from the old to new position over the physics tick.
- That glitch can be prevented by calling this method, which temporarily disables interpolation until the physics tick is complete.
- The notification :ref:`NOTIFICATION_RESET_PHYSICS_INTERPOLATION<class_Node_constant_NOTIFICATION_RESET_PHYSICS_INTERPOLATION>` will be received by the node and all children recursively.
- \ **Note:** This function should be called **after** moving the node, rather than before.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_rpc:
- .. rst-class:: classref-method
- :ref:`Error<enum_@GlobalScope_Error>` **rpc**\ (\ method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`๐<class_Node_method_rpc>`
- Sends a remote procedure call request for the given ``method`` to peers on the network (and locally), sending additional arguments to the method called by the RPC. The call request will only be received by nodes with the same :ref:`NodePath<class_NodePath>`, including the exact same :ref:`name<class_Node_property_name>`. Behavior depends on the RPC configuration for the given ``method`` (see :ref:`rpc_config<class_Node_method_rpc_config>` and :ref:`@GDScript.@rpc<class_@GDScript_annotation_@rpc>`). By default, methods are not exposed to RPCs.
- May return :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` if the call is successful, :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>` if the arguments passed in the ``method`` do not match, :ref:`@GlobalScope.ERR_UNCONFIGURED<class_@GlobalScope_constant_ERR_UNCONFIGURED>` if the node's :ref:`multiplayer<class_Node_property_multiplayer>` cannot be fetched (such as when the node is not inside the tree), :ref:`@GlobalScope.ERR_CONNECTION_ERROR<class_@GlobalScope_constant_ERR_CONNECTION_ERROR>` if :ref:`multiplayer<class_Node_property_multiplayer>`'s connection is not available.
- \ **Note:** You can only safely use RPCs on clients after you received the :ref:`MultiplayerAPI.connected_to_server<class_MultiplayerAPI_signal_connected_to_server>` signal from the :ref:`MultiplayerAPI<class_MultiplayerAPI>`. You also need to keep track of the connection state, either by the :ref:`MultiplayerAPI<class_MultiplayerAPI>` signals like :ref:`MultiplayerAPI.server_disconnected<class_MultiplayerAPI_signal_server_disconnected>` or by checking (``get_multiplayer().peer.get_connection_status() == CONNECTION_CONNECTED``).
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_rpc_config:
- .. rst-class:: classref-method
- |void| **rpc_config**\ (\ method\: :ref:`StringName<class_StringName>`, config\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_Node_method_rpc_config>`
- Changes the RPC configuration for the given ``method``. ``config`` should either be ``null`` to disable the feature (as by default), or a :ref:`Dictionary<class_Dictionary>` containing the following entries:
- - ``rpc_mode``: see :ref:`RPCMode<enum_MultiplayerAPI_RPCMode>`;
- - ``transfer_mode``: see :ref:`TransferMode<enum_MultiplayerPeer_TransferMode>`;
- - ``call_local``: if ``true``, the method will also be called locally;
- - ``channel``: an :ref:`int<class_int>` representing the channel to send the RPC on.
- \ **Note:** In GDScript, this method corresponds to the :ref:`@GDScript.@rpc<class_@GDScript_annotation_@rpc>` annotation, with various parameters passed (``@rpc(any)``, ``@rpc(authority)``...). See also the :doc:`high-level multiplayer <../tutorials/networking/high_level_multiplayer>` tutorial.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_rpc_id:
- .. rst-class:: classref-method
- :ref:`Error<enum_@GlobalScope_Error>` **rpc_id**\ (\ peer_id\: :ref:`int<class_int>`, method\: :ref:`StringName<class_StringName>`, ...\ ) |vararg| :ref:`๐<class_Node_method_rpc_id>`
- Sends a :ref:`rpc<class_Node_method_rpc>` to a specific peer identified by ``peer_id`` (see :ref:`MultiplayerPeer.set_target_peer<class_MultiplayerPeer_method_set_target_peer>`).
- May return :ref:`@GlobalScope.OK<class_@GlobalScope_constant_OK>` if the call is successful, :ref:`@GlobalScope.ERR_INVALID_PARAMETER<class_@GlobalScope_constant_ERR_INVALID_PARAMETER>` if the arguments passed in the ``method`` do not match, :ref:`@GlobalScope.ERR_UNCONFIGURED<class_@GlobalScope_constant_ERR_UNCONFIGURED>` if the node's :ref:`multiplayer<class_Node_property_multiplayer>` cannot be fetched (such as when the node is not inside the tree), :ref:`@GlobalScope.ERR_CONNECTION_ERROR<class_@GlobalScope_constant_ERR_CONNECTION_ERROR>` if :ref:`multiplayer<class_Node_property_multiplayer>`'s connection is not available.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_deferred_thread_group:
- .. rst-class:: classref-method
- |void| **set_deferred_thread_group**\ (\ property\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_Node_method_set_deferred_thread_group>`
- Similar to :ref:`call_deferred_thread_group<class_Node_method_call_deferred_thread_group>`, but for setting properties.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_display_folded:
- .. rst-class:: classref-method
- |void| **set_display_folded**\ (\ fold\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_display_folded>`
- If set to ``true``, the node appears folded in the Scene dock. As a result, all of its children are hidden. This method is intended to be used in editor plugins and tools, but it also works in release builds. See also :ref:`is_displayed_folded<class_Node_method_is_displayed_folded>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_editable_instance:
- .. rst-class:: classref-method
- |void| **set_editable_instance**\ (\ node\: :ref:`Node<class_Node>`, is_editable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_editable_instance>`
- Set to ``true`` to allow all nodes owned by ``node`` to be available, and editable, in the Scene dock, even if their :ref:`owner<class_Node_property_owner>` is not the scene root. This method is intended to be used in editor plugins and tools, but it also works in release builds. See also :ref:`is_editable_instance<class_Node_method_is_editable_instance>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_multiplayer_authority:
- .. rst-class:: classref-method
- |void| **set_multiplayer_authority**\ (\ id\: :ref:`int<class_int>`, recursive\: :ref:`bool<class_bool>` = true\ ) :ref:`๐<class_Node_method_set_multiplayer_authority>`
- Sets the node's multiplayer authority to the peer with the given peer ``id``. The multiplayer authority is the peer that has authority over the node on the network. Defaults to peer ID 1 (the server). Useful in conjunction with :ref:`rpc_config<class_Node_method_rpc_config>` and the :ref:`MultiplayerAPI<class_MultiplayerAPI>`.
- If ``recursive`` is ``true``, the given peer is recursively set as the authority for all children of this node.
- \ **Warning:** This does **not** automatically replicate the new authority to other peers. It is the developer's responsibility to do so. You may replicate the new authority's information using :ref:`MultiplayerSpawner.spawn_function<class_MultiplayerSpawner_property_spawn_function>`, an RPC, or a :ref:`MultiplayerSynchronizer<class_MultiplayerSynchronizer>`. Furthermore, the parent's authority does **not** propagate to newly added children.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_physics_process:
- .. rst-class:: classref-method
- |void| **set_physics_process**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_physics_process>`
- If set to ``true``, enables physics (fixed framerate) processing. When a node is being processed, it will receive a :ref:`NOTIFICATION_PHYSICS_PROCESS<class_Node_constant_NOTIFICATION_PHYSICS_PROCESS>` at a fixed (usually 60 FPS, see :ref:`Engine.physics_ticks_per_second<class_Engine_property_physics_ticks_per_second>` to change) interval (and the :ref:`_physics_process<class_Node_private_method__physics_process>` callback will be called if it exists).
- \ **Note:** If :ref:`_physics_process<class_Node_private_method__physics_process>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_physics_process_internal:
- .. rst-class:: classref-method
- |void| **set_physics_process_internal**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_physics_process_internal>`
- If set to ``true``, enables internal physics for this node. Internal physics processing happens in isolation from the normal :ref:`_physics_process<class_Node_private_method__physics_process>` calls and is used by some nodes internally to guarantee proper functioning even if the node is paused or physics processing is disabled for scripting (:ref:`set_physics_process<class_Node_method_set_physics_process>`).
- \ **Warning:** Built-in nodes rely on internal processing for their internal logic. Disabling it is unsafe and may lead to unexpected behavior. Use this method if you know what you are doing.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process:
- .. rst-class:: classref-method
- |void| **set_process**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process>`
- If set to ``true``, enables processing. When a node is being processed, it will receive a :ref:`NOTIFICATION_PROCESS<class_Node_constant_NOTIFICATION_PROCESS>` on every drawn frame (and the :ref:`_process<class_Node_private_method__process>` callback will be called if it exists).
- \ **Note:** If :ref:`_process<class_Node_private_method__process>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called.
- \ **Note:** This method only affects the :ref:`_process<class_Node_private_method__process>` callback, i.e. it has no effect on other callbacks like :ref:`_physics_process<class_Node_private_method__physics_process>`. If you want to disable all processing for the node, set :ref:`process_mode<class_Node_property_process_mode>` to :ref:`PROCESS_MODE_DISABLED<class_Node_constant_PROCESS_MODE_DISABLED>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process_input:
- .. rst-class:: classref-method
- |void| **set_process_input**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process_input>`
- If set to ``true``, enables input processing.
- \ **Note:** If :ref:`_input<class_Node_private_method__input>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called. Input processing is also already enabled for GUI controls, such as :ref:`Button<class_Button>` and :ref:`TextEdit<class_TextEdit>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process_internal:
- .. rst-class:: classref-method
- |void| **set_process_internal**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process_internal>`
- If set to ``true``, enables internal processing for this node. Internal processing happens in isolation from the normal :ref:`_process<class_Node_private_method__process>` calls and is used by some nodes internally to guarantee proper functioning even if the node is paused or processing is disabled for scripting (:ref:`set_process<class_Node_method_set_process>`).
- \ **Warning:** Built-in nodes rely on internal processing for their internal logic. Disabling it is unsafe and may lead to unexpected behavior. Use this method if you know what you are doing.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process_shortcut_input:
- .. rst-class:: classref-method
- |void| **set_process_shortcut_input**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process_shortcut_input>`
- If set to ``true``, enables shortcut processing for this node.
- \ **Note:** If :ref:`_shortcut_input<class_Node_private_method__shortcut_input>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process_unhandled_input:
- .. rst-class:: classref-method
- |void| **set_process_unhandled_input**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process_unhandled_input>`
- If set to ``true``, enables unhandled input processing. It enables the node to receive all input that was not previously handled (usually by a :ref:`Control<class_Control>`).
- \ **Note:** If :ref:`_unhandled_input<class_Node_private_method__unhandled_input>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called. Unhandled input processing is also already enabled for GUI controls, such as :ref:`Button<class_Button>` and :ref:`TextEdit<class_TextEdit>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_process_unhandled_key_input:
- .. rst-class:: classref-method
- |void| **set_process_unhandled_key_input**\ (\ enable\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_process_unhandled_key_input>`
- If set to ``true``, enables unhandled key input processing.
- \ **Note:** If :ref:`_unhandled_key_input<class_Node_private_method__unhandled_key_input>` is overridden, this will be automatically enabled before :ref:`_ready<class_Node_private_method__ready>` is called.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_scene_instance_load_placeholder:
- .. rst-class:: classref-method
- |void| **set_scene_instance_load_placeholder**\ (\ load_placeholder\: :ref:`bool<class_bool>`\ ) :ref:`๐<class_Node_method_set_scene_instance_load_placeholder>`
- If set to ``true``, the node becomes a :ref:`InstancePlaceholder<class_InstancePlaceholder>` when packed and instantiated from a :ref:`PackedScene<class_PackedScene>`. See also :ref:`get_scene_instance_load_placeholder<class_Node_method_get_scene_instance_load_placeholder>`.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_thread_safe:
- .. rst-class:: classref-method
- |void| **set_thread_safe**\ (\ property\: :ref:`StringName<class_StringName>`, value\: :ref:`Variant<class_Variant>`\ ) :ref:`๐<class_Node_method_set_thread_safe>`
- Similar to :ref:`call_thread_safe<class_Node_method_call_thread_safe>`, but for setting properties.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_set_translation_domain_inherited:
- .. rst-class:: classref-method
- |void| **set_translation_domain_inherited**\ (\ ) :ref:`๐<class_Node_method_set_translation_domain_inherited>`
- Makes this node inherit the translation domain from its parent node. If this node has no parent, the main translation domain will be used.
- This is the default behavior for all nodes. Calling :ref:`Object.set_translation_domain<class_Object_method_set_translation_domain>` disables this behavior.
- .. rst-class:: classref-item-separator
- ----
- .. _class_Node_method_update_configuration_warnings:
- .. rst-class:: classref-method
- |void| **update_configuration_warnings**\ (\ ) :ref:`๐<class_Node_method_update_configuration_warnings>`
- Refreshes the warnings displayed for this node in the Scene dock. Use :ref:`_get_configuration_warnings<class_Node_private_method__get_configuration_warnings>` to customize the warning messages to display.
- .. |virtual| replace:: :abbr:`virtual (This method should typically be overridden by the user to have any effect.)`
- .. |const| replace:: :abbr:`const (This method has no side effects. It doesn't modify any of the instance's member variables.)`
- .. |vararg| replace:: :abbr:`vararg (This method accepts any number of arguments after the ones described here.)`
- .. |constructor| replace:: :abbr:`constructor (This method is used to construct a type.)`
- .. |static| replace:: :abbr:`static (This method doesn't need an instance to be called, so it can be called directly using the class name.)`
- .. |operator| replace:: :abbr:`operator (This method describes a valid operator to use with this type as left-hand operand.)`
- .. |bitfield| replace:: :abbr:`BitField (This value is an integer composed as a bitmask of the following flags.)`
- .. |void| replace:: :abbr:`void (No return value.)`
|