toLocal method
Transform point
from the parent's coordinate space into the local
coordinates. This function is the inverse of positionOf().
Implementation
Vector2 toLocal(Vector2 point) => transform.globalToLocal(point);
Transform point
from the parent's coordinate space into the local
coordinates. This function is the inverse of positionOf().
Vector2 toLocal(Vector2 point) => transform.globalToLocal(point);