Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Question How to use callback?

Discussion in 'Visual Scripting' started by wechat_os_Qy04JNulYgm0XSDB6HY2hdOYk, Oct 21, 2021.

  1. wechat_os_Qy04JNulYgm0XSDB6HY2hdOYk

    wechat_os_Qy04JNulYgm0XSDB6HY2hdOYk

    Joined:
    Sep 18, 2021
    Posts:
    4
    I want to use Bolt and DOTween, but I don't know how to make TweenCallback for Flow Graph.

    upload_2021-10-21_15-3-3.png

    upload_2021-10-21_15-3-28.png
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,763
  3. MasterSubby

    MasterSubby

    Joined:
    Sep 5, 2012
    Posts:
    252
    Yes the add-ons will do this. In fact I already have a picture of it in use with DOTween.

    Unity_2021-06-30_13-10-55-2.png

    You first create a Delegate Asset, and select Tween Callback as the type. Open Community Add-ons utility window, and click compile. This generates the delegate to a wrapper for UVS. Then your nodes show up for that type as Bind, Unbind, Invoke, and Create. You can get the member "callback" to get the underlying delegate, which can be used with third party.
     
    ilyxa_DGN and 1002711414 like this.