absolutePositionOfAnchor method

Vector2 absolutePositionOfAnchor(
  1. Anchor anchor
)

Similar to absolutePositionOf(), but applies to any anchor point within the component.

Implementation

Vector2 absolutePositionOfAnchor(Anchor anchor) =>
    absolutePositionOf(Vector2(anchor.x * size.x, anchor.y * size.y));