其实一般要切换场景的话,一般是推荐使用一个根节点,然后场景作为子节点,使用实例化来加载和删除场景(这样就无需使用change_scene来更改场景了)不过这种架构问题一般是项目开始前考虑的,如果已经做到一半了,那架构确实不好改了。考虑到你的项目可能是这种情况,可以使用这个方法:在change_scene前,先使用remove_child()...
Godot v4.4.dev5 - Windows 10.0.26100 - Multi-window, 2 monitors - OpenGL 3 (Compatibility) - AMD Radeon RX 6700 XT (Advanced Micro Devices, Inc.; 32.0.12019.1028) - Intel(R) Core(TM) i5-9600K CPU @ 3.70GHz (6 threads) Issue description Changing the current scene in a node's _...
That's from someone with more than 5 years of Godot experience. I can only imagine stuff like this would be a lot more confusing for someone starting out. Please keep in mind how most of you are daily work with the Godot source, that's not the experience or background knowledge of mos...
Godot 4.4.dev3 - Compatibility renderer System information Android 14 Issue description animation get detach from mesh when changeing scene. It also happening when changeing animation player property. But the animation is working well when playing in game. Steps to reproduce Added .glb model animati...
Tested versions Reproducible in 4.1.3.stable.mono System information Godot v4.1.3.stable.mono - Windows 10.0.22621 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 31.0.15.3667) - AMD Ryzen 7 3700X 8-Core Processor ...
Closesgodotengine/godot-docs#4089 Mention that change_scene is deferred 86aa9b1 KoBeWiaddedenhancementtopic:coredocumentationcherrypick:3.xConsidered for cherry-picking into a future 3.x releaselabelsDec 27, 2020 KoBeWiadded this to the4.0milestoneDec 27, 2020 ...
Godot version 4.0.2 System information Windows 10 Issue description I created a button that, when pressed, called change_scene_to_packed() with a PackedScene variable as the target. The variable is exported into the editor, where I can then drag and drop a scene into it for the button to...
Godot version: 3.0 OS/device including version: Issue description: With a signal scene_changed(from_scene, to_scene), from_scene and to_scene and is a type of node , we can easily handle different scenes change event in a common place. S...
Closes godotengine/godot-proposals#4847 In the AnimationPlayer, left clicking the path name allows the user to type in a new path. This change adds a right-click menu with the following options: Change Target Node - Opens a SceneTreeDialog to select a new node, changing the target node to...
Godot version v4.2.beta4.official [93cdacb] System information Windows 10 Issue description get_tree() returns null when called immediately after calling change_scene_to_file() in _process() or _physics_process(). The error printed in de...