Trying to recieve/listen for UnityEvent

Forums 💬 FlowCanvas ⚙️ Support Trying to recieve/listen for UnityEvent

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #22754
    pixel pusher
    Participant

      Hi,

      Is it possible to recieve a Unity Event?

      http://docs.unity3d.com/ScriptReference/Events.UnityEvent.html

      I have a script that calls an event when done, and would like Flow Canvas to listen for it?

      I’ve tried all sorts tonight and just can’t get it. Is it even possible?

      Here is an example of the script:

      Thanks!

      #22759
      pixel pusher
      Participant

        Hi again,

        I’ve also tried using the Flow Canvas event, but can only seem to access sendglobalevent not sendevent. It says in the node help to use SendEvent.

        #22758
        Gavalakis
        Keymaster

          Hey,

          I’m not sure how it’s possible that you can’t use the SendEvent, or why it doesn’t show in the intellisense , but it’s certainly there 🙂
          It can also be used with the Unity event in the inspector:
          [attachment file=”UnityEvent.png”]

          And then you can simply use the node “Events/Script/Custom Event”
          [attachment file=”UnityEvents2.png”]

          Let me know a bit more info if possible on why this can’t be done in your case.
          Thank you.

          #22757
          pixel pusher
          Participant

            Hi,

            Here is an example of trying to only use Send Event. Am I doing something wrong?

            [attachment file=”634″]

            It only showing SendGlobalEvent and is not accessible even when typed. This is in a new project by the way.

            #22756
            Gavalakis
            Keymaster

              Hey,

              The reason why intellisense is not showing you the SendEvent and it’s rather showing you the static SendGlobaEvent only, is because, you have entered the type name ‘FlowScriptController’, and not an instance reference to it 🙂 As such, only static members/methods are shown there. What you need is an instance reference. Here is an example:

              Let me know if that works for you.
              Thanks.

              #22755
              pixel pusher
              Participant

                Sorry, I was being code blind on that one. It works great. Thank you!

              Viewing 6 posts - 1 through 6 (of 6 total)
              • You must be logged in to reply to this topic.