Multiply vector3 with scalar

Oliver Reischl 4 years ago updated by Lazlo Bonin (Lead Developer) 4 years ago 3

The multiply operation only allows vector3 inputs, which basically is the same behaviour as the vec3 scale function. The c# multiply operation in unity operates with a scalar. 

I mean, i can convert a float into a vec3, i'm just curious why that's the case? Have i missed something?

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

You want to use Math > Generic > Multiply. Can multiply float times vectors just fine. If you use the scalar or vector based methods, you can't. Generic is intended for this purpose.


Alright, got it. Thanks!