|
|
|
|
|
|
using UnityEngine; |
|
|
|
using UnityEngine.UI; |
|
|
|
using UnityEngine.XR.ARSubsystems; |
|
|
|
#if UNITY_IOS
|
|
|
|
using UnityEngine.XR.ARKit; |
|
|
|
#endif
|
|
|
|
|
|
|
|
public class CheckAvailableFeatures : MonoBehaviour |
|
|
|
{ |
|
|
|
|
|
|
|
|
|
|
} |
|
|
|
#if UNITY_IOS
|
|
|
|
if(sessionDescriptors.Count > 0 /*&& ARKitSessionSubsystem.worldMapSupported*/) |
|
|
|
if(sessionDescriptors.Count > 0 && ARKitSessionSubsystem.worldMapSupported) |
|
|
|
#endif
|
|
|
|
if(planeDescriptors.Count > 0 && rayCastDescriptors.Count > 0 && participantDescriptors.Count > 0) |
|
|
|
|
|
|
|
if(planeDescriptors.Count > 0 && rayCastDescriptors.Count > 0 && participantDescriptors.Count > 0 && ARKitSessionSubsystem.supportsCollaboration) |
|
|
|
if(sessionDescriptors.Count > 0 && ARKitSessionSubsystem.coachingOverlaySupported) |
|
|
|
{ |
|
|
|
m_ARKitCoachingOverlay.interactable = true; |
|
|
|
} |
|
|
|
|
|
|
|
#endif
|
|
|
|
|
|
|
|
if(depthDescriptors.Count > 0) |
|
|
|
{ |
|
|
|
m_PointCloud.interactable = true; |
|
|
|
|
|
|
{ |
|
|
|
m_PlaneOcclusion.interactable = true; |
|
|
|
} |
|
|
|
#if UNITY_IOS
|
|
|
|
if(sessionDescriptors.Count > 0 /*&& ARKitSessionSubsystem.coachingOverlaySupported*/) |
|
|
|
{ |
|
|
|
m_ARKitCoachingOverlay.interactable = true; |
|
|
|
} |
|
|
|
#endif
|
|
|
|
|
|
|
|
} |
|
|
|
|
|
|
|
} |