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. /// [Description("Disabled")] 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. /// [Description("Fastest")] Fastest = 1, /// /// The segmentation stencil is enabled and will be generated at the medium resolution. /// [Description("Medium")] Medium = 2, /// /// The segmentation stencil is enabled and will be generated at the best resolution. /// [Description("Best")] 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; } }