How to use System.Action?

Lanslot 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 3

as the title.how to?

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

Hi Lanslot, welcome to the community!

Unfortunately, Bolt does not support delegates at the moment. I have yet to figure out a proper way of representing those visually.

Maybe it can be show like this:

Yes, that's a good representation for Action, or delegates without parameters.

But what if you wanted a delegate with one or more parameter(s) and maybe even a return value?

If I do add support for delegates in the future, I want it to be full-fledged, not just for one type.