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

模型切换 #6

Open
x0620x opened this issue Mar 31, 2022 · 2 comments
Open

模型切换 #6

x0620x opened this issue Mar 31, 2022 · 2 comments

Comments

@x0620x
Copy link

x0620x commented Mar 31, 2022

大佬,能帮忙写个切换模型的按钮吗?,
我现在是这样写的,换模型按钮不知道咋弄了

<html>
<head>
    <title>domemodel3</title>
    <meta charset="utf-8" />
    <script src=""></script>
    <script src="js/jquery.min.js"></script>
    <script src="js/live2dcubismcore.min.js"></script>
    <script src="js/pixi.min.js"></script>
    <script src="js/live2dcubismframework.js"></script>
    <script src="js/live2dcubismpixi.js"></script>
    <script src="js/l2d.js"></script>
    <script src="js/main.js"></script>
</head>
<style type="text/css">
</style>
<div class="Canvas" id="L2dCanvas"></div>
<script>
            var config = {
                basePath: 'http://127.0.0.1/sw',
                role: '4__l2d_32.u',
                opacity: 1,
                mobile: true
            }
            var v = new Viewer(config); 
</script>
</html>
@imuncle
Copy link
Owner

imuncle commented Apr 1, 2022

可以再按钮的函数里更改config,然后重新初始化Viewer

@x0620x
Copy link
Author

x0620x commented Apr 1, 2022

写不来 ╮(╯▽╰)╭

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

No branches or pull requests

2 participants