The UnityTouch type exposes the following members.
Fields| | Name | Description |
|---|
 | altitudeAngle |
Value of 0 radians indicates that the stylus is parallel to the surface, pi/2 indicates that it is perpendicular.
If the source of input is Unity Input System, this value will always be 0.
|
 | azimuthAngle |
Value of 0 radians indicates that the stylus is pointed along the x-axis of the device.
If the source of input is Unity Input System, this value will always be 0.
|
 | deltaPosition |
The position delta since last change in pixel coordinates.
|
 | deltaTime |
Amount of time that has passed since the last recorded change in Touch values.
If the source of input is Unity Input System, this value will always be 0.
|
 | fingerId |
The unique id for the touch.
|
 | inputSourceType |
The source of input.
|
 | maximumPossiblePressure |
The maximum possible pressure value for a platform. If Input.touchPressureSupported returns false, the value of this property will always be 1.0f.
If the source of input is Unity Input System, this value will always be 1.
|
 | phase |
Describes the phase of the touch.
|
 | position |
The position of the touch in screen space pixel coordinates.
|
 | pressure |
The current amount of pressure being applied to a touch.
For Unity Input Manager source:
1.0f is considered to be the pressure of an average touch.
If Input.touchPressureSupported returns false, the value of this property will always be 1.0f.
For Unity Input System source:
|
 | radius |
An estimated value of the radius of a touch.
For Unity Input Manager source:
Add radiusVariance to get the maximum touch size, subtract it to get the minimum touch size.
For Unity Input System source:
|
 | radiusVariance |
This value determines the accuracy of the touch radius. Add this value to the radius to get the maximum touch size, subtract it to get the minimum touch size.
If the source of input is Unity Input System, this value will always be 0.
|
 | rawPosition |
The first position of the touch contact in screen space pixel coordinates.
|
 | tapCount |
Number of taps.
|
 | type |
A value that indicates whether a touch was of Direct, Indirect, or Stylus type.
|
Top
See Also