Entries from 2024-07-01 to 1 month
extentionのRemote Explorerを入れる extentionにRemote SSHを入れる VSCodeでssh接続してRaspberry Piを触りたい - テコテック開発者ブログ
// ルビ要素を作成する関数 function addRuby(text, ruby) { return `<ruby>${text}<rt>${ruby}</rt></ruby>`; } // テキストノードにルビを適用する関数 function applyRubyToTextNode(textNode, rubyPairs) { let content = textNode.textContent; rubyPairs.forEach(pair => { c…
Shader "Unlit/UnlitWithNdotL" { Properties { _Color ("Color", Color) = (1,1,1,1) _MainTex ("Texture", 2D) = "white" {} _LightDirection ("Light Direction", Vector) = (0, 0, -1) } SubShader { Tags {"Queue"="Overlay" } LOD 100 cull Off Pass {…
以下のようにする //ワールド座標に一度する float4 wpos = mul(unity_ObjectToWorld, v.vertex); //ワールドから対象の座標に変換する(worldToLocal) wpos = mul(_TargetMatrix, wpos); 上記の_TargetMatrixは以下のように指定 Shader.SetGlobalMatrix( "_T…
2つのPC間で時間を同期することを考える。 親機と子機を考え、親機が時間データを送る 子機が親機と子機のデータから、時計を再設定する using System; using UnityEngine; public class MyClock { public static float _offset = 0; public static float S…
var ipStr = _ip.text; string[] results = ipStr.Split(','); var list = new List<string>(); for (var i = 0; i < results.Length; i++) { list.Add(results[i]); }</string>
OSCというプロトコルを使い、マック同士を同期させたい。 uOSC uOSCを使用 OSC 送信側(クライアント)=受信側のipを設定する、portを設定する 受信側(サーバー)=portを設定する 複数にデータを送信したい場合は、それぞれのIPごとに複数回送信する IPを…
macでうまくいかなくて断念 docs.unity3d.com note.com
//個別でやりたいとき this.gui.add(this,"radius",0,200).onChange(()=>{ //処理 }); //全体でいいとき this.gui.onChange(()=>{ //処理 });