Version: 5.3 (switch to 5.4b)
言語English
  • C#
  • JS

スクリプト言語

好きな言語を選択してください。選択した言語でスクリプトコードが表示されます。

Profiler.enabled

マニュアルに切り替える
public static bool enabled;

説明

プロファイラーの有効/無効を設定します

ビルドしたプレーヤーでプロファイリング情報をログに 記録する Profiler.logFile を使用できます。 関連項目: Profiler.logFile

using UnityEngine;
using System.Collections;

public class ExampleClass : MonoBehaviour { void Start() { Profiler.logFile = "mylog.log"; Profiler.enabled = true; } }