Closed IntroEvEivie closed 2 years ago
Just add a parameter to the main function.
async function main (url) {
const model = await Live2DModel.from(url);
// ...
}
main("model.json");
Just add a parameter to the main function.
async function main (url) { const model = await Live2DModel.from(url); // ... } main("model.json");
Thx. Give me your discord if possible
Nope, I don't have a discord.
A bit of a stupid question. I need to pass the URL value from the button to the asynchronous main function to display this model. How to replace models in view mode?