Assignment for RMIT Mixed Reality in 2020
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

34 lines
1.3 KiB

  1. // WindowsMR Defines|SDK_WindowsMR|001
  2. namespace VRTK
  3. {
  4. using System;
  5. /// <summary>
  6. /// Handles all the scripting define symbols for the Windows Immersive Mixed Reality SDK.
  7. /// </summary>
  8. public static class SDK_WindowsMRDefines
  9. {
  10. /// <summary>
  11. /// The scripting define symbol for the Immersive Mixed Reality SDK.
  12. /// </summary>
  13. public const string ScriptingDefineSymbol = SDK_ScriptingDefineSymbolPredicateAttribute.RemovableSymbolPrefix + "SDK_WINDOWSMR";
  14. private const string BuildTargetGroupName = "WSA";
  15. [SDK_ScriptingDefineSymbolPredicate(ScriptingDefineSymbol, BuildTargetGroupName)]
  16. [SDK_ScriptingDefineSymbolPredicate(SDK_ScriptingDefineSymbolPredicateAttribute.RemovableSymbolPrefix + "WINDOWSMR_CONTROLLER_VISUALIZATION", BuildTargetGroupName)]
  17. private static bool HasControllerVisualization()
  18. {
  19. Type controllerVisualizerClass = VRTK_SharedMethods.GetTypeUnknownAssembly("VRTK.WindowsMixedReality.MotionControllerVisualizer");
  20. return controllerVisualizerClass != null;
  21. }
  22. [SDK_ScriptingDefineSymbolPredicate(ScriptingDefineSymbol, BuildTargetGroupName)]
  23. private static bool IsXRSettingsEnabled()
  24. {
  25. //TODO : Check somehow for XR Settings
  26. return true;
  27. }
  28. }
  29. }