KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2020-11-01 to 1 month

iPhone is not available. please reconnect the device.対策

iOS

XCodeで、iPhone is not available. please reconnect the device. って出たときの対策。 その1 iPhoneを再起動 その2 macを再起動 その3 betaなど、別のXCodeが入ってたら、そっちでビルドする。 結構うまくいく気がする。これが手軽かも。

capture images with for loop

画像をforループでいっぱいキャプチャする 文字をRenderTextureにキャプチャしたくて _camera.Renderをforループで回したらいけた using System.Collections; using System.Collections.Generic; using UnityEngine; using TMPro; public class TextsCapture…

sigmoid function in shader

シグモイド関数 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

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…

ARFoundation with Second camera

forum.unity.com

zwriteをシェーダーから指定

qiita.com

びょうがのじゅんばん

mochimoffu.hateblo.jp marupeke296.com

証明書の更新

iOS

dev.classmethod.jp

UnityでEventを作る

note.com using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEngine.Events; // コールバックテスト public class MyCallbackTest : MonoBehaviour { // UnityEventの定義 UnityEvent unityEvent; // スタート時…

"FOOTER"