docs.unity3d.com
    Show / Hide Table of Contents

    Enum Feature

    A set of flags representing features available in AR.

    Namespace: UnityEngine.XR.ARSubsystems
    Syntax
    [Flags]
    public enum Feature : ulong

    Fields

    Name Description Value
    AnyCamera

    Either camera (WorldFacingCamera or UserFacingCamera).

    AnyLightEstimation

    A value with all light estimation related bits set.

    AnyTrackingMode

    Any tracking mode (RotationOnly or PositionAndRotation).

    AutoFocus

    Auto focus enabled.

    Body2D

    2D human body tracking. See XRHumanBodySubsystem.

    Body3D

    3D human body tracking. See XRHumanBodySubsystem.

    Body3DScaleEstimation

    Estimate scale when performing 3D human body tracking, see Body3D.

    Collaboration

    Collaborative session. See XRParticipantSubsystem.

    EnvironmentDepth

    A feature allowing environment depth iomages to be captured.

    EnvironmentProbes

    Environment probes. See XREnvironmentProbeSubsystem.

    FaceTracking

    Face detection. See XRFaceSubsystem.

    ImageTracking

    Image detection. See XRImageTrackingSubsystem.

    LightEstimationAmbientColor

    Light estimation for ambient color.

    LightEstimationAmbientIntensity

    Light estimation for ambient intensity.

    LightEstimationAmbientSphericalHarmonics

    Light estimation for ambient spherical harmonics.

    LightEstimationMainLightDirection

    Light estimation for the main light's direction.

    LightEstimationMainLightIntensity

    Light estimation for the main light's intensity.

    MeshClassification

    A feature describing classification for Meshing.

    Meshing

    A feature describing real-time meshing capability.

    None

    No features are selected.

    ObjectTracking

    3D object detection. See XRObjectTrackingSubsystem.

    PeopleOcclusionDepth

    People occlusion with depth texture enabled. See XROcclusionSubsystem.

    PeopleOcclusionStencil

    People occlusion with stencil texture enabled. See XROcclusionSubsystem.

    PlaneTracking

    Plane detection. See XRPlaneSubsystem.

    PointCloud

    A feature describing the ability to surface point clouds.

    PositionAndRotation

    Both position and rotation tracking, i.e., 6 degrees of freedom.

    Raycast

    Instant and Tracked raycasts.

    RotationOnly

    Rotation only tracking, i.e., 3 degrees of freedom without positional tracking.

    UserFacingCamera

    The user-facing camera. On a phone, this is the front camera.

    WorldFacingCamera

    The world-facing camera. On a phone, this is the rear camera.

    Extension Methods

    FeatureExtensions.Any(Feature)
    FeatureExtensions.All(Feature)
    FeatureExtensions.None(Feature)
    FeatureExtensions.Union(Feature)
    FeatureExtensions.Intersection(Feature)
    FeatureExtensions.SetDifference(Feature)
    FeatureExtensions.SymmetricDifference(Feature)
    FeatureExtensions.SetEnabled(Feature, Boolean)
    FeatureExtensions.Cameras()
    FeatureExtensions.TrackingModes()
    FeatureExtensions.LightEstimation()
    FeatureExtensions.WithoutCameraOrTracking()
    FeatureExtensions.ToStringList(String)
    FeatureExtensions.Count()
    Back to top
    Terms of use
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023