Spelunx Cavern SDK
 
Loading...
Searching...
No Matches
ViveDebugRenderer.cs
Go to the documentation of this file.
1using UnityEngine;
2#if UNITY_EDITOR
3using UnityEditor;
4#endif
5
6namespace Spelunx.Vive
7{
8 /// <summary>
9 /// This class loads the vive tracker mesh, to be used by ViveTracker when rendering a gizmo.
10 /// </summary>
11 public static class ViveDebugRenderer
12 {
13
14#if UNITY_EDITOR
15 public static readonly Mesh trackerMesh = (Mesh)AssetDatabase.LoadAssetAtPath("Packages/com.spelunx.cavern.vive-trackers/Models/vr_tracker_vive_3_0.obj", typeof(Mesh));
16 public static readonly Mesh indexControllerLeftMesh = (Mesh)AssetDatabase.LoadAssetAtPath("Packages/com.spelunx.cavern.vive-trackers/Models/index_controller_left.obj", typeof(Mesh));
17 public static readonly Mesh indexControllerRightMesh = (Mesh)AssetDatabase.LoadAssetAtPath("Packages/com.spelunx.cavern.vive-trackers/Models/index_controller_right.obj", typeof(Mesh));
18
19#endif
20 }
21}
This class loads the vive tracker mesh, to be used by ViveTracker when rendering a gizmo.