You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Godot 4.1rc1, opening .tscn files formatted for Godot 3 doesn't upgrade them properly--if a node has a property whose name was changed in Godot 4, the property is destroyed rather than upgraded (reset when the scene is opened, removed when the scene is saved).
Examples I've found are TextureRect and TouchScreenButton. When I open scenes containing those, I find that the TextureRect's positioning has been reset to 0,0 (because margin_ properties were renamed to offset_) and the TouchScreenButton's graphics have been removed (because normal and pressed were renamed to texture_normal and texture_pressed).
Expected behavior is that, instead of vanishing into the aether, properties with changed names are updated to their new names when loaded in Godot 4, respecting the type of the node and making any changes required to preserve data in the new API.
Steps to reproduce
In Godot 3, open the repro project labeled "Godot3" and the scene named GD3Scene.tscn.
Observe that the TextureRect is roughly in the middle of the scene's screen outline, with its anchors far above and to the left.
Inspect GD3Scene.tscn in a text editor. Observe that the node named "TextureRect" has properties margin_left, margin_top, etc.
Copy GD3Scene.tscn into the repro project labeled "Godot4."
In Godot 4.1, open project "Godot4" and the copied scene.
Observe that the TextureRect is at the top-left of the screen outline, touching its anchors.
Without modifying anything, save the scene.
Inspect the saved version of GD3Scene.tscn in a text editor. Observe that "TextureRect" has lost all properties except texture.
Are you using the converter? It sounds like you don't, you can't open scenes from 3.x in 4.x directly and expect correct results, you need to run the project converter, see here
Godot version
v4.1.beta1.official [828ec2c]
System information
Godot v4.1.beta1 - Windows 10.0.19045 - Vulkan (Forward+) - dedicated NVIDIA GeForce RTX 2070 SUPER (NVIDIA; 30.0.14.7247) - AMD Ryzen 7 3700X 8-Core Processor (16 Threads)
Issue description
In Godot 4.1rc1, opening .tscn files formatted for Godot 3 doesn't upgrade them properly--if a node has a property whose name was changed in Godot 4, the property is destroyed rather than upgraded (reset when the scene is opened, removed when the scene is saved).
Examples I've found are TextureRect and TouchScreenButton. When I open scenes containing those, I find that the TextureRect's positioning has been reset to 0,0 (because
margin_
properties were renamed tooffset_
) and the TouchScreenButton's graphics have been removed (becausenormal
andpressed
were renamed totexture_normal
andtexture_pressed
).Expected behavior is that, instead of vanishing into the aether, properties with changed names are updated to their new names when loaded in Godot 4, respecting the type of the node and making any changes required to preserve data in the new API.
Steps to reproduce
GD3Scene.tscn
.GD3Scene.tscn
in a text editor. Observe that the node named "TextureRect" has propertiesmargin_left
,margin_top
, etc.GD3Scene.tscn
into the repro project labeled "Godot4."GD3Scene.tscn
in a text editor. Observe that "TextureRect" has lost all properties excepttexture
.Minimal reproduction project
GD4 Scene Convert Problem.zip
The text was updated successfully, but these errors were encountered: