Profiler.enabled 启用

static var enabled : bool

Description描述

Enables the Profiler.

启用Profiler分析器。

Can be used with Profiler.logFile to log profiling information in built players.

参见:Profiler.logFile

using UnityEngine;
using System.Collections;

public class example : MonoBehaviour {
	void Start() {
		Profiler.logFile = "mylog.log";
		Profiler.enabled = true;
	}
}
function Start () {
    Profiler.logFile = "mylog.log";
    Profiler.enabled = true;
}
Page last updated: 2011-3-25