Entries from 2020-11-01 to 1 month
XCodeで、iPhone is not available. please reconnect the device. って出たときの対策。 その1 iPhoneを再起動 その2 macを再起動 その3 betaなど、別のXCodeが入ってたら、そっちでビルドする。 結構うまくいく気がする。これが手軽かも。
画像をforループでいっぱいキャプチャする 文字をRenderTextureにキャプチャしたくて _camera.Renderをforループで回したらいけた using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class TextsCapture…
シグモイド関数 float y(float x) { float contrast=16.0;//4.0,8.0,16.0 return 1.0/(1.0+exp(-contrast*(x-0.5))); //return 1.0/(1.0+exp(-(x-0.5))); } 参考 シェーダ
fract like triangle wave UVをミラー的に折り返したいとき。 GLSL Grapher で描画 float y(float x) { return abs(2.0*fract(0.5*x-0.5)-1.0); } unityのシェーダーで。 //hlsl float2 sankaku(float2 x) { return abs(2.0*frac(0.5*x-0.5)-1.0); } 参考 gl…
forum.unity.com
qiita.com
mochimoffu.hateblo.jp marupeke296.com
dev.classmethod.jp
note.com using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; // コールバックテスト public class MyCallbackTest : MonoBehaviour { // UnityEventの定義 UnityEvent unityEvent; // スタート時…