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

    Class UsesRayVisibilitySettingsMethods

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

    Methods

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

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

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

    The functionality user

    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(IUsesRayVisibilitySettings, Transform, Object)

    Remove visibility settings

    Declaration
    public static void RemoveRayVisibilitySettings(this IUsesRayVisibilitySettings user, Transform rayOrigin, object caller)
    Parameters
    Type Name Description
    IUsesRayVisibilitySettings user

    The functionality user

    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