Hi, I’m pretty new to all of this, so forgive the simple question.
I’m coding a behaviour for a Node so that it has a random scale property when each instance of it spawns.
I coded it this way because i want it to scale evenly, so scale.x and scale.y have to be the same.
It works, but I was wondering: is this the most “elegant” way to do it? It looks pretty ugly, having to write random_size twice to specify x and y for scale.
Since scale is already equal to Vector2.ONE by default if left untouched
But this might cause some trouble if I touch the scale from the inspector later on.
Edit:
but then I should just do this to prevent trouble: