mirror of
https://github.com/godotengine/godot-docs.git
synced 2026-01-03 05:48:42 +03:00
Update scripting_continued.rst
Fixed comment for QueueFree/queue_free example.
This commit is contained in:
@@ -327,13 +327,13 @@ This erases the node safely during idle.
|
||||
.. code-tab:: gdscript GDScript
|
||||
|
||||
func _someaction():
|
||||
s.queue_free() # immediately removes the node from the scene and frees it
|
||||
s.queue_free() # immediately removes the node from the scene and queues it to be freed at idle time
|
||||
|
||||
.. code-tab:: csharp
|
||||
|
||||
public void _SomeAction()
|
||||
{
|
||||
_sprite.QueueFree(); // immediately removes the node from the scene and frees it
|
||||
_sprite.QueueFree(); // immediately removes the node from the scene and queues it to be freed at idle time
|
||||
}
|
||||
|
||||
Instancing scenes
|
||||
|
||||
Reference in New Issue
Block a user