Skip to content

Instantly share code, notes, and snippets.

using UnityEngine;
public class GearVRHelper : MonoBehaviour{
//タップ・フリック検出用の
public delegate void TrackPad(float x, float y);
//戻るボタンの短押しと、長押し用
public delegate void Trigger();
//戻るボタンの長押し検出時間
using UnityEngine;
public class TouchEventTest : MonoBehaviour {
void Start () {
GearVRHelper.OnBackHold += () => {
Debug.Log("BACK HOLD!");
};
GearVRHelper.OnBackPush += () => {
Debug.Log("BACK PUSH!");
};
:: setting of the environment variables
set SOURCE_DIR=%~dp0
set BUILD_DIR=%SOURCE_DIR%\build
set INSTALL_DIR=%BUILD_DIR%\install
set VC_VERSION_NUM=11
set VCVARSALL_BAT="C:\Program Files (x86)\Microsoft Visual Studio %VC_VERSION_NUM%.0\VC\vcvarsall.bat"
set ARCH=amd64
set GENERATOR_NAME=Visual Studio %VC_VERSION_NUM% Win64
call %VCVARSALL_BAT% %ARCH%
:: setting of the environment variables
set path=%PATH%;C:\Program Files (x86)\CMake\bin;
set SOURCE_DIR=%~dp0
set BUILD_DIR=%SOURCE_DIR%\build
set INSTALL_DIR=%BUILD_DIR%\install
set VC_VERSION_NUM=12
set VCVARSALL_BAT="C:\Program Files (x86)\Microsoft Visual Studio %VC_VERSION_NUM%.0\VC\vcvarsall.bat"
set ARCH=amd64
set GENERATOR_NAME=Visual Studio %VC_VERSION_NUM% Win64
call %VCVARSALL_BAT% %ARCH%
@neon-izm
neon-izm / notes-unityinjector-and-component.md
Created October 3, 2016 11:16 — forked from neguse11/notes-unityinjector-and-component.md
UnityInjectorとComponentの動作メモ

UnityInjectorの動作メモ

Unityを分かっていない人(主に筆者)向けのメモです

AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。

UnityInjectorの動作のおさらい

  • ReiPatcherでUnityInjector.Patcherを適用すると
@neon-izm
neon-izm / BuildingOpenPose.md
Last active October 28, 2017 09:49 — forked from anonymous/BuildingOpenPose.md
202commit(2017/10/26)時のWindows10(x64) GTX1060環境でのインストール
@neon-izm
neon-izm / NameGenerationWindow.cs
Created August 10, 2018 10:19 — forked from kankikuchi/NameGenerationWindow.cs
日本語から変数や関数名を生成するエディタ拡張【Unity】【エディタ拡張】
// NameGenerationWindow.cs
// http://kan-kikuchi.hatenablog.com/entry/NameGenerationWindow
//
// Created by kan.kikuchi on 2017.12.10.
using UnityEditor;
using UnityEngine;
using UnityEngine.Networking;
using System;
using System.Collections;
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;
namespace UnityChan
{
public class CopyMaterialParameter : EditorWindow
{
[SerializeField]
@neon-izm
neon-izm / CopyVRMSettings.cs
Created July 17, 2019 17:02 — forked from esperecyan/301 Moved Permanently.ja.md
『CopyVRMSettings.cs』 セットアップ済みのVRMプレハブから、正規化直後のVRMプレハブへ、UniVRMのコンポーネントの設定をコピーします。「Editor」という名前のフォルダをAssets内に作成し、その中にこのスクリプトを保存すると、上部メニューに次の項目が追加されます: VRM ▸ UniVRM ▸ CopyVRMSetting.cs / Copies the settings of UniVRM components from a set-up VRM prefab to a just normalized VRM prefab. You create the folder named “Editor” in Assets and save this scr…
using System;
using System.Linq;
using System.Reflection;
using System.Collections.Generic;
using System.IO;
using UnityEngine;
using UnityEngine.SceneManagement;
using UnityEditor;
using UnityEditorInternal;
using UniGLTF;