Class Gyroscope
Input device representing a gyroscope sensor.
Inherited Members
Namespace: UnityEngine.InputSystem
Syntax
public class Gyroscope : Sensor
Remarks
A gyroscope let's you measure the angular velocity of a device, and can be useful to control content by rotating a device.
Properties
angularVelocity
Declaration
public Vector3Control angularVelocity { get; }
Property Value
Type | Description |
---|---|
Vector3Control |
current
Declaration
public static Gyroscope current { get; }
Property Value
Type | Description |
---|---|
Gyroscope |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()