EnvironmentDepthMode.cs
1.57 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
using System.ComponentModel;
namespace UnityEngine.XR.ARSubsystems
{
/// <summary>
/// Represents the environment mode.
/// </summary>
public enum EnvironmentDepthMode
{
/// <summary>
/// The environment depth is disabled and will not be generated.
/// </summary>
[Description("Disabled")]
Disabled = 0,
/// <summary>
/// The environment depth is enabled and will be generated at the fastest resolution.
/// </summary>
[Description("Fastest")]
Fastest = 1,
/// <summary>
/// The environment depth is enabled and will be generated at the medium resolution.
/// </summary>
[Description("Medium")]
Medium = 2,
/// <summary>
/// The environment depth is enabled and will be generated at the best resolution.
/// </summary>
[Description("Best")]
Best = 3,
}
/// <summary>
/// Extension for the <see cref="EnvironmentDepthMode"/>.
/// </summary>
public static class EnvironmentDepthModeExtension
{
/// <summary>
/// Determine whether the environment depth mode is enabled.
/// </summary>
/// <param name="environmentDepthMode">The environment depth mode to check.</param>
/// <returns>
/// <c>true</c> if the environment depth mode is enabled. Otherwise, <c>false</c>.
/// </returns>
public static bool Enabled(this EnvironmentDepthMode environmentDepthMode)
=> environmentDepthMode != EnvironmentDepthMode.Disabled;
}
}