localPosition property

Vector2 localPosition
inherited

Event position in the local coordinate space of the current component.

This property is only accessible when the event is being propagated to the components via deliverAtPoint. It is an error to try to read this property at other times.

Implementation

Vector2 get localPosition => renderingTrace.last;