I am trying to do a callback from OnComplete, when using a DOTween Path. While I was able to get it working by using the OnComplete tab from the inspector and placing the prefab in the object select box, I also wanted to be able to call it from code.
I was able to get the path to activate by using DOPlay, but it seems I cannot get the syntax right for the callback (I am very new to C#/Unity so please bear with me!); could someone suggest the proper syntax for this?:
GetComponent<DOTweenPath>().DOPlay().OnComplete(MyCallback);
Thank you for your help!