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.

19 lines
702 B

  1. // Daydream Defines|SDK_Daydream|001
  2. namespace VRTK
  3. {
  4. /// <summary>
  5. /// Handles all the scripting define symbols for the Daydream SDK.
  6. /// </summary>
  7. public static class SDK_DaydreamDefines
  8. {
  9. /// <summary>
  10. /// The scripting define symbol for the Daydream SDK.
  11. /// </summary>
  12. public const string ScriptingDefineSymbol = SDK_ScriptingDefineSymbolPredicateAttribute.RemovableSymbolPrefix + "SDK_DAYDREAM";
  13. [SDK_ScriptingDefineSymbolPredicate(ScriptingDefineSymbol, "Android")]
  14. private static bool IsDaydreamAvailable()
  15. {
  16. return VRTK_SharedMethods.GetTypeUnknownAssembly("GvrController") != null;
  17. }
  18. }
  19. }