You can’t apply single vector changes to a whole vector3, you have to make it 3 seperate equations if you want to define X, Y, and Z, seperately, even if you define Vector3 as a new vector, you’ll need to define the X, Y, and Z individually in the constructor.
Error message is simply suggesting that you are trying to add Vector3 or and float.
‘+’ operator can only be applied if there are similar data types at both sides of it. Here transform.position and transform.up are vector3. and spriteBound.extents.x and spriteBound.extents.y are float values.
That means you can’t sum a Vector with a constant value, it makes no sense. You can scale a vector by a constant, so a Vector3.one * 5 = Vector3(5,5,5).
I don’t know what are you trying to achieve, but fix your operation:
This way you scale the transform.right by the sum of x + up + y…