2025年4月 (1) 2025年1月 (1) 2024年5月 (1) 2024年3月 (1) 2024年1月 (1) 2023年12月 (1) 2023年11月 (1) 2023年9月 (1) 2023年8月 (1) 2023年7月 (1) 2023年6月 (1) 2023年5月 (1) 2023年4月 (1) 2023年3月 (1) 2023年2月 (1) 2023年1月 (2) 2022年12月 (1) 2022年11月 (2) 2022年10月 (1) 2022年9月 (1) 2022年8月 (1) 2022年7月 (1) 2022年6月 (1) 2022年5月 (1) 2022年4月 (1) 2022年3月 (1) 2022年2月 (1) 2022年1月 (1) 2021年12月 (1) 2021年11月 (1) 2021年10月 (1) 2021年9月 (1) 2021年8月
GUILayout は GUI とは異なり、自動的にレイアウトしてくれるGUIパーツを使う事が出来ます。 この様に書くと自動的に縦に並べて表示してくれます。 function OnGUI () { GUILayout.Button ("test1"); GUILayout.Button ("test2"); GUILayout.Button ("test3"); } Space() を使うと余白を入れれます。 function OnGUI () { GUILayout.Button ("test1"); GUILayout.Space (20); GUILayout.Button ("test2"); GUILayout.Space (20); GUILayout.Button ("test3"); } 水平に(1グループとして)並べる。 function OnGUI () { GUILa
GUIパーツの使い方 1. メニューから GameObject -> Create Empty で空のゲームオブジェクトを作成。 2. ProjectビューのScriptディレクトリで右クリック。生成されたファイルを NewBehaviourScript→GUIScript とリネーム。 3. そのファイルを開き以下の内容に変更。 var mainmenuSkin : GUISkin; function OnGUI () { GUI.skin = mainmenuSkin; GUILayout.BeginArea (Rect (10, 100, 500, 500)); if(GUILayout.Button ("Exit Game")) { Debug.Log ("Exit"); Application.Quit (); } GUILayout.EndArea (); }4. そのファイル
In this article I will introduce the reader to Graphical User Interface (GUI) scripting in Unity. Unity has a very powerful GUI scripting Application Programming Interface (API). It allows you to quickly create simple menus and GUIs using scripts. Introduction Unity provides the ability to create GUI interfaces through the use of scripts. At the time of this writing, Unity does not provide a nativ
そう、UE4ならね。あなたのモバイルゲームをより快適にする沢山の冴えたやり方について Part 1 <Shader Compile, PSO Cache編>
リリース、障害情報などのサービスのお知らせ
最新の人気エントリーの配信
処理を実行中です
j次のブックマーク
k前のブックマーク
lあとで読む
eコメント一覧を開く
oページを開く