Problems with assignment operators like '/='

Hi,

I’m very new to Unity but have a reasonable amount of experience with both 3D and Javascript.

Right now I’m teaching myself Unity and trying to port some simple interpolation functions over to Unity using JS.

The functions use “/=” operator, and Unity consistently gives me a BCE0043 error when I try to use these.

I’ve debugged and isolated the problem to this operator.

Is this unsupported in Unity?

Any help would be appreciated!

Thanks.

Andy

I don’t use Unityscript, but I’d be very surprised if Unity has problems with standard arithmetic assignment operators.
There’s a trivial solution anyway - instead of writing:

a /= b

Replace it with:

a = a/b