Class UsesViewerBodyMethods | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    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 © 2020 Unity Technologies
    Generated by DocFX