Skip to content

Changing storage during runtime #428

Closed Answered by TokisanGames
Mobotium asked this question in Questions
Discussion options

You must be logged in to vote

I added this to the bottom of CodeGenerated.gd and it worked just fine. There was also no issue if I commented the timer (processing on the same frame).

	await get_tree().create_timer(3).timeout		
	print("Loading new terrain")
	var res: Resource = ResourceLoader.load("res://demo/data/terrain_storage.res")
	terrain.set("storage", res)

Your issue might be with Godot's C# code and you probably need to do some debugging with both the Terrain3D and Godot source. When setup, it's pretty easy to run through the MSVC debugger and have it stop on the exact line with the issue. You want to confirm if we have a problem in Terrain3D. I think the above strongly suggests no.

Replies: 1 comment 6 replies

Comment options

You must be logged in to vote
6 replies
@Mobotium
Comment options

@TokisanGames
Comment options

@TokisanGames
Comment options

Answer selected by TokisanGames
@Mobotium
Comment options

@TokisanGames
Comment options

@TokisanGames
Comment options

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants