Trying to recieve/listen for UnityEvent

FlowCanvas Forums Support Trying to recieve/listen for UnityEvent

Tagged: , ,

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #621
    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!

    #623
    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.

    Attachments:
    You must be logged in to view attached files.
    #625
    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:
    UnityEvent

    And then you can simply use the node “Events/Script/Custom Event”
    UnityEvents2

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

    Join us on Discord: https://discord.gg/97q2Rjh

    Attachments:
    You must be logged in to view attached files.
    #633
    pixel pusher
    Participant

    Hi,

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

    SendError

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

    Attachments:
    You must be logged in to view attached files.
    #636
    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.

    Join us on Discord: https://discord.gg/97q2Rjh

    #637
    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.