This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk | |
android:minSdkVersion="15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.microsoft.CognitiveServicesExample; | |
import android.app.Activity; | |
import android.content.Intent; | |
import android.util.Log; | |
import android.content.ServiceConnection; | |
import android.content.ComponentName; | |
import android.os.IBinder; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<manifest | |
xmlns:android="http://schemas.android.com/apk/res/android" | |
package="com.unity3d.player" | |
android:installLocation="preferExternal" | |
android:versionCode="1" | |
android:versionName="1.0"> | |
<uses-sdk | |
android:minSdkVersion="15" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.UI; | |
public class Test1 : MonoBehaviour { | |
public Text text; | |
public void bindService_Start(){ | |
Debug.Log("Unity test bindService Start"); | |
AndroidJavaClass unityPlayer = new AndroidJavaClass("com.unity3d.player.UnityPlayer"); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copy from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using UnityEngine; | |
public class WorldCursor : MonoBehaviour | |
{ | |
private MeshRenderer meshRenderer; | |
// Use this for initialization | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copy from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using UnityEngine; | |
using UnityEngine.VR.WSA.Input; | |
public class GazeGestureManager : MonoBehaviour | |
{ | |
public static GazeGestureManager Instance { get; private set; } | |
// Represents the hologram that is currently being gazed at. | |
public GameObject FocusedObject { get; private set; } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copied from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using UnityEngine; | |
public class SphereCommands : MonoBehaviour | |
{ | |
// Called by GazeGestureManager when the user performs a Select gesture | |
void OnSelect() | |
{ | |
// If the sphere has no Rigidbody component, add one to enable physics. | |
if (!this.GetComponent<Rigidbody>()) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copied from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using System.Collections.Generic; | |
using System.Linq; | |
using UnityEngine; | |
using UnityEngine.Windows.Speech; | |
public class SpeechManager : MonoBehaviour | |
{ | |
KeywordRecognizer keywordRecognizer = null; | |
Dictionary<string, System.Action> keywords = new Dictionary<string, System.Action>(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copied from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using UnityEngine; | |
public class SphereCommands : MonoBehaviour | |
{ | |
Vector3 originalPosition; | |
// Use this for initialization | |
void Start() | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/*copied from "https://developer.microsoft.com/en-us/windows/holographic/holograms_101"*/ | |
using UnityEngine; | |
public class TapToPlaceParent : MonoBehaviour | |
{ | |
bool placing = false; | |
// Called by GazeGestureManager when the user performs a Select gesture | |
void OnSelect() | |
{ |