Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Godot_road_generator plugin does not reload while executing reload_current_scene() #175

Open
AnimeshShakya opened this issue Aug 16, 2024 · 2 comments
Labels
question Further information is requested

Comments

@AnimeshShakya
Copy link

After restarting the game using the button and below function,
func _on_restart_pressed():
get_tree().reload_current_scene()

All Models and textures are loaded but the road is unfortunately not loaded.
How do I reload the road that is generated using godot_road_generator plugin?

@TheDuckCow
Copy link
Owner

Not sure how I missed this message, sorry for the long wait @AnimeshShakya

I haven't run into this myself, but I've also been working with more procedural cases. I'll look into whether there's a real bug here, but in the meantime you can at least run this command on the RoadManager node in your scene (or if easier to access, call each RoadContainer's rebuild_segments(true) function where true = force rebuild).

In the future once merged, if you're just working with static roads/no dynamic generation, this PR will avoid the problem.

@TheDuckCow TheDuckCow added the question Further information is requested label Sep 6, 2024
@AnimeshShakya
Copy link
Author

AnimeshShakya commented Sep 7, 2024 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants