Say for instance I have 2 human sprites. I'd like to use Spine to animate a throw move - where sprite 1 grabs sprite 2 and tosses him over his head. To make this look as good as possible I'd need a way for sprite 1's right arm and right leg to overlap the entirity of sprite 2 while leaving the rest of sprite 1's body parts behind sprite 2.
So, the draw order would be:
1) sprite 1's right arm and leg
2) sprite 2's entire body
3) sprite 1's body (minus right arm and leg)
I haven't found a way to do this using my Spine-animated sprites with Unity. I've seen where I can specify an overall draw order based on the layer for the entire sprite, but nothing that would allow me to specify individual draw orders for each section of the sprite.
Stranica: 1/1.
cheezballs
7 years ago
- cheezballs
- Postovi: 6
decoamorim
I was going to make a post asking that exact question.
If it is possible to do that. Maybe working the Z pos of the bones?
I really do not know, if someone knows would be great to learn!!!
If it is possible to do that. Maybe working the Z pos of the bones?
I really do not know, if someone knows would be great to learn!!!
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
6.5 years ago
-
decoamorim - Postovi: 131
Xelnath
You might need to do 3 separate bodies which all share the same skeleton.
6.5 years ago
- Xelnath
- Postovi: 408
Pharan
rendering particles in between spine sprites?
This is doable but I'm not sure how to use it at the moment. Worth checking it out yourself.
This is doable but I'm not sure how to use it at the moment. Worth checking it out yourself.
Spine-Unity Docs Repo, and check out the Unofficial Spine Users Tumblr.
6.5 years ago
-
Pharan - Postovi: 5366
decoamorim
Hey Pharan,Pharan je napisao/la:http://esotericsoftware.com/forum/Unity-rendering-particles-in-between-spine-sprites-3934
This is doable but I'm not sure how to use it at the moment. Worth checking it out yourself.
I saw this video yesterday:
I was able to separate an arm in Unity by spawning Submeshes. Just have to learn more about it.
But when i and if i nail this i ll post here.
Ok, so the guy in the other topic teached how to do it:
Following his steps i was able to do it.alex.seeck je napisao/la:- Unfold Advanced of SkeletonAnimation and add as many items to the Submesh Separators as needed
- RELOAD the Skeleton Data Asset
- Add Skeleton Utility and click Spawn Submeshes
- the chosen slots will be the first in the split off meshes, generated as Child GameObjects of the SkeletonAnimation GameObject
- change their Sorting and Ordering directly
Hope this helps anyone
P.S.: For adding a new configuration (lets say from 2 to 3 submeshes) do the following:
- Delete the old submeshes
- Add as many new Submesh Separators to SkeletonAnimation as you need
- ENABLE the MeshRenderer component
- RELOAD the Skeleton Data Asset
- Spawn the submeshes

-- 23 Nov 2015, 17:25 --
So i believe you just have to set the sorting layer in UNITY right to make this effect after separating the meshes, or even coding the order when this moves occur.cheezballs je napisao/la:So, the draw order would be:
1) sprite 1's right arm and leg
2) sprite 2's entire body
3) sprite 1's body (minus right arm and leg)
Developer/Founder at DCF Studios
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
http://www.studiosdcf.com/
Author of
Cruz Brothers[PS4 / STEAM] [upcoming on XboxOne] - http://www.cruzbrothersgame.com
Bunny Battle Arena[STEAM] - https://store.steampowered.com/app/872340/Bunny_Battle_Arena/
6.5 years ago
-
decoamorim - Postovi: 131
Mark topic unread
• Stranica: 1/1.
Natrag na Unity
- Vremenska zona: UTC