ARLocationManagerInspector.cs 473 B

12345678910111213141516171819
  1. using UnityEngine;
  2. using UnityEditor;
  3. namespace ARLocation
  4. {
  5. [CustomEditor(typeof(ARLocationManager))]
  6. public class ARLocationManagerInspector : Editor
  7. {
  8. public override void OnInspectorGUI()
  9. {
  10. DrawDefaultInspector();
  11. if (GUILayout.Button("Open AR+GPS Location configuration"))
  12. {
  13. Selection.activeObject = Resources.Load<ARLocationConfig>("ARLocationConfig");
  14. }
  15. }
  16. }
  17. }