Scene not laoding in android.

:information_source: Attention Topic was automatically imported from the old Question2Answer platform.
:bust_in_silhouette: Asked By hamza_memon

When I export my game to android it does not change the scene, it was doing till 3.2.1 it has happened just in 3.2.2

This is the value in the dictionary.

'level_to_load' : 'res://scenes/levels/sand/2.tscn'

I pass many variables through signals and level to load is one of them

func _on_play_pressed():
	get_tree().change_scene(level_to_load)

P.S - This works in the editor and I dynamically generate buttons for each level if present in the dictionary of levels so the dictionary is there too. Its just that its not changing the scene, that too only when exported to android and after upgrading to 3.2.2

try:

func _on_play_pressed():
    get_tree().change_scene(load(level_to_load))

dustin | 2020-07-04 12:27

I uninstalled the build template and installed it again, that fixed it somehow. Thank you.

hamza_memon | 2020-07-07 11:28