---
title: BoldLabelRightAligned(Rect, string, bool, bool)
product: Unity Editor
version: '6000.7'
latest_version: '7000.0'
status: This page documents version 6000.7. The latest version is 7000.0.
canonical: https://docs.unity.com/en-us/engine/6000.7/script-reference/unityeditor/imgui/controls/treeview1/defaultgui/boldlabelrightaligned
latest_url: https://docs.unity.com/en-us/engine/7000.0/script-reference/unityeditor/imgui/controls/treeview1/defaultgui/boldlabelrightaligned.md
last_updated: 2026-09-14
generated_at: 2026-11-16T04:38:55.850Z
locale: en-us
---

# BoldLabelRightAligned(Rect, string, bool, bool)

> Draws a bold right aligned label that have correct text color when selected and/or focused.

## Definition

* **Type:** Method
* **Namespace:** [UnityEditor.IMGUI.Controls](/engine/6000.7/script-reference/unityeditor/imgui/controls.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public static void BoldLabelRightAligned(Rect rect, string label, bool selected, bool focused)
```

### Parameters

**** (\[Rect]\(/engine/6000.7/script-reference/unityengine/rect)): Rect to render the text in.**** (\[string]\(https\://learn.microsoft.com/dotnet/api/system.string)): Label to render.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Selected state used for determining text color.**** (\[bool]\(https\://learn.microsoft.com/dotnet/api/system.boolean)): Focused state used for determining text color.

### Remarks

This method uses the normal, focused, onNormal and onFocused GUIStyleStates of TreeView\.DefaultStyles.boldRightAlignedLabel to ensure correct rendering of text above a selection background.
