Unity/開発環境/UnityEditor
ナビゲーションに移動
検索に移動
UnityEditorのPlayボタンのビルドが遅い場合
ProjectSettings/ProjectSettings.assetの productName:の文字列を変更すると、30秒→5秒に縮まったことがある。 Unity再起動必須。
UnityEditorを実行しなくても実行するパラメータ
[ExecuteAlways]
[ExecuteAlways]
public class SafeArea : MonoBehaviour
{
public void Update() {
Debug.Log("update");
}
}
define判定
#define APP_LOG_TRUE // これをコメントアウトするとログがでなくなる。
#if APP_LOG_TRUE
Debug.Log("hoge");
#endif