SUIUtils
class SUIUtils
Class responsible for converting touch positions.
public class SUIUtils
— Methods (5) —
Name | Description |
---|---|
Vector2 convertTouchPosition(Point2 position) | Converts the touch position to the position passed to be "position" argument. |
Vector2 convertTouchPosition(Vector2 position) | Converts the touch position to the position passed to be "position" argument. |
Vector2 convertTouchPosition(int x, int y) | Converts the touch position to the positions passed to be "x" and "y" arguments. |
Vector2 convertTouchPosition(int x, int y, Vector2 out) | Convert the touch position to the positions passed to be "x" and "y" arguments, and apply it to the vector passed to be "out" argument. |
int convertTouchPositionY(int y) | Converts the "Y" position of the touch to the positions passed to be "y" argument. |