I hope you are doing well. I am having a hard time figuring out how to setup an event in one of my scripts that NodeCanvas can see and subscribe to. I have done it a few ways…
1
2
3
4
5
publicdelegatevoidAudioCall();
publiceventAudioCall PlaySound;
publiceventSystem.Action<int>PlayEventNow;
Neither of these give me an option to grab an event in the “Check C# Event” action…
Any thoughts?
The System.Action is the correct one and should work, but please make sure to use the generic version of “Check C# Event” with the correct type. “Check C# Event (float)” 🙂
Please add the the “EventTest” type in the preferred types list ( Window/NodeCanvas/Preferred Types Editor ) and it’s event will show up to be selected in the menu shown in the image you have attached 🙂
As you will notice, the types shown in the list right now, are those that exist in the Preferred Types list.
Please let me know if you need any further help with this one or anything else.
Thanks
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 4 posts - 1 through 4 (of 4 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.