Cluster Creator Kit Script Reference
    Preparing search index...

    Interface TouchPlayer

    A read-only type describing a touch on a touchscreen. It can be obtained with PlayerScript.getTouches.

    interface Touch {
        id: number;
        position: Vector2;
    }
    Index

    Properties

    Properties

    id: number

    The id that identifies the touch.

    Multiple touches that exist at the same time never have the same id. After a touch is released, its id may be reused for another touch.

    position: Vector2

    The position being touched. The coordinate system has the bottom-left of the screen at (0, 0) and the top-right at (1, 1).