Skip to content

Instantly share code, notes, and snippets.

View tarukosu's full-sized avatar

tarukosu tarukosu

View GitHub Profile
@tarukosu
tarukosu / keybindings.json
Created April 25, 2017 05:08
VS Code Emacs Keybindings
// 既定値を上書きするには、このファイル内にキー バインドを挿入します
[
{
"key": "ctrl+x o",
"command": "workbench.action.navigateEditorGroups"
},
{
"key": "shift+alt+5",
"command": "editor.action.startFindReplaceAction"
},
@tarukosu
tarukosu / DestinationPlacement.cs
Created May 6, 2017 12:16
DestinationPlacement.cs
using HoloToolkit.Unity.InputModule;
using UnityEngine;
public class DestinationPlacement : MonoBehaviour, IInputClickHandler
{
void Start()
{
InputManager.Instance.PushFallbackInputHandler(gameObject);
}
@tarukosu
tarukosu / HumanNavigation.cs
Last active May 6, 2017 12:39
HumanNavigation.cs
using UnityEngine;
using UnityEngine.AI;
public class HumanNavigation : MonoBehaviour {
public GameObject destination;
NavMeshAgent agent;
LineRenderer lineRenderer;
void Start () {
lineRenderer = GetComponent<LineRenderer>();
@tarukosu
tarukosu / SpatialMappingReproject.cs
Last active May 28, 2017 08:30
SpatialMappingReproject.cs
using UnityEngine;
using HoloToolkit.Unity.SpatialMapping;
using HoloToolkit.Unity;
public class SpatialMappingReproject : MonoBehaviour
{
public GameObject SpatialMapping;
public Camera HoloLensCamera;
public Material ReprojectionMaterial;
WebCamTexture webCamTexture;
@tarukosu
tarukosu / MeshReproject.cs
Created May 28, 2017 07:41
MeshReproject.cs
using UnityEngine;
public class MeshReproject : MonoBehaviour
{
public Camera ProjectionPerspective;
Mesh mesh;
Vector3[] vertices;
Vector2[] uvs;
@tarukosu
tarukosu / ImageProcessingShader.shader
Last active May 28, 2017 09:26
ImageProcessingShader.shader
Shader "Hidden/ImageProcessingShader"
{
Properties
{
_MainTex ("Texture", 2D) = "white" {}
}
SubShader
{
// No culling or depth
Cull Off ZWrite Off ZTest Always
@tarukosu
tarukosu / ToggleButton.cs
Created June 18, 2017 10:10
ToggleButton.cs
using UnityEngine;
using HUX.Buttons;
using HUX.Receivers;
using HUX.Interaction;
using UnityEngine.Events;
[System.Serializable]
public class BooleanEvent : UnityEvent<bool>
{
@tarukosu
tarukosu / MouseHook.cs
Created July 2, 2017 11:18
MouseHook.cs
using System;
namespace MMFrame.Windows.GlobalHook
{
/// <summary>
/// マウスのグローバルフックに関するクラス
/// </summary>
public static class MouseHook
{
/// <summary>
@tarukosu
tarukosu / MouseHookTest.cs
Created July 2, 2017 12:01
MouseHookTest.cs
using MMFrame.Windows.GlobalHook;
using UnityEngine;
namespace MMFrame
{
public class MouseHookTest : MonoBehaviour
{
void Start()
{
if (MouseHook.IsHooking)
@tarukosu
tarukosu / SweepVisualizer.cs
Created July 30, 2017 12:12
SweepVisualizer.cs
using System.Collections.Generic;
using UnityEngine;
namespace UnitySweep {
public class SweepVisualizer : MonoBehaviour {
public GameObject PointPrefab;
Sweep Sweep;
List<GameObject> pointList;