Class UsesViewerBodyMethods | Unity Reflect | 1.1.0-preview.6
docs.unity3d.com
    Show / Hide Table of Contents

    Class UsesViewerBodyMethods

    Inheritance
    Object
    UsesViewerBodyMethods
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public static class UsesViewerBodyMethods

    Methods

    IsAboveHead(IUsesViewerBody, Transform)

    Returns whether the specified transform is over the viewer's head

    Declaration
    public static bool IsAboveHead(this IUsesViewerBody user, Transform rayOrigin)
    Parameters
    Type Name Description
    IUsesViewerBody user

    The functionality user

    Transform rayOrigin

    The rayOrigin to test

    Returns
    Type Description
    Boolean

    IsOverShoulder(IUsesViewerBody, Transform)

    Returns whether the specified transform is over the viewer's shoulders and behind the head

    Declaration
    public static bool IsOverShoulder(this IUsesViewerBody user, Transform rayOrigin)
    Parameters
    Type Name Description
    IUsesViewerBody user

    The functionality user

    Transform rayOrigin

    The rayOrigin to test

    Returns
    Type Description
    Boolean
    Back to top
    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