Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Function _exit_tree() is not called properly in editor mode #98752

Open
newselftt opened this issue Nov 2, 2024 · 0 comments
Open

Function _exit_tree() is not called properly in editor mode #98752

newselftt opened this issue Nov 2, 2024 · 0 comments

Comments

@newselftt
Copy link

Tested versions

v4.3.stable

System information

Godot v4.3.stable (77dcf97) - Windows 10.0.22621 - Vulkan (Mobile) - dedicated NVIDIA GeForce RTX 4070 Ti (NVIDIA; 32.0.15.6094) - 13th Gen Intel(R) Core(TM) i5-13600KF (20 Threads)

Issue description

extends Node2D


func _enter_tree() -> void:
	print("_enter_tree")
	pass


# Called when the node enters the scene tree for the first time.
func _ready() -> void:
	print("_ready")
	pass # Replace with function body.


func _exit_tree() -> void:
	print("_exit_tree")
	pass

I expect the print result:

_enter_tree
_ready
_exit_tree

But currently the print result:

_enter_tree
_ready

Steps to reproduce

Run the project in the editor and close the window.
Check the print results.

Minimal reproduction project (MRP)

bugtest.zip

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants