From b92a1e1eee768b41fbeab5cdbcba4d0df4b63afc Mon Sep 17 00:00:00 2001 From: Ed Preston Date: Fri, 15 Sep 2023 11:58:13 +1000 Subject: [PATCH] Update README.md Update version support details and provide more information. --- README.md | 11 +++++++++-- 1 file changed, 9 insertions(+), 2 deletions(-) diff --git a/README.md b/README.md index ee0a86f..9328153 100644 --- a/README.md +++ b/README.md @@ -10,16 +10,23 @@ Examples such as the Hero above can be found in the `examples` folder. To run th ## Usage -### Editor +### Versions -Add the plugin matching the Spine version used to export the animations, i.e `build/playcanvas-spine.X.X.min.js` and the PlayCanvas script `build/spine.js` to your project. The following plugins are available: +The following plugins are available: | Spine Editor | PlayCanvas Engine | | ------------ | ----------------- | | 3.6 | Up to 1.65 | | 3.8 | Up to 1.65 | +| 4.0 | 1.27 and later | | 4.1 | 1.27 and later | +Each plugin provides both a Component System to PlayCanvas Engine and the corresponding `spine-core` runtime to your scripts as global variable called `spine`. This allows developers to leverage the full spine library. + +### Editor + +Add the plugin matching the Spine version used to export the animations, i.e `build/playcanvas-spine.X.X.min.js` and the PlayCanvas script `build/spine.js` to your project. + Create an entity with a script component and add the script `spine` to it. Upload your exported spine resources (atlas, skeleton json file, textures) and attach them to the spine script on your entity. Ensure the plugin file is listed before the PlayCanvas script in the [Scripts Loading Order](https://developer.playcanvas.com/en/user-manual/scripting/loading-order/).