0
Answered

Problems with "Custom Event"

kicktherabbit 3 years ago updated by Lazlo Bonin (Lead Developer) 3 years ago 1

How can use custom events with more than 10 arguments? 10 seems to be the max. 



Bolt Version:
Unity Version:
Platform(s):
Scripting Backend:
.NET Version (API Compatibility Level):
GOOD, I'M SATISFIED
Satisfaction mark by kicktherabbit 3 years ago
Answered

Hi kicktherabbit,

10 is an arbitrary limitation, but if you are using more than 10 arguments, I would suggest rethinking your design (10 arguments is too much for any reasonable function, even in programming). Maybe use variables instead of parameters?

Another approach is using super units. There are no limits on the number of ports super units can have, so you could have them handle whatever you need. Simply add an game object input port for the "target", and you'll basically have the same functionality as a custom event on a different object.