Skip to content

Instantly share code, notes, and snippets.

View arumani's full-sized avatar

So Inamura arumani

View GitHub Profile
@arumani
arumani / CurvedPlaneWithUV.cs
Last active September 24, 2021 09:34 — forked from mattvr/CurvedPlane.cs
Curved plane for Unity
/*
MIT License
Copyright (c) 2016 Matt Favero
Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
@arumani
arumani / dotween_memo.cs
Created February 12, 2017 12:44
DOTWeen関連メモ
// ふわっと出てふわっと消える
DOTween.Sequence()
.Append(img.DOFade(1.0f, 0.2f).SetEase(Ease.Linear))
.AppendInterval(1.0f)
.Append(img.DOFade(0, 0.8f).SetEase(Ease.InQuint))
.OnComplete(() => {
img.gameObject.SetActive(false);
});
@arumani
arumani / settings.json
Last active April 17, 2017 01:31
Visual Studio Code(Mac)のUser Settings。v 1.8.1
{
"window.openFilesInNewWindow": "on",
"editor.renderWhitespace": "none",
"editor.insertSpaces": true,
"workbench.activityBar.visible": true,
"workbench.editor.enablePreview": false,
"workbench.editor.enablePreviewFromQuickOpen": false,
"editor.codeLens": true,
"window.zoomLevel": 0,
@arumani
arumani / AddCameraUsageToInfoPlist.cs
Last active September 12, 2018 04:04
UnityでiOSプロジェクトを書き出した際に、iOS 10でカメラを使う場合に必須の記述をInfo.plistに追加するスクリプト。/Assets/Editor/ 以下に置く
using UnityEngine;
using UnityEditor;
using UnityEditor.Callbacks;
using System.IO;
using UnityEditor.iOS.Xcode;
public class AddCameraUsageToInfoPlist {
[PostProcessBuildAttribute(99)]
public static void OnPostprocessBuild(BuildTarget target, string buildPath) {
diff --git Assets/GoogleVR/Legacy/Scripts/GvrHead.cs Assets/GoogleVR/Legacy/Scripts/GvrHead.cs
index 277b562..e666510 100644
--- Assets/GoogleVR/Legacy/Scripts/GvrHead.cs
+++ Assets/GoogleVR/Legacy/Scripts/GvrHead.cs
@@ -122,6 +122,8 @@ public class GvrHead : MonoBehaviour {
transform.position = target.position + target.rotation * pos;
}
}
+ // GVR+Vuforia
+ Vuforia.VuforiaBehaviour.Instance.UpdateState(false, true);