You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: com.unity.ugui/Documentation~/ProfilerUI.md
+14-14Lines changed: 14 additions & 14 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -2,28 +2,28 @@
2
2
uid: um-profiler-ui
3
3
---
4
4
5
-
# UI and UI Details Profiler module reference
5
+
# UI (Canvas) and UI Details (Canvas) Profiler module reference
6
6
7
7
>[!NOTE]
8
-
> The UI and UI Details Profiler module collects Editor-only data, and doesn't work in development builds.
8
+
> The UI (Canvas) and UI Details (Canvas) Profiler module collects Editor-only data, and doesn't work in development builds.
9
9
10
-
The UI and UI Details Profiler modules provide information on how much time and resources Unity spends laying out and rendering the user interface within your application. You can use this module to understand how Unity handles UI batching for your application, including why and how it batches objects. You can also use this module to find out which part of the UI has slow performance, or to preview the UI while you scrub the timeline.
10
+
The UI (Canvas) and UI Details (Canvas) Profiler modules provide information on how much time and resources uGUI (Unity UI) spends laying out and rendering the user interface within your application. You can use this module to understand how uGUI handles UI batching for your application, including why and how it batches objects. You can also use this module to find out which part of the uGUI's UI has slow performance, or to preview the UI while you scrub the timeline.
11
11
12
12
To open the Profiler window, go to **Window > Analysis > Profiler**. For more information on how to use the Profiler window, refer to [The Profiler window](xref:um-profiler-window).
13
13
14
-

14
+

15
15
16
16
## Chart categories
17
-
The UI and UI Details Profiler modules' charts contain the following categories. To change the order of the categories in the chart, you can drag and drop them in the chart's legend. You can also click a category's colored legend to toggle its display.
17
+
The UI (Canvas) and UI Details (Canvas) Profiler modules' charts contain the following categories. To change the order of the categories in the chart, you can drag and drop them in the chart's legend. You can also click a category's colored legend to toggle its display.
18
18
19
-
### UI Profiler module
19
+
### UI (Canvas) Profiler module
20
20
21
21
|**Chart**|**Description**|
22
22
|---|---|
23
-
|**Layout**|How much time Unity spent performing the layout pass for the UI. This includes calculations done by [`HorizontalLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.HorizontalLayoutGroup.html), [`VerticalLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.VerticalLayoutGroup.html), and [`GridLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.GridLayoutGroup.html).|
24
-
|**Render**|How much time the UI has spent doing its portion of rendering. This is either the time spent rendering directly to the graphics device or rendering to the main render queue.|
23
+
|**Layout**|How much time uGUI spent performing the layout pass for the UI. This includes calculations done by [`HorizontalLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.HorizontalLayoutGroup.html), [`VerticalLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.VerticalLayoutGroup.html), and [`GridLayoutGroup`](https://docs.unity3d.com/Packages/com.unity.ugui@latest/index.html?subfolder=/api/UnityEngine.UI.GridLayoutGroup.html).|
24
+
|**Render**|How much time uGUI has spent doing its portion of rendering. This is either the time spent rendering directly to the graphics device or rendering to the main render queue.|
25
25
26
-
### UI Details Profile module
26
+
### UI Details (Canvas) Profile module
27
27
28
28
|**Chart**|**Description**|
29
29
|---|---|
@@ -32,20 +32,20 @@ The UI and UI Details Profiler modules' charts contain the following categories.
32
32
|**Markers**|Displays event markers. Unity records markers when the user interacts with the UI (for example, a button click, or a slider value change) and then draws them as vertical lines and labels on the chart.|
33
33
34
34
## Module details pane
35
-
When you select the UI or the UI Details Profiler module, the module details pane at the bottom of the Profiler window displays more details on the UI in your application. You can use it to inspect the profiling information about the UI objects in your application. The pane is divided into the following columns:
35
+
When you select the UI (Canvas) or the UI Details (Canvas) Profiler module, the module details pane at the bottom of the Profiler window displays more details on the uGUI's UI in your application. You can use it to inspect the profiling information about the UI objects in your application. The pane is divided into the following columns:
36
36
37
37
|**Column**|**Description**|
38
38
|---|---|
39
39
|**Object**|A list of UI canvases your application used during the period profiled. Double click on a row to highlight the matching object in the scene.|
40
-
|**Self Batch Count**|How many batches Unity generated for the canvas.|
41
-
|**Cumulative Batch Count**|How many batches Unity generated for the canvas and all its nested canvases.|
40
+
|**Self Batch Count**|How many batches uGUI generated for the canvas.|
41
+
|**Cumulative Batch Count**|How many batches uGUI generated for the canvas and all its nested canvases.|
42
42
|**Self Vertex Count**|How many vertices this canvas is rendering.|
43
43
|**Cumulative Vertex Count**|How many vertices this canvas and nested canvases are rendering.|
44
-
|**Batch Breaking Reason**|Why Unity split the batch. Sometimes Unity might not be able to batch objects together. Common reasons include: <ul><li>**Not Coplanar With Canvas**: The batching needs the object's rect transform to be coplanar (unrotated) with the canvas. </li><li>**CanvasInjectionIndex**: A CanvasGroup component is present and forces a new batch, such as when it displays the drop down list of a combo box on top of the rest.</li><li>**Different Material Instance, Rect clipping, Texture, or A8TextureUsage**: Unity can only batch together objects with identical materials, masking, textures, and texture alpha channel usage.</li></ul>|
44
+
|**Batch Breaking Reason**|Why uGUI split the batch. Sometimes uGUI might not be able to batch objects together. Common reasons include: <ul><li>**Not Coplanar With Canvas**: The batching needs the object's rect transform to be coplanar (unrotated) with the canvas. </li><li>**CanvasInjectionIndex**: A CanvasGroup component is present and forces a new batch, such as when it displays the drop down list of a combo box on top of the rest.</li><li>**Different Material Instance, Rect clipping, Texture, or A8TextureUsage**: Unity can only batch together objects with identical materials, masking, textures, and texture alpha channel usage.</li></ul>|
45
45
|**GameObject Count**|How many GameObjects are part of this batch.|
46
46
|**GameObjects**|The list of GameObjects in the batch.|
47
47
48
-
When you select a UI object from the list, a preview of it appears on the right hand side of the pane. Above the preview there are the following options in the toolbar:
48
+
When you select a uGUI's UI object from the list, a preview of it appears on the right hand side of the pane. Above the preview there are the following options in the toolbar:
49
49
50
50
***Detach:** Select this button to open the UI canvas in a separate window. To reattach the window, close it.
51
51
***Preview background:** Use the dropdown to change the color of the preview background. You can choose from **Checkerboard**, **Black**, or **White**. This is useful if your UI has a particularly light or dark color scheme.
Copy file name to clipboardExpand all lines: com.unity.ugui/Documentation~/TextMeshPro/include-rich-text-tags.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,7 @@
28
28
|[`<size>`](RichTextSize.md)|Adjusts the font size for a specified portion of the text.||
29
29
|[`<smallcaps>`](RichTextLetterCase.md)|Converts text to uppercase before rendering.||
30
30
|[`<space>`](RichTextSpace.md)|Adds a horizontal offset between itself and the rest of the text.||
31
-
|[`<sprite>`](RichTextSprite.md)|Adds a [sprite](Srites.md) to the text.|By default, TextMesh Pro looks in the default sprite assets, but you can use tag attributes to retrieve sprites from other assets.|
31
+
|[`<sprite>`](RichTextSprite.md)|Adds a [sprite](Sprites.md) to the text.|By default, TextMesh Pro looks in the default sprite assets, but you can use tag attributes to retrieve sprites from other assets.|
32
32
|[`<strikethrough>`](RichTextStrikethroughUnderline.md)| Draws a line slightly above the baseline so it crosses out the text. ||
33
33
|[`<style>`](RichTextStyle.md)|Applies a custom style to the text.||
34
34
|[`<sub>`](RichTextSubSuper.md)|Converts the text to subscript.||
Copy file name to clipboardExpand all lines: com.unity.ugui/Documentation~/UIAutoLayout.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -85,7 +85,7 @@ See the reference pages for [Horizontal Layout Group](script-HorizontalLayoutGro
85
85
86
86
Since a layout controller in the auto layout system can automatically control the sizes and placement of certain UI elements, those sizes and positions should not be manually edited at the same time through the Inspector or Scene View. Such changed values would just get reset by the layout controller on the next layout calculation anyway.
87
87
88
-
The Rect Transform has a concept of **driven properties** to address this. For example, a Content Size Fitter which has the Horizontal Fit property set to Minimum or Preferred will drive the width of the Rect Transform on the same Game Object. The width will appear as read-only and a small info box at the top of the Rect Transform will inform that one or more properties are driven by Conten Size Fitter.
88
+
The Rect Transform has a concept of **driven properties** to address this. For example, a Content Size Fitter which has the Horizontal Fit property set to Minimum or Preferred will drive the width of the Rect Transform on the same Game Object. The width will appear as read-only and a small info box at the top of the Rect Transform will inform that one or more properties are driven by Content Size Fitter.
89
89
90
90
The driven Rect Transforms properties have other reasons beside preventing manual editing. A layout can be changed just by changing the resolution or size of the Game View. This in turn can change the size or placement of layout elements, which changes the values of driven properties. But it wouldn't be desirable that the Scene is marked as having unsaved changes just because the Game View was resized. To prevent this, the values of driven properties are not saved as part of the Scene and changes to them do not mark the scene as changed.
Copy file name to clipboardExpand all lines: com.unity.ugui/Documentation~/index.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -14,7 +14,7 @@ Unity UI (uGUI) is a GameObject-based UI system that you can use to develop user
14
14
|[Events](EventSystem.md)| The Event System sends events to objects in the application based on input. |
15
15
|[Reference](UIReference.md)| Comprehensive guide to understanding of uGUI features. |
16
16
|[UI How Tos](UIHowTos.md)| Solutions to common UI tasks. |
17
-
|[UI and UI Details Profiler](ProfilerUI.md)| Use the UI and UI Details Profiler modules to understand how Unity handles UI batching for your application. |
17
+
|[UI (Canvas) and UI Details (Canvas) Profiler](ProfilerUI.md)| Use the UI (Canvas) and UI Details (Canvas) Profiler modules to understand how uGUI handles UI batching for your application. |
18
18
19
19
> [!NOTE]
20
20
> You can't use uGUI to create or change user interfaces of the Unity Editor.
0 commit comments