Interface IProvidesRayVisibilitySettings | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Interface IProvidesRayVisibilitySettings

    Provide the ability to control ray visibility

    Inherited Members
    IFunctionalityProvider.LoadProvider()
    IFunctionalityProvider.ConnectSubscriber(Object)
    IFunctionalityProvider.UnloadProvider()
    Namespace: Unity.Labs.EditorXR.Interfaces
    Syntax
    public interface IProvidesRayVisibilitySettings : IFunctionalityProvider

    Methods

    AddRayVisibilitySettings(Transform, Object, Boolean, Boolean, Int32)

    Add visibility settings to try and show/hide the ray/cone

    Declaration
    void AddRayVisibilitySettings(Transform rayOrigin, object caller, bool rayVisible, bool coneVisible, int priority = 0)
    Parameters
    Type Name Description
    Transform rayOrigin

    The ray to hide or show

    Object caller

    The object which is adding settings

    Boolean rayVisible

    Show or hide the ray

    Boolean coneVisible

    Show or hide the cone

    Int32 priority

    (Optional) The priority level of this request

    RemoveRayVisibilitySettings(Transform, Object)

    Remove visibility settings

    Declaration
    void RemoveRayVisibilitySettings(Transform rayOrigin, object caller)
    Parameters
    Type Name Description
    Transform rayOrigin

    The ray from which to remove settings

    Object caller

    The object whose settings to remove

    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