thris00

Hi, I am new to Spine and Code

I've try to use the AnimationReferenceAsset, the problem is , my AnimationReferenceAsset clips are quite a lot, to drag and choose one from inspector like below is time consuming,




So I was thinking, if there is a way to assign AnimationReferenceAsset by code?

For example, Let's say, I have 3 clips, IDLE, WALK, HIT
public AnimationReferenceAsset IDLE, WALK, HIT;
How can I assign them with code instead of drag them in inspectors?

Thanks
thris00
  • Posts: 2

Harald

This is more of a general question of Unity editor-scripting (how to assign asset references from a folder via script). You might find some answers on the official Unity forums here: https://forum.unity.com/
User avatar
Harald

Harri
  • Posts: 4164

thris00

Got it, Thanks for the help
thris00
  • Posts: 2


Return to Unity