positionOf method

Vector2 positionOf(
  1. Vector2 point
)

Convert local coordinates of a point point inside the component into the parent's coordinate space.

Implementation

Vector2 positionOf(Vector2 point) {
  return transform.localToGlobal(point);
}