Unityを分かっていない人(主に筆者)向けのメモです
AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。
- ReiPatcherでUnityInjector.Patcherを適用すると
| 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% |
Unityを分かっていない人(主に筆者)向けのメモです
AddModsSliderへのプルリクエストの検討時にCM3D2-01さんから教わりました。
https://github.com/CMU-Perceptual-Computing-Lab/openpose/blob/master/doc/installation.md 上で十分に書かれているので、まあ備忘録です。
Windowsの場合はVisual Studio 2015 Update3を推奨されています。
C++もインストールします
| // 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] |
| 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; |