0

Unit for calculating the product of all scalar inputs

Matthew Atkins 1 week ago updated 1 week ago 1

Hello bolt devs,

I'm in need of a unit that outputs the product of an arbitrary amount of scalar inputs. A bit like the Sum unit but for multiplication instead of addition. Does it exist?

If not, I'd be interested in coding a custom unit to do just that. I've coded a few custom units already so in theory it shouldn't be too difficult, but I'm not sure how to make a custom unit have a configurable number of inputs, such as the Sum unit has. I would really like to know how that's done.

Thanks!

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

I just found the Math Op unit in the bolt community addons which does exactly what I need.