其实一般要切换场景的话,一般是推荐使用一个根节点,然后场景作为子节点,使用实例化来加载和删除场景(这样就无需使用change_scene来更改场景了)不过这种架构问题一般是项目开始前考虑的,如果已经做到一半了,那架构确实不好改了。考虑到你的项目可能是这种情况,可以使用这个方法:在change_scene前,先使用remove_child()...
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...
I'm following an implementation pattern similar to this blog post: https://godotengine.org/article/multiplayer-in-godot-4-0-scene-replication/ Essentially, when a Node is spawned, and the multiplayer authority of a child MultiplayerSynchronizer node is changed during _ready() or _enter_tree()...
it is open in the Godot script editor. The issue is that even if the script editor is disabled, it will continue to open up the dominant script on scene change and while files are open in Godot's script editor, the file change message will continue to appear when you modify those ...
The performance improvement on the SceneTreeEditor caused the previous state of the SceneTreeEditor::marked HashSet to matter, when it previously was always just overwritten when markings changed. The old code thus had no reason to ever clear the marking list. We now make sure that whether the...
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: 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...