I have component that executes at the beginning of my scene/game that’s supposed to read an XML file, grab referenced Animation Clips and perform various "AddEvent"s on them with parameters tied to them. I’m unable to add said events via the Animator in the Editor, and due to the number of animations and events to be associated, it was quickly determined that setting it up so that this information was provided in the component’s inspector would become unmanageable, so having it all in a quick-to-edit and comment-able XML file feels like the way to go.
Is there a way to directly reference an animation clip (associated with an FBX file, and as Legacy) with a string? The one solution I have on hand is to make a ‘Dictionary’ in the inspector of the component that links each string to an AnimationClip, but if it’s possible to grab the clip’s instance with nothing but the string provided in the XML file, that’ll be even better.
Thanks in advance!