Search Unity

Resolved Triggering or Activating Visual Script custom event from c#.

Discussion in 'Visual Scripting' started by Jarumba, Aug 24, 2021.

  1. Jarumba

    Jarumba

    Joined:
    Jul 7, 2021
    Posts:
    23
    So my friend an I have been working on a project together. I am primarily using VS as he is using c#. I've found how to use c# methods in my scripts and incorporate them in VS. Sadly I haven't found any information on "triggering" or activating an event node in the VS graph through c# though. I want one of his methods to call a "event" node in my graph. Is this possible? or do I have to rewrite this specific script into c#? Any help with direction would be greatly appreciated!

    Cheers.
     
  2. PanthenEye

    PanthenEye

    Joined:
    Oct 14, 2013
    Posts:
    2,068
  3. Jarumba

    Jarumba

    Joined:
    Jul 7, 2021
    Posts:
    23
    Thank you so much! This is so much easier then we thought. We got the script working as intended now.
     
  4. wuwenjie718

    wuwenjie718

    Joined:
    Aug 16, 2023
    Posts:
    2
    CustomEvent.Trigger works fine. How to receive virtual script custom events from C# scripts。

    What is the counterpart of EventBus.Register?
     
    Last edited: Aug 19, 2023