IMHOTEP Framework
Main Page
Related Pages
Namespaces
Classes
Files
File List
All
Classes
Namespaces
Functions
Variables
Enumerations
Enumerator
Properties
Pages
Assets
ThirdParty
SteamVR
InteractionSystem
Core
Scripts
DebugUI.cs
1
//======= Copyright (c) Valve Corporation, All rights reserved. ===============
2
//
3
// Purpose: Debug UI shown for the player
4
//
5
//=============================================================================
6
7
using
UnityEngine;
8
using
UnityEngine.UI;
9
using
System.Collections;
10
11
namespace
Valve.VR.InteractionSystem
12
{
13
//-------------------------------------------------------------------------
14
public
class
DebugUI
: MonoBehaviour
15
{
16
private
Player
player;
17
18
//-------------------------------------------------
19
static
private
DebugUI
_instance;
20
static
public
DebugUI
instance
21
{
22
get
23
{
24
if
( _instance == null )
25
{
26
_instance = GameObject.FindObjectOfType<
DebugUI
>();
27
}
28
return
_instance;
29
}
30
}
31
32
33
//-------------------------------------------------
34
void
Start()
35
{
36
player = Player.instance;
37
}
38
39
40
//-------------------------------------------------
41
private
void
OnGUI()
42
{
43
#if !HIDE_DEBUG_UI
44
player.Draw2DDebug();
45
#endif
46
}
47
}
48
}
Valve.VR.InteractionSystem.DebugUI
Definition:
DebugUI.cs:14
Valve.VR.InteractionSystem.Player
Definition:
Player.cs:17
Generated by
1.8.6