X Y Location (2D)
Pick a point and get its position as X and Y.
Introduction
This expression picks a point and returns it as a Vector2: X and Y. Instead of typing two numbers, tap the location picker (the pin) and choose a point directly. It returns the position of the picked point as two numbers, X and Y. Use it mainly for UI positions, where a point is stored as a Vector2 with X horizontal and Y vertical. The X Y Location expression pill. caption
Properties
These are the properties you can read. The Set command only lists the ones you can change. X Y Location ├─ VectorX (number): The X component of the vector. ├─ VectorY (number): The Y component of the vector. ├─ VectorLength (number): The length of the vector. ├─ AngleBetweenVectors (number): The angle between this vector and another vector. └─ NormalizeVector (object): The normalized version of the vector.
Notes
The location picker returns a position as a Vector2. It is the X Y expression with the picker turned on, not a different expression. The picked point is fixed once chosen; pick again to change it.