docs.unity3d.com
Search Results for

    Show / Hide Table of Contents

    Class PlaneAlignmentExtensions

    Extension methods for the PlaneAlignment enum.

    Inheritance
    object
    PlaneAlignmentExtensions
    Inherited Members
    object.Equals(object)
    object.Equals(object, object)
    object.GetHashCode()
    object.GetType()
    object.MemberwiseClone()
    object.ReferenceEquals(object, object)
    object.ToString()
    Namespace: UnityEngine.XR.ARSubsystems
    Assembly: Unity.XR.ARSubsystems.dll
    Syntax
    public static class PlaneAlignmentExtensions

    Methods

    IsHorizontal(PlaneAlignment)

    Determines whether the plane is horizontal (whether facing up or down).

    Declaration
    public static bool IsHorizontal(this PlaneAlignment alignment)
    Parameters
    Type Name Description
    PlaneAlignment alignment

    The PlaneAlignment being extended.

    Returns
    Type Description
    bool

    true if the plane is horizontal.

    IsVertical(PlaneAlignment)

    Determines whether the plane is vertical.

    Declaration
    public static bool IsVertical(this PlaneAlignment alignment)
    Parameters
    Type Name Description
    PlaneAlignment alignment

    The PlaneAlignment being extended.

    Returns
    Type Description
    bool

    true if the plane is vertical.

    In This Article
    Back to top
    Copyright © 2024 Unity Technologies — Trademarks and terms of use
    • Legal
    • Privacy Policy
    • Cookie Policy
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)