Skip to content

Instantly share code, notes, and snippets.

@bibbis
Last active October 26, 2023 16:37
Show Gist options
  • Save bibbis/8bb5b3e5d235e06ad616324783e325a7 to your computer and use it in GitHub Desktop.
Save bibbis/8bb5b3e5d235e06ad616324783e325a7 to your computer and use it in GitHub Desktop.
Callback intended for animation Events in Unity editor animations
/// <summary> Callback intended for animation Events in Unity editor animations </summary>
public void AnimationCallback(string callback)
{
switch (callback)
{
case "Example":
break;
default:
throw new ArgumentOutOfRangeException("Unhandled case: " + callback);
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment