absoluteScale property

Vector2 get absoluteScale
inherited

The resulting scale after all the ancestors and the components own scale has been applied.

Implementation

Vector2 get absoluteScale {
  return ancestors().whereType<PositionComponent>().fold<Vector2>(
        scale.clone(),
        (totalScale, c) => totalScale..multiply(c.scale),
      );
}