The Unity events in the inspector like the button Click events only work with only one parameter and this parameter is reserved for the string name of the event of the flowscript, thus, unfortunately, calling T events is not possible with Unity events directly.
Having said that, I could try to make it possible to pass parameters in parenthesis like you tried to do in the screenshot for the sake of making it able to call events with parameters this way.
Hello again, The Unity events in the inspector like the button Click events only work with only one parameter and this parameter is reserved for the string name of the event of the flowscript, thus, unfortunately, calling T events is not possible with Unity events directly. Having said that, I could try to make it possible to pass parameters in parenthesis like you tried to do in the screenshot for the sake of making it able to call events with parameters this way. Let me know. Thank you.
Hello!
It would be great if you could do this.
But right now, how do you think I should solve what I want to do? I want to change those parameters via button.
Button (Prefab):
OptionTitle [<] OptionValue [>]
Each time the next [>] or [<] back button is pressed, the number of indexes changes and the text is set in the array.
However, it currently has no function. Since GetEvent(T) is not passed with OnClick(), how should I proceed?
Drag and Drop the Button object into the flowscript canvas.
From the menu select “Button/Event/onClick (Auto Subscribe).
Then use the node that will be created to call nodes or send events as normal in flowcanvas, like in your example use the SendEvent(bool” node (or simply directly do what you have to using the OnClick event node output) 🙂
Let me know if this works for you.
Join us on Discord: https://discord.gg/97q2Rjh
Author
Posts
Viewing 6 posts - 1 through 6 (of 6 total)
You must be logged in to reply to this topic.
Login
Register
By registering on this website you agree to our Privacy Policy.