KITASENJU DESIGN BLOG

memo, html, javascript, unity

Entries from 2024-02-02 to 1 day

onguiで背景を設定

[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…

unityからdirectoryを作る

public static void MakeNewDir(string newPath){ if ( Directory.Exists( newPath )) { // フォルダが存在する. Debug.Log("既に存在しているのでディレクトリつくらない " + newPath); }else{ Directory.CreateDirectory( newPath ); Debug.Log("ディレク…

"FOOTER"