2015-11-18から1日間の記事一覧
何故か出ない。 One of my scripts has no check-box next to it in Inspector - Unity Answers Your MonoBehaviour won't have a checkbox next to it in the inspector if it doesn't have any of the per-frame methods, like Update, FixedUpdate, OnGUI…
デフォルト引数(別名:省略可能な引数、オプション引数(optional parameter))を使って、 デリゲートすると変な現象。 まず、このようなデフォルト引数のあるメソッド void Hoge(int fooInt, bool barBool=false, int fugaInt=0) { Debug.LogError(fooInt…
#if UNITY_EDITOR みたいなやつをプリプロセッサーディレクティブと言うと思う。 publicな定義を作りたい。 Global Conditional Compilation with Unity3D Assets/smcs.rsp の中に -define:LITE と書いてやれば グローバルのカスタム define シンボルになる…