Version: 2022.3

Application.isMobilePlatform

切换到手册
public static bool isMobilePlatform ;

描述

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