CurvedUIHandSwitcherEditor.cs 708 B

123456789101112131415161718192021222324
  1. using UnityEngine;
  2. using UnityEditor;
  3. using System.Collections;
  4. using System.Reflection;
  5. namespace CurvedUI
  6. {
  7. [CustomEditor(typeof(CurvedUIHandSwitcher))]
  8. public class CurvedUIHandSwitcherEditor : Editor
  9. {
  10. override public void OnInspectorGUI()
  11. {
  12. EditorGUILayout.HelpBox("This script moves the Laser Beam to the proper hand of OculusVR or SteamVR rig. Keep it active on the scene.", MessageType.Info);
  13. EditorGUILayout.HelpBox("The Laser Beam is just a visual guide - it does not handle interactions.", MessageType.Info);
  14. CurvedUIHandSwitcher manager = (CurvedUIHandSwitcher)target;
  15. DrawDefaultInspector();
  16. }
  17. }
  18. }