Profiler.logFile 日志文件

static var logFile : string

Description描述

Sets profiler output file in built players.

在发布的运行环境中,设置profiler输出文件。

Use it with Profiler.enabled to produce profiling information outside of the Unity Editor. Setting this property is not supported in the WebPlayer. The WebPlayer will output the profiling information next to your webplayer logfile.

使用它开启Profiler.enabled在Unity编辑器外部,来分析信息。设置这个属性不支持web播放器。WebPlayer将输出分析信息到邻近的webplayer日志文件。

参见:Profiler.enabled

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