Entries from 2024-02-01 to 1 month
以下のようなコマンドで動くnodejsのプログラムがあって、これを永続化させたいということがあった。 sudo npm run example -- examples/hoge.ts' そこで以下のようなhoge.jsを用意した。 const { exec } = require('child_process'); // 実行したいコマンド…
A Mac+Unity-exported app that downloaded from web doesn't work. It is a security problem. You have to do below on Terminal. Unityから書き出したappがネット経由でダウンロードしたappが動かない。 壊れていると言われる。ターミナルで以下を入力。 …
I didn't want uGUI to focus a slider after using it on Unity. unityのuguiにて。 private Slider _slider1; _slider1.onValueChanged.AddListener(_onChange); private void _onChange(float value){ EventSystem.current.SetSelectedGameObject(null);/…
けっこういい! [** pin & page-list-item] code:style.css /* pinnedのグループを独立させる */ .page-list-item.pin + .page-list-item:not(.pin) { clear: both; } /* pinの高さ */ .page-list-item.pin { height: 60px !important; } /* それ以外 */ .pa…
async tick(){ this.renderer.render(this.scene, this.oCamera); if(Params.isRec) Params.download2(); setTimeout(()=>{ this.tick(); },1000/60) } public static dhandle:any; public static async donwloadInit(){ Params.dhandle = await (window as …
// @ts-ignore をかく // @ts-ignore let example = 2; example = "型チェックを無視";
Physics.autoSimulation = false; Physics2D.autoSimulation = false;
https://qiita.com/aike@github/items/5df284620059bfc07364 macのappをunityから書き出してwebにファイルをアップ それがローカルファイルを参照するようなものだったとき、動かない! セキュリティの問題で 新規フォルダを作成→appをコピペ→それ以外をコピ…
[SerializeField] private Texture2D _bg; private void OnGUI(){ if (style == null) { style = new GUIStyle(); style.fontSize = 30; style.normal.textColor = Color.white; style.normal.background = _bg; } GUI.Label( new Rect(0, 700, 200, 50), _i…
public static void MakeNewDir(string newPath){ if ( Directory.Exists( newPath )) { // フォルダが存在する. Debug.Log("既に存在しているのでディレクトリつくらない " + newPath); }else{ Directory.CreateDirectory( newPath ); Debug.Log("ディレク…