why when i change scene it become blank scene?

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

hi, can someone tell me why when i use

export var creation_room :PackedScene

func _on_create_pressed() -> void:
    get_tree().change_scene_to(creation_room)

my next room become blank but when i use

func _on_create_pressed() -> void:
    get_tree().change_scene("res://scene/character_creation_room/character_creation.tscn")

it change to scene i want to ,but it take a second to change

:bust_in_silhouette: Reply From: clemens.tolboom

The function Error change_scene ( String path ) expects a String. A PackedScene is not a String but a Resource so you can use resource_path

export var creation_room :PackedScene

func _on_create_pressed() -> void:
    get_tree().change_scene_to(creation_room.resource_path)