Skip to content

@galacean/engine-spine is the Spine runtime module for the Galacean engine, providing efficient support for Spine animations.

License

Notifications You must be signed in to change notification settings

galacean/engine-spine

Repository files navigation

Galacean Engine spine runtime

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


Spine runtime for Galacean engine.

Usage

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

// init oasis
addSpine();

async function addSpine() {
	const resource = await engine.resourceManager.load(
    {
      url: 'https://mdn.alipayobjects.com/huamei_kz4wfo/uri/file/as/2/kz4wfo/4/mp/yKbdfgijyLGzQDyQ/spineboy/spineboy.json',
      type: 'spine',
    },
  );
  const spineEntity = new Entity(engine);
  const spine = entity.addComponent(SpineAnimationRenderer);
  spine.resource = resource;
  spine.defaultState.animationName = 'walk';
  rootEntity.addChild(spineEntity);
}

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 Galacean Engine is released under the MIT license. See LICENSE file.

About

@galacean/engine-spine is the Spine runtime module for the Galacean engine, providing efficient support for Spine animations.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published