Class LightSensor
Input device representing the ambient light measured by the device playing the content.
Inherited Members
Namespace: UnityEngine.InputSystem
Syntax
public class LightSensor : Sensor
Properties
current
Declaration
public static LightSensor current { get; }
Property Value
Type | Description |
---|---|
LightSensor |
lightLevel
Light level in SI lux units.
Declaration
public AxisControl lightLevel { get; }
Property Value
Type | Description |
---|---|
AxisControl |
Methods
FinishSetup()
Declaration
protected override void FinishSetup()
Overrides
MakeCurrent()
Declaration
public override void MakeCurrent()
Overrides
OnRemoved()
Declaration
protected override void OnRemoved()