Files
Bachelor-Arbeit-Adrian-Haefner/Library/PackageCache/com.unity.xr.arfoundation@ef86c118adc4/Tests/Runtime/CodeSamples/ARBoundingBoxManagerSamples.cs
adriadri6972 d3d9c5f833 upload project
2025-07-31 15:21:08 +02:00

21 lines
644 B
C#

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