• Unity
  • Spine With Corgi Engine in Unity

  • Đã chỉnh sửa
Related Discussions
...

Anyone have any success exporting animations out of Spine into Unity and get them working with the character controller within the corgi engine? Been trying to figure it out all week with no luck. Starting from scratch, duplicates of characters, just trying to mimic a playable one. The export process out of spine is fine, its just attaching to the character to make playable is where I'm held up. Thanks in advance!

19 ngày sau

I'm interested too: I need to choose between platformer PRO and Corgi, and from what I can see Corgi interacts with spine without baking to mecanim.
Is it right? You made it to make it work?

12 ngày sau

From what I read it's basically supported out of the box because it uses Mecanim?

http://reunono.github.io/CorgiEngine/animations

You "can" use SpineAnimation with Mecanim if you put a behavior on every state and use it to set the animation name on state enter, but that's a lot more complicated. I did it, but I can't explain how because I'm just dense 😉

một năm sau

Its been awhile and I'm caught up on projects so I'm revisiting this. Unfortunately Renaud's level of support is either 'look it up' or 'read some tutorials' so I'm back to square one. I've gotten to the point I can get the walking and jumping and basic movements working fine, its just the shooting component I'm having problems with. Has anyone had any luck with this?

  • Rvdk1981 đã trả lời bài viết này.
    5 năm sau

    svero
    duanesters 396
    I’m still figuring out how to get Spine animations working properly with the Corgi Engine.

    What I did was export the Animations to JSON, then imported into Unity.
    Made a script by following this (and the following two tutorials)

    After that, I made an empty game object, placed the spine prefab into it.
    Added Character & Corgi Engine Component (and Boxcollider2d).

    It walks left and right now, it also jumps.
    But I have the feeling I am being redundant making a separate Character script that’s also in the Spine prefab which also has scripts for animations and stuff.

    Somehow, I feel that I could make it easier by using Animator of Unity, but I don’t know how this works with Spine.

    Is there somebody who can tell or show how you can make use of Spine with the Corgi engine for walking (L/R), jumping and an action (shooting or punching)?

    • Harald đã trả lời bài viết này.

      Made a script by following this (and the following two tutorials)

      Please note that this is a thirdparty tutorial, not created by Esotericsoftware. While it may be helpful for specific scenarios, such tutorials might be outdated or incorrect in places. In general the examples that come with the spine-unity runtime and the spine-unity documentation page is always recommended as the first point of reference.

      Rvdk1981 But I have the feeling I am being redundant making a separate Character script that’s also in the Spine prefab which also has scripts for animations and stuff.

      Could you please explain what you mean by "that's also in the Spine prefab"? Do you mean a script that's also in the spine-unity runtime (e.g. provided as an example component)? If you want to link anything to the Corgi engine middleware, you need to create the respective glue-code to hook the spine-unity animation API up with the respective Corgi code.

      In general it's hard to guess what character controller script you have created without a more detailed description and without seeing any code.

      Somehow, I feel that I could make it easier by using Animator of Unity, but I don’t know how this works with Spine.

      Please have a look at the documentation section on SkeletonMecanim then.