DismissHSW() public static method

public static DismissHSW ( ) : bool
return bool
Example #1
0
    /// <summary>
    /// If the HSW has been visible for the necessary amount of time, this will make it disappear.
    /// </summary>
    public static void DismissHSWDisplay()
    {
        if (!isHmdPresent)
        {
            return;
        }

        OVRPlugin.DismissHSW();
    }
Example #2
0
    /// <summary>
    /// If the HSW has been visible for the necessary amount of time, this will make it disappear.
    /// </summary>
    public static void DismissHSWDisplay()
    {
        if (!UnityEngine.XR.XRDevice.isPresent)
        {
            return;
        }

        OVRPlugin.DismissHSW();
    }
    /// <summary>
    /// If the HSW has been visible for the necessary amount of time, this will make it disappear.
    /// </summary>
    public static void DismissHSWDisplay()
    {
        if (!VR.VRDevice.isPresent)
        {
            return;
        }

        OVRPlugin.DismissHSW();
    }
Example #4
0
    /// <summary>
    /// If the HSW has been visible for the necessary amount of time, this will make it disappear.
    /// </summary>
    public static void DismissHSWDisplay()
    {
#if !UNITY_ANDROID || UNITY_EDITOR
        OVRPlugin.DismissHSW();

        if (HSWDismissed != null)
        {
            HSWDismissed();
        }
#endif
    }