Streaming Assets で iOSとAndroidの違いにハマったのでメモ。 string FilePath; #if UNITY_IPHONE FilePath = Application.dataPath + "/Raw/" + filename; #else string fullPath = "jar:file://" + Application.dataPath + "/!/assets/" + filename; WWW www = new WWW (fullPath); while (!www.isDone) { } FilePath = Application.persistentDataPath + filename; File.WriteAllBytes (toPath,www.bytes); #endif iOS
メッシュの情報をとる方法に少しハマったので備忘録 Get correct Mesh.Bounds ローカル座標ではmeshfilter.mesh.boundsではなくてrenderer
別のプロジェクトで作ったものを、いったん.unitypackageでエキスポートしたのですが、インポートすると、エディタでは問題なく動くのに
むちゃくちゃ簡単 ffmpeg -i movie.mp4 -s 1136x640 movie.mp4
UnityのlookAtは便利ですが、回転をさらに細かく制御しようと思うと難しいので置き換えます。 Rot.transform.LookAt (Vector3.zero); こうするところを、 Vector3 relative = gameObject.transform.InverseTransformPoint(Vector3.zero);<br /> float angle = Mathf.Atan2(relative.x, relative.z)
<script type="text/javascript"> var client_id = "クライアントID"; var scopes = 'https://www.googleapis.com/auth/drive'; function checkAuth() { gapi.auth.authorize( { 'client_id':client_id, 'scope':scopes, 'immediate':true }, function(authResult){ console.log(arguments); }); } </script> <script type="text/javascript" src="https://apis.google.com/js/client.js?onload=checkAuth"</script> こんな感じで認証部分を記述しても何度やってもこ
Auto SmoothをON
3DViewでモデルを選択し、Object ModeからEdit Modeに変更。 左側のメニュー内のShading/UVsを選択。 Shading/UVs > UVs > UV Mapping >
先週の「RingNinja」に続いて、GearVR向けのVRシューティングゲーム「GCLOPS」がOculus Storeのギャラリーアプリで
https://itunes.apple.com/jp/app/ringninja/id1172708749?l=ja&ls=1&mt=8 https://play.google.com/store/apps/details?id=me.Backham.ninjakun 半年くらいコツコツと作ってきたローポリーのゲーム「RingNinja」をようやくリリースできました。 敵を固定するリング もともと敵を固定し