using System.ComponentModel; namespace UnityEngine.XR.ARSubsystems { /// /// Represents the segmentation stencil mode. /// public enum HumanSegmentationStencilMode { /// /// The segmentation stencil is disabled and will not be generated. /// Disabled = 0, /// /// The segmentation stencil is enabled and will be generated at the fastest resolution. /// /// /// On mode, there is no smoothing or other post-processing applied to the texture. /// Fastest = 1, /// /// The segmentation stencil is enabled and will be generated at the medium resolution. /// Medium = 2, /// /// The segmentation stencil is enabled and will be generated at the best resolution. /// Best = 3, } /// /// Extension for the . /// public static class SegmentationStencilModeExtension { /// /// Determine whether the segmentation stencil mode is enabled. /// /// The segmentation stencil mode to check. /// /// true if the segmentation stencil mode is enabled. Otherwise, false. /// public static bool Enabled(this HumanSegmentationStencilMode segmentationStencilMode) => segmentationStencilMode != HumanSegmentationStencilMode.Disabled; } }