decoamorim

Hello,

It is possible to flip a slot in unity? So for example a logo image dont get a mirror effect when the skeleton is flipped, and stay always the right way?
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/
Avatar
decoamorim
  • Postovi: 130

Pharan

You flip the bone. Not the slot.

If you need only one image to flip without affecting other images, give it its own bone that doesn't have child bones. That parent bone can still have siblings, you'd just be moving the slot one bone deeper the hierarchy.
Avatar
Pharan
  • Postovi: 5366

decoamorim

Oh...make sense...
The coding here would be something like
Skeletonrender.findbone("name").transform....
I dont know the exact words here but its something in this logic?
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/
Avatar
decoamorim
  • Postovi: 130

Pharan

Yeah. SkeletonRenderer has a skeleton. Should be able to track down what you need by reading up on the code of each class down that line. It's very logically arranged.

I think bone flip is getting phased out in Spine 3, so maybe use negative bone scale instead?
Avatar
Pharan
  • Postovi: 5366


Natrag na Unity