We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
I have a .sb3 file that is returned from an API, and I want to load it into the editor when the app starts.
It seems that I need to set the project files into scratch-storage, but I am not sure if this is correct or how to do it.
Could someone please guide me on how to load the .sb3 file into the editor when the app starts?
Thank you!
The text was updated successfully, but these errors were encountered:
Loading a project from a file can be done using the loadProject() method from scratch-vm, which accepts the contents of the file as an ArrayBuffer. See the implementation of the "Load from your computer" option: https://github.com/scratchfoundation/scratch-gui/blob/cb056c5/src/lib/sb-file-uploader-hoc.jsx#L145-L171
loadProject()
Sorry, something went wrong.
I will check, thank you 🙏🏽
No branches or pull requests
I have a .sb3 file that is returned from an API, and I want to load it into the editor when the app starts.
It seems that I need to set the project files into scratch-storage, but I am not sure if this is correct or how to do it.
Could someone please guide me on how to load the .sb3 file into the editor when the app starts?
Thank you!
The text was updated successfully, but these errors were encountered: