CheckFeatureAvailability
Description
检测当前设备是否支持该 XR 特性
Return
Type | Description |
---|---|
Bool | True:支持,False:不支持 |
Method
public bool CheckFeatureAvailability(string _featureName)
FeatureName |
---|
SimpleAR |
ImageTracking |
Anchors |
CpuImages |
EnvironmentProbes |
ARCollaborationData |
ARKitCoachingOverlay |
ObjectTracking |
FaceTracking |
BodyTracking |
BasicLightEstimation |
HDRLightEstimation |
PlaneClassification |
Meshing |
Depth |
ThermalState |
TryAcquireAROcclusionFrame |
Example
internal static API ARMODAPI = new API(nameof(APITest));
private void OnLoad()
{
if(ARMODAPI.CheckFeatureAvailability("SimpleAR")){
Debug.Log("SimpleAR Availability");
}
}