Skip to content

Instantly share code, notes, and snippets.

View am1tanaka's full-sized avatar

Yu Tanaka am1tanaka

View GitHub Profile
@gamebox777
gamebox777 / ViewerCursorController.cs
Created July 24, 2019 16:08
カーソルをマウスでもコントローラー&キーボードでも操作できる様にする
using UnityEngine;
using UnityEngine.UI;
using UnityEngine.EventSystems;
/// <summary>
/// カーソルをマウスでもコントローラー&キーボードでも操作できる様にする
/// uGUIをそのまま使用したかったので、:EventSystems.BaseInputModule.PointerInputModuleを継承しました。
/// [Unity 2018.3.6f1]
/// </summary>
namespace ViewerCursorController