Method TryGetSupportedDisplayRefreshRates
TryGetSupportedDisplayRefreshRates(XRDisplaySubsystem, Allocator, out NativeArray<float>)
Attempts to get the supported display refresh rates for the device.
Declaration
public static bool TryGetSupportedDisplayRefreshRates(this XRDisplaySubsystem subsystem, Allocator allocator, out NativeArray<float> refreshRates)
Parameters
Type | Name | Description |
---|---|---|
XRDisplaySubsystem | subsystem | The subsystem instance used by this extension method. |
Allocator | allocator | The allocator strategy to use for the |
NativeArray<float> | refreshRates | A |
Returns
Type | Description |
---|---|
bool | true if |
Remarks
Important
This extension method requires that you enable the Meta OpenXR Display Utilities feature in Project Settings > XR Plug-in Management > OpenXR. If the display utilities feature is not enabled, this method will always return false.