用户:Yingxxxx/test.js:修订间差异
来自Limbo Wiki Mirror
小无编辑摘要 |
无编辑摘要 |
||
| 第2行: | 第2行: | ||
L2Dwidget.init({ | L2Dwidget.init({ | ||
"model": { | "model": { | ||
jsonPath: "https://unpkg.com/live2d-widget-model- | jsonPath: "https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.model.json", | ||
"scale": 1 | "scale": 1 | ||
}, | }, | ||
2022年9月1日 (四) 14:59的版本
//搬运自https://www.cnblogs.com/eve-d/p/15683541.html
L2Dwidget.init({
"model": {
jsonPath: "https://unpkg.com/live2d-widget-model-z16@1.0.5/assets/z16.model.json",
"scale": 1
},
"display": {
"position": "right", //模型的表现位置
"width": 150, //模型的宽度
"height": 300, //模型的高度
"hOffset": 0,
"vOffset": -20
},
"mobile": {
"show": true,
"scale": 0.5
},
"react": {
"opacityDefault": 0.7, //模型默认透明度
"opacityOnHover": 0.2
}
});
