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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
[RequireComponent(typeof(AudioSource))] | |
public class PlayAudio : MonoBehaviour { | |
public AudioClip[] audioClips; | |
private AudioSource audioSource; | |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.VR.WSA.WebCam; | |
using System.Linq; | |
public class YomEmotion : MonoBehaviour { | |
public string EmotionAPIKey = ""; | |
public float CaptureInterval = 60f; |
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 System.Collections; | |
using System.Collections.Generic; | |
using UnityEngine; | |
using UnityEngine.VR.WSA.WebCam; | |
using System.Linq; | |
public class YomEmotion : MonoBehaviour { | |
public string EmotionAPIKey = ""; | |
public float CaptureInterval = 60f; |
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
// usage: http://2vr.jp/2016/05/10/unity-hololens-tips/#NavigationDrag_Gesture | |
using UnityEngine; | |
using System.Collections; | |
using UnityEngine.VR.WSA.Input; | |
public class HandMove : MonoBehaviour { | |
public TextMesh Log; | |
public TextMesh Status; |
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.VR.WSA.Input; | |
public class HoloLensGestures : MonoBehaviour { | |
[SerializeField] | |
UnityEngine.Events.UnityEvent ev; | |
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
using UnityEngine; | |
public class DebugCameraControl : MonoBehaviour { | |
#if UNITY_EDITOR | |
private Vector3 oldPos; | |
void Update() { | |
if (Input.GetMouseButton(1)) { |
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 UnityEditor; | |
using System.Collections; | |
public class AssetStoreLink1 : EditorWindow { | |
[MenuItem("Window/Asset Store - Web")] | |
static void Open() { | |
System.Diagnostics.Process.Start("https://www.assetstore.unity3d.com/jp/"); | |
} |
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 WebSocketSharp; | |
using System.Collections; | |
public class AI : MonoBehaviour { | |
private WebSocket ws_; | |
public string docomoAPIkey = ""; | |
public string oreSay = ""; |
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
// Use Gists to store code you would like to remember later on | |
console.log(window); // log the "window" object to the console |
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; | |
public class AroundAndAround : MonoBehaviour { | |
public float Speed = 1.0f, Radius = 20.0f; | |
void Update () { | |
transform.Rotate(0, Speed, 0); | |
transform.localPosition = transform.forward * Radius; |
NewerOlder