Class DashboardOverlay

Namespace
OvrleUI
Assembly
OvrleUI.dll

Main class of Dashboard UI library.

public class DashboardOverlay : MonoBehaviour
Inheritance
Object
Component
Behaviour
MonoBehaviour
DashboardOverlay
Inherited Members
MonoBehaviour.IsInvoking()
MonoBehaviour.CancelInvoke()
MonoBehaviour.StopCoroutine(Coroutine)
MonoBehaviour.StopAllCoroutines()
MonoBehaviour.destroyCancellationToken
MonoBehaviour.useGUILayout
MonoBehaviour.runInEditMode
Behaviour.enabled
Behaviour.isActiveAndEnabled
Component.GetComponent<T>()
Component.TryGetComponent<T>(out T)
Component.GetComponentInChildren<T>()
Component.GetComponentsInChildren<T>()
Component.GetComponentInParent<T>()
Component.GetComponentsInParent<T>()
Component.GetComponents<T>()
Component.GetComponentIndex()
Component.transform
Component.gameObject
Component.tag
Object.GetInstanceID()
Object.GetHashCode()
Object.InstantiateAsync<T>(T)
Object.InstantiateAsync<T>(T, Transform)
Object.InstantiateAsync<T>(T, Vector3, Quaternion)
Object.InstantiateAsync<T>(T, Transform, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion)
Object.Instantiate(Object, Vector3, Quaternion, Transform)
Object.Instantiate(Object)
Object.Instantiate(Object, Scene)
Object.Instantiate(Object, Transform)
Object.Instantiate<T>(T)
Object.Instantiate<T>(T, Vector3, Quaternion)
Object.Instantiate<T>(T, Vector3, Quaternion, Transform)
Object.Instantiate<T>(T, Transform)
Object.Destroy(Object)
Object.DestroyImmediate(Object)
Object.DontDestroyOnLoad(Object)
Object.DestroyObject(Object)
Object.FindObjectsOfType<T>()
Object.FindObjectsByType<T>(FindObjectsSortMode)
Object.FindObjectsByType<T>(FindObjectsInactive, FindObjectsSortMode)
Object.FindObjectOfType<T>()
Object.FindFirstObjectByType<T>()
Object.FindAnyObjectByType<T>()
Object.FindFirstObjectByType<T>(FindObjectsInactive)
Object.FindAnyObjectByType<T>(FindObjectsInactive)
Object.ToString()
Object.name
Object.hideFlags

Fields

OnDashboardClose

public UnityEvent OnDashboardClose

Field Value

UnityEvent

OnDashboardOpen

public UnityEvent OnDashboardOpen

Field Value

UnityEvent

dashboardCamera

[Header("Object Reference")]
public Camera dashboardCamera

Field Value

Camera

desktopCamera

public Camera desktopCamera

Field Value

Camera

eventSystem

To convert OpenVR events to Unity UI events with InputConverter.

public EventSystem eventSystem

Field Value

EventSystem

fallbackMiscSound

Fallback sound that plays when player clicks UI elements. If this is null, dashboard overlay automatically use SteamVR default sound. If system sound file is not found, this fallback sound used.

[SerializeField]
public AudioClip fallbackMiscSound

Field Value

AudioClip

fallbackNavigationSound

Fallback sound that plays when player clicks sidebar items. If this is null, dashboard overlay automatically use SteamVR default sound. If system sound file is not found, this fallback sound used.

[SerializeField]
public AudioClip fallbackNavigationSound

Field Value

AudioClip

isDashboardVisible

Dashboard is shown for player.

[HideInInspector]
public bool isDashboardVisible

Field Value

bool

miscSound

[HideInInspector]
public AudioSource miscSound

Field Value

AudioSource

navigationSound

[HideInInspector]
public AudioSource navigationSound

Field Value

AudioSource

showDashboardAtLaunch

Whether dashboard is shown at launch.

public bool showDashboardAtLaunch

Field Value

bool

showDesktopWindow

If true, dashboard overlay also displays on Unity player window and player can interact with mouse. Window size should be 16:9 aspect ratio to process dashboard event mouse position correctly.

public bool showDesktopWindow

Field Value

bool

vrSystem

When handleOvrLifecycle = true, you can use this variable to use OpenVR system methods.

[HideInInspector]
public CVRSystem vrSystem

Field Value

CVRSystem

Methods

Awake()

protected void Awake()

DashboardToScreenPoint(Vector2)

public static Vector2 DashboardToScreenPoint(Vector2 point)

Parameters

point Vector2

Returns

Vector2

HapticPulse()

public void HapticPulse()

HapticPulseStrong()

public void HapticPulseStrong()

HapticPulseWeak()

public void HapticPulseWeak()

ScreenToDashboardPoint(Vector2)

public static Vector2 ScreenToDashboardPoint(Vector2 point)

Parameters

point Vector2

Returns

Vector2

SetOverlayAlpha(float)

public void SetOverlayAlpha(float alpha)

Parameters

alpha float