Interface IProvidesViewerBody | Unity Reflect | 1.1.0-preview.6
docs.unity.cn
    Show / Hide Table of Contents

    Interface IProvidesViewerBody

    Provide access to checks that can test against the viewer's body

    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesViewerBody : IFunctionalityProvider

    Methods

    IsAboveHead(Transform)

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

    Declaration
    bool IsAboveHead(Transform rayOrigin)
    Parameters
    Type Name Description
    Transform rayOrigin

    The rayOrigin to test

    Returns
    Type Description
    Boolean

    IsOverShoulder(Transform)

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

    Declaration
    bool IsOverShoulder(Transform rayOrigin)
    Parameters
    Type Name Description
    Transform rayOrigin

    The rayOrigin to test

    Returns
    Type Description
    Boolean
    Back to top Copyright © 2020 Unity Technologies
    Generated by DocFX