scale property

  1. @override
NotifyingVector2 get scale
inherited

The scale factor of this component. The scale can be different along the X and Y dimensions. A scale greater than 1 makes the component bigger, and less than 1 smaller. The scale can also be negative, which results in a mirror reflection along the corresponding axis.

Implementation

@override
NotifyingVector2 get scale => transform.scale;
  1. @override
set scale (Vector2 scale)
inherited

Implementation

@override
set scale(Vector2 scale) => transform.scale = scale;