{"id":13639384,"url":"https://github.com/eva-engine/eva-plugin-renderer-live2d","last_synced_at":"2025-07-19T17:15:41.424Z","repository":{"id":75771809,"uuid":"432438174","full_name":"eva-engine/eva-plugin-renderer-live2d","owner":"eva-engine","description":"Eva.js Live2D Plugin","archived":false,"fork":false,"pushed_at":"2021-11-27T18:42:34.000Z","size":9009,"stargazers_count":5,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-10T12:10:37.483Z","etag":null,"topics":["live2d"],"latest_commit_sha":null,"homepage":"https://fanmingfei.github.io/eva-plugin-renderer-live2d/","language":"TypeScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/eva-engine.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null}},"created_at":"2021-11-27T11:08:16.000Z","updated_at":"2023-11-28T00:46:19.000Z","dependencies_parsed_at":null,"dependency_job_id":"d0f1afc4-775a-4849-bf05-c0b50d59332f","html_url":"https://github.com/eva-engine/eva-plugin-renderer-live2d","commit_stats":null,"previous_names":["fanmingfei/eva-plugin-renderer-live2d"],"tags_count":0,"template":false,"template_full_name":"eva-engine/plugin-template","purl":"pkg:github/eva-engine/eva-plugin-renderer-live2d","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-renderer-live2d","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-renderer-live2d/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-renderer-live2d/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-renderer-live2d/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/eva-engine","download_url":"https://codeload.github.com/eva-engine/eva-plugin-renderer-live2d/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/eva-engine%2Feva-plugin-renderer-live2d/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":265973350,"owners_count":23858239,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["live2d"],"created_at":"2024-08-02T01:01:00.115Z","updated_at":"2025-07-19T17:15:41.369Z","avatar_url":"https://github.com/eva-engine.png","language":"TypeScript","funding_links":[],"categories":["Plugins"],"sub_categories":[],"readme":"# Eva.js Live2D Plugin\n\n[Demo](https://fanmingfei.github.io/eva-plugin-renderer-live2d/)\n\nModify on the basis of [guansss/pixi-live2d-display](https://github.com/guansss/pixi-live2d-display)\n\n```bash\nnpm i eva-plugin-renderer-live2d\n```\n\n```js\nimport { Game, GameObject, resource, RESOURCE_TYPE } from '@eva/eva.js';\nimport { RendererSystem } from '@eva/plugin-renderer';\nimport { Live2DSystem, Live2D } from 'eva-plugin-renderer-live2d'\n\nresource.addResource([\n  {\n    name: 'live2dName',\n    // @ts-ignore\n    type: RESOURCE_TYPE.LIVE2D,\n    src: {\n      url: {\n        type: 'data',\n        data: 'https://cdn.jsdelivr.net/gh/Eikanya/Live2d-model/Live2D/Senko_Normals/senko.model3.json'\n      }\n    }\n  }\n]);\n\nconst game = new Game({\n  systems: [\n    new RendererSystem({\n      canvas: document.querySelector('#canvas'),\n      width: 750,\n      height: 1000,\n    }),\n    new Live2DSystem(),\n  ],\n});\n\nconst go = new GameObject(\"aaa\", {\n  size: {\n    width: 0,\n    height: 0\n  },\n  position: {\n    x: 0,\n    y: 0\n  },\n  scale: {\n    x: 0.3,\n    y: 0.3\n  }\n});\nconst live2d = go.addComponent(new Live2D({\n  resource: 'live2dName'\n}))\nlive2d.on('loaded', () =\u003e {\n  // 交互\n  live2d.model.on('hit', hitAreas =\u003e {\n    console.log(hitAreas)\n    if (hitAreas.includes('head')) {\n      console.log('play Anim')\n      live2d.model.motion('Taphead');\n    }\n  });\n})\n\ngame.scene.addChild(go);\n\n```","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feva-engine%2Feva-plugin-renderer-live2d","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Feva-engine%2Feva-plugin-renderer-live2d","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Feva-engine%2Feva-plugin-renderer-live2d/lists"}