absolutePositionOfAnchor method

Vector2 absolutePositionOfAnchor(
  1. Anchor anchor
)
inherited

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));