+1
Answered

How to use System.Action?

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

as the title.how to?

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

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.