Files
adriadri6972 d3d9c5f833 upload project
2025-07-31 15:21:08 +02:00

24 lines
709 B
C#

using UnityEngine.XR.ARSubsystems;
namespace UnityEngine.XR.ARFoundation.Tests
{
class AROcclusionSamples
{
#region DescriptorChecks
void CheckForOptionalFeatureSupport()
{
// This is inefficient. You should re-use a saved reference instead.
var manager = Object.FindAnyObjectByType<AROcclusionManager>();
// Use manager.descriptor to determine which optional features
// are supported on the device. For example:
if (manager.descriptor.environmentDepthImageSupported == Supported.Supported)
{
// Environment depth image is supported.
}
}
#endregion
}
}