Browse Source

Fixing Autoload(Singletons) Demo for Godot 4

Not really any fixing were required, some data changed between versions
when opening and testing everything. Did some changes to the project
settings (2d to canvas_items). Everything works fine without problems.

Change to Vulkan Mobile
Voylin 3 years ago
parent
commit
7d7c08ad54

+ 1 - 1
loading/autoload/README.md

@@ -4,7 +4,7 @@ This demo shows how to use autoloads to change between scenes.
 
 
 Language: GDScript
 Language: GDScript
 
 
-Renderer: GLES 2
+Renderer: Vulkan Mobile
 
 
 Check out this demo on the asset library: https://godotengine.org/asset-library/asset/529
 Check out this demo on the asset library: https://godotengine.org/asset-library/asset/529
 
 

+ 4 - 10
loading/autoload/project.godot

@@ -6,13 +6,14 @@
 ;   [section] ; section goes between []
 ;   [section] ; section goes between []
 ;   param=value ; assign values to parameters
 ;   param=value ; assign values to parameters
 
 
-config_version=4
+config_version=5
 
 
 [application]
 [application]
 
 
 config/name="Autoload (Singletons)"
 config/name="Autoload (Singletons)"
 config/description="This demo shows how to use autoloads to change between scenes."
 config/description="This demo shows how to use autoloads to change between scenes."
 run/main_scene="res://scene_a.tscn"
 run/main_scene="res://scene_a.tscn"
+config/features=PackedStringArray("4.0")
 
 
 [autoload]
 [autoload]
 
 
@@ -20,20 +21,13 @@ global="res://global.gd"
 
 
 [display]
 [display]
 
 
-window/dpi/allow_hidpi=true
-window/stretch/mode="2d"
+window/stretch/mode="canvas_items"
 window/stretch/aspect="expand"
 window/stretch/aspect="expand"
 
 
 [gdnative]
 [gdnative]
 
 
 singletons=[]
 singletons=[]
 
 
-[memory]
-
-multithread/thread_rid_pool_prealloc=60
-
 [rendering]
 [rendering]
 
 
-quality/driver/driver_name="GLES2"
-vram_compression/import_etc=true
-vram_compression/import_etc2=false
+vulkan/rendering/back_end=1

+ 3 - 3
loading/autoload/scene_a.tscn

@@ -1,13 +1,13 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=2 format=3 uid="uid://bh2ylkcsgejgy"]
 
 
-[ext_resource path="res://scene_a.gd" type="Script" id=1]
+[ext_resource type="Script" path="res://scene_a.gd" id="1"]
 
 
 [node name="SceneA" type="Panel"]
 [node name="SceneA" type="Panel"]
 anchor_right = 1.0
 anchor_right = 1.0
 anchor_bottom = 1.0
 anchor_bottom = 1.0
 size_flags_horizontal = 2
 size_flags_horizontal = 2
 size_flags_vertical = 2
 size_flags_vertical = 2
-script = ExtResource( 1 )
+script = ExtResource( "1" )
 
 
 [node name="Label" type="Label" parent="."]
 [node name="Label" type="Label" parent="."]
 offset_left = 64.0
 offset_left = 64.0

+ 3 - 3
loading/autoload/scene_b.tscn

@@ -1,13 +1,13 @@
-[gd_scene load_steps=2 format=2]
+[gd_scene load_steps=2 format=3 uid="uid://pt77vxjf3uwe"]
 
 
-[ext_resource path="res://scene_b.gd" type="Script" id=1]
+[ext_resource type="Script" path="res://scene_b.gd" id="1"]
 
 
 [node name="SceneB" type="Panel"]
 [node name="SceneB" type="Panel"]
 anchor_right = 1.0
 anchor_right = 1.0
 anchor_bottom = 1.0
 anchor_bottom = 1.0
 size_flags_horizontal = 2
 size_flags_horizontal = 2
 size_flags_vertical = 2
 size_flags_vertical = 2
-script = ExtResource( 1 )
+script = ExtResource( "1" )
 __meta__ = {
 __meta__ = {
 "_edit_use_anchors_": false
 "_edit_use_anchors_": false
 }
 }