I am trying to call this function from the animation_controller
class:
SetAnimation<public>(Keyframes:[]keyframe_delta, ?Mode:animation_mode):void = external {}
I am having trouble passing a value for the second parameter, ?Mode:animation_mode
It is for the ENUM animation_mode
animation_mode<native><public> := enum:
OneShot
PingPong
Loop`
Here’s how I tried calling it
AnimationController.SetAnimation(Keyframe, animation_mode.OneShot)
ERROR:
- Expects:
tuple([]keyframe_delta,?Mode:animation_mode)
- Given:
tuple[(]keyframe_delta,animation_mode)
Then, someone suggested I wrap it in a option{}, but alas not working.
AnimationController.SetAnimation(Keyframe, option{animation_mode.OneShot})
ERROR:
- Expects:
tuple([]keyframe_delta,?Mode:animation_mode)
- Given:
tuple[(]keyframe_delta,?animation_mode)