• Runtimes
  • Getting Started in with Monogame runtime

I am trying to set up the SkeletonRenderer in my existing monogame file based on the example project for spine posted on github (spine-monogame/spine-monogame-example/ExampleGame.cs). I installed the Spine NuGet package on my game and included 'using Spine' in my Game.cs. I am able to define the classes:

protected Skeleton skeleton;
protected AnimationState state;
protected Atlas atlas;

just fine, but whenever I try to define:

protected SkeletonRenderer skeletonRender;

visual studio give an error as it does not recognize the definition of this class. I see from the example project, though, that this class is necessary to draw textures from the skeleton on screen. Is this correct or is there another way to draw them? I also do not see this definition in the "spine-csharp" resource files.

Where can I get the files for the SkeletonRenderer class? Also, if there is any detailed tutorial on how to get from the output of the Spine software to working in monogame runtime, that would be appreciated as I haven't found such a tutorial myself.

Related Discussions
...

To set up the SkeletonRenderer in your MonoGame project, you need to ensure that you have all the necessary files from the Spine Runtimes. The SkeletonRenderer class is part of the Spine MonoGame runtime, which you can find in the spine-monogame repository on GitHub. Make sure you have included all the relevant files from this repository in your project. If you are missing the SkeletonRenderer class, it might be because the files are not correctly added to your project or the namespace is not correctly referenced.

For a detailed tutorial, you can refer to the README file in the spine-monogame repository, which should guide you through setting up the runtime. Additionally, ensure that your project references are correctly set up to include all necessary Spine runtime files.

@ZubbyBoy Note that all our runtimes are split into a game toolkit agnostic core-runtime (spine-csharp, spine-cpp) and a toolkit related runtime (spine-unity, spine-ue, spine-monogame) which handles specific rendering and engine integration.

    What version of monogame does the example project use? I cannot get the example project to run and it gives warnings about using .NETFramework,Version=v4.8 instead of spine-monogame-example.csproj project target framework '.NETCoreApp,Version=v3.1' and it gives the error of exited with code 1

    Harald Thank you! I can see that now

    @ZubbyBoy Glad to hear you've figured it out, thanks for taking the time to write back.