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

I cant Find Coroutine Unit

Discussion in 'Visual Scripting' started by URocks, Aug 17, 2021.

  1. URocks

    URocks

    Joined:
    May 1, 2014
    Posts:
    159
    I would like to use coroutines inside the bolt, but there is a missing coroutine super unit. I found that Bolt developer release one back then https://support.ludiq.io/en/communities/5/topics/1163-coroutines
    but it is missing inside unity visual scripting.
    Also, I dont want to use wait units, I just want to use coroutine with yield return null inside them (so no wait 0.X seconds). Is there any way to use coroutines properly in Unitys visual scripting?
     
    Last edited: Aug 17, 2021
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    1,763
    Current coroutine implementation is what we have. ie you select a green flow starting event node and mark it as "Couroutine" in the graph inspector. Then use time related nodes. This is another thing Unity need to improve.

    The link contents are user made superunits. Jason is a community member, not the original developer.

    You can try to simulate yield return null with this combo of nodes for a while loop, courtesy of JasonJonesLASM from Discord:

    2019-07-30_17-25-41.gif
    2019-07-30_17-28-33.gif



    Or try to use just the "Wait for Next Frame" node.

    upload_2021-8-17_13-58-38.png
     
    Maskedchamo likes this.
  3. URocks

    URocks

    Joined:
    May 1, 2014
    Posts:
    159
    Thank you, it is what it is, I will try to use it somehow then