Version: 2021.3

SystemInfo.supportsAccelerometer

切换到手册
public static bool supportsAccelerometer ;

描述

This has the same functionality as SystemInfo.supportsAccelerometer and also mimics platform-specific behavior in the Unity Editor.