[Feature Request] OnResume callback on ActionTask

NodeCanvas Forums Support [Feature Request] OnResume callback on ActionTask

This topic contains 1 reply, has 2 voices, and was last updated by  Gavalakis 1 week, 1 day ago.

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #13260

    w
    Participant

    I have a custom ActionTask that drives audio/video playback. Is it possible to add an OnResume callback to the ActionTask script so that I can resume playback when the graph is unpaused? I guess I can determine playstate in OnUpdate loop myself but it’d be really handy if there’s a callback function i can directly use just like OnPause.

    Thanks

    #13263

    Gavalakis
    Keymaster

    Hello,

    For your information, when a graph resumes, the “OnExecute” method is called once again, where you can use it as a resume, possibly even doing some boolean check if required.
    Please let me know if that works for you, or if you need an explicit Resume call.

    Thanks.

Viewing 2 posts - 1 through 2 (of 2 total)

You must be logged in to reply to this topic.