@galacean/engine-spine
TypeScript icon, indicating that this package has built-in type declarations

1.2.0 • Public • Published

Galacean Engine spine runtime

Jun-12-2021 18-37-22.gif


Spine runtime for Galacean engine.

Usage

import { SpineAnimation } from '@galacean/engine-spine';

// init oasis
addSpine();

async function addSpine() {
	const spineEntity = await engine.resourceManager.load(
    {
      url: 'https://sbfkcel.github.io/pixi-spine-debug/assets/spine/spineboy-pro.json',
      type: 'spine',
    },
  );
  rootEntity.addChild(spineEntity);
  const spineAnimation = spineEntity.getComponent(SpineAnimation);
  spineAnimation.state.setAnimation(0, 'walk', true);
}

npm

npm install @galacean/engine-spine

Version

@galacean/engine-spine currently only supports spine version 3.8

Feature

  • Simple in usage
  • High performance.
  • Intergrated with galacean engine.
  • Component based API.

Contributing

Everyone is welcome to join us! Whether you find a bug, have a great feature request or you fancy owning a task from the road map feel free to get in touch. ​

Make sure to read the Contributing Guide before submitting changes.

Links

License

The Oasis Engine is released under the MIT license. See LICENSE file.

Readme

Keywords

none

Package Sidebar

Install

npm i @galacean/engine-spine

Weekly Downloads

124

Version

1.2.0

License

none

Unpacked Size

1.96 MB

Total Files

62

Last publish

Collaborators

  • chengkong.zxx
  • imchenjian
  • ruimeng.su
  • yinjie
  • yiqi
  • jujie
  • luzhuang
  • husong
  • mrkou47
  • johanzhu
  • zhuxudong
  • zhanyingwei
  • gl3336563
  • eyworldwide