Book Image

Learning NGUI for Unity

By : Charles Bernardoff (EURO)
Book Image

Learning NGUI for Unity

By: Charles Bernardoff (EURO)

Overview of this book

Table of Contents (17 chapters)
Learning NGUI for Unity
Credits
About the Author
About the Reviewers
www.PacktPub.com
Preface
Index

The profiler


The profiler is a Unity Pro feature. It's a great help when optimizing your game. It can report the amount of time spent for rendering, animating, or code processing.

Functionalities

Open the profiler window by navigating to Window | Profiler. The following window appears (yours will be empty):

Profiler window while in play mode

Here's an explanation of the most important functions of the Profiler window:

  1. Record: This enables or disables frame data recording.

  2. Deep Profile: This records information for all scripts, giving your more script details for each frame. With it enabled, you'll have a deeper hierarchy of analyzed elements and know which method took how much of the processing time. Enabling it at runtime will prompt the game to restart—it's recommended that you enable or disable this feature while the game isn't running.

  3. Profile Editor: Enabling this will let the profiler run even out of play mode.

  4. Active Profiler: This displays the profiler for either the editor or the connected...