decoamorim

Hello,

I am looking for a way to add the Skeleton Utility , then instantiating the whole bone hierarchy in real time.

Haven´t found a way to do so.
I someone can trow a light at this.

Thank you,
Andre
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 de Usuario
decoamorim
  • Mensajes: 128

Harald

You can add the SkeletonUtility component just as you would add any component in Unity:
var skeletonUtility = component.gameObject.AddComponent<SkeletonUtility>();
To spawn the SkeletonUtilityBone hierarchy, you can then use
skeletonUtility.SpawnHierarchy(SkeletonUtilityBone.Mode mode, bool pos, bool rot, bool sca)
You can have a look at the inspector code here:
spine-runtimes/SkeletonUtilityInspector.cs at 3.8
Avatar de Usuario
Harald

Harri
  • Mensajes: 1730

decoamorim

Thank you.
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 de Usuario
decoamorim
  • Mensajes: 128


Volver a Unity