SDKProjectSettingGUI.cs 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647
  1. using System.Collections;
  2. using System.Collections.Generic;
  3. using UnityEngine;
  4. using UnityEditor;
  5. namespace Ximmerse.XR
  6. {
  7. /// <summary>
  8. /// Ximmerse XR SDK Project setting GUI.
  9. /// </summary>
  10. public class SDKProjectSettingGUI
  11. {
  12. [SettingsProvider]
  13. public static SettingsProvider CreateRxSDKProjectSetting()
  14. {
  15. // First parameter is the path in the Settings window.
  16. // Second parameter is the scope of this setting: it only appears in the Project Settings window.
  17. var provider = new SettingsProvider("Project/RhinoX Setting", SettingsScope.Project)
  18. {
  19. // By default the last token of the path is used as display name if no label is provided.
  20. label = "RhinoX SDK Settings",
  21. guiHandler = OnGUI,
  22. // Populate the search keywords to enable smart search filtering and label highlighting:
  23. keywords = new HashSet<string>(new[] { "RhinoX", "Rx", "Ximmerse", "XR" }),
  24. activateHandler = (searchContext, rootElement) =>
  25. {
  26. },
  27. };
  28. return provider;
  29. }
  30. static void OnGUI(string SearchContext)
  31. {
  32. GUIInternal();
  33. }
  34. private static void GUIInternal()
  35. {
  36. }
  37. }
  38. }