@oasis-engine/spine
v0.2.4
Published
oasis spine runtime
Downloads
116
Keywords
Readme
Oasis Engine spine runtime
Spine runtime for oasis engine.
Usage
import { SpineAnimation } from '@oasis-engine/spine';
// init oasis
addSpine();
async function addSpine() {
const spineEntity = await engine.resourceManager.load(
{
url: 'https://gw.alipayobjects.com/os/OasisHub/a66ef194-6bc8-4325-9a59-6ea9097225b1/1620888427489.json',
type: 'spine',
},
);
rootEntity.addChild(spineEntity);
const spineAnimation = spineEntity.getComponent(SpineAnimation);
spineAnimation.state.setAnimation(0, 'walk', true);
}
npm
npm install @oasis-engine/spine
Version
oasis-engine v0.8 & @oasis-engine/spine this branch latest npm.
Feature
- Simple in usage
- High performance.
- Intergrated oasis-engine rendering 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.