TheZero

Hello, I want to write an extension to automate the insertion of animation into a project. I would like to clarify whether it is possible to access the Create Animation Referece Asset button.
Unfortunately, my skills are not enough to understand how it is called, if it's not difficult to specify the path. I would love to study the code.
spine.png


I will supplement the appeal, I figured out where the required class is located. When trying to load resources and convert it, the _t field remains empty, unlike the _z field, it is filled in correctly.

Spine1.png
Nemaš dopuštenje za pregledavanje privit(a)ka dodan(og)ih postu.
TheZero
  • Postovi: 11

Harald

The SkeletonDataAssetInspector class is for the Unity Inspector UI that is shown when the asset is selected. You can't cast an asset to the UI class. Instead you would need to duplicate the code that is executed when the button is pressed, which can be found here:
SkeletonDataAssetInspector.cs: line 226
SkeletonDataAssetInspector.cs: line 253-279
Avatar
Harald

Harri
  • Postovi: 4101


Natrag na Unity