0 votes

Is there a way to to take a tscn file (loaded as a string) and convert it to a packed scene?
(Any way to get a packed scene as a string and turn it back into a packed scene will work as well.)

asked Apr 27, 2018 in Engine by Hubber116sx (36 points)
edited Apr 28, 2018 by Hubber116sx

I'm away from my computer atm. But can't you use a load() function, and then use the loaded scene's instance() method so as to pack it?

The entire contents of the file are loaded as a string? Or just the path to the file?

Whoops, sorry. Misunderstood what you were asking. :-(

The entire contents.

Please log in or register to answer this question.

Welcome to Godot Engine Q&A, where you can ask questions and receive answers from other members of the community.

Please make sure to read How to use this Q&A? before posting your first questions.