Can't add a vector to my scale

So, for my tuning, I wanted to try and make the ball increase in size every time it broke a block. So I created a method that adds a vector to the transform.localScale to increase the size by the vector each time. The only problem is, it comes up with this error accros the entire line of code, and I’m not sure what’s causing it, especially since I’ve seen similar lines of code throughout the script that don’t get any errors. Can anyone tell me what it means?
Here’s the code:

I believe it means you can’t use the += operator with a Vector3 and a Vector2. Try changing the Vector2 to a Vector3.

That did it! thanks! After fixing a small unrelated glitch, it does what it’s supposed to now!

No problem! Glad it all worked out for you!

This topic was automatically closed 24 hours after the last reply. New replies are no longer allowed.

Privacy & Terms