I am trying to load animation events from a text file but I am running into the issue where in the Animation window, the event shows the correct function name when you hover over the event, but then has (Function not Supported) next to it. I am using
string function = _event.functionName; to get the event and write it to a file
and
myEvent.functionName = dataEntries[1]; to read it back in, where dataEntries[1] is the same data that was written out.
I am using the AnimationUtility.SetAnimationEvents(animClip, events) to add the event, and everything looks good, including the time and function name, but Unity doesn’t seem to recognize the function, even though in the drop down menu, the function with the same name is there to be selected and when you select it, it’s fine. Anyone see what I might be doing wrong?