mirror of
https://github.com/Buriburizaem0n/live2d.git
synced 2026-02-05 03:50:03 +00:00
changed import
This commit is contained in:
@@ -1,3 +1,6 @@
|
|||||||
|
import * as PIXI from 'pixi.js';
|
||||||
|
import { Live2DModel } from 'pixi-live2d-display';
|
||||||
|
|
||||||
function ap_init() {
|
function ap_init() {
|
||||||
$(".aplayer-body").addClass("my-hide");
|
$(".aplayer-body").addClass("my-hide");
|
||||||
ap.lrc.hide(); //初始化时隐藏歌词
|
ap.lrc.hide(); //初始化时隐藏歌词
|
||||||
@@ -235,7 +238,7 @@ function loadWidget() {
|
|||||||
view: element,
|
view: element,
|
||||||
transparent: true,
|
transparent: true,
|
||||||
});
|
});
|
||||||
const model = await PIXI.live2d.Live2DModel.from(jsonpath);
|
const model = await Live2DModel.from(jsonpath);
|
||||||
|
|
||||||
app.stage.addChild(model);
|
app.stage.addChild(model);
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user