Select your preferred scripting language. All code snippets will be displayed in this language.
Displays the recorded profiledata in the profiler.
Use the name of the text file, ".data" will be appended.
Profiler.AddFramesFromFile ("mylog.log");
using UnityEngine; using System.Collections; public class ExampleClass : MonoBehaviour { void Example() { Profiler.AddFramesFromFile("mylog.log"); } }
import UnityEngine import System.Collections public class ExampleClass(MonoBehaviour): def Example() as void: Profiler.AddFramesFromFile('mylog.log')
See Also: Profiler.AddFramesFromFile, Profiler.