# LightingWindowTab

> Base class to add custom tabs to the Lighting window.

## Definition

* **Type:** Class
* **Namespace:** [UnityEditor](/engine/6000.5/script-reference/unityeditor.md)
* **Assembly:** UnityEditor.CoreModule

```csharp
public abstract class LightingWindowTab
```

## Remarks

See also [LightingWindowEnvironmentSection](/engine/6000.5/script-reference/unityeditor/lightingwindowenvironmentsection.md).

```csharp
using UnityEditor;
using UnityEditor.Rendering;
using UnityEngine;
using UnityEngine.Rendering;

class CustomLightingTab : LightingWindowTab
{
    public override void OnEnable()
    {
        titleContent = new GUIContent("Custom");
        priority = 1; // This tab will be the second option in the toolbar
    }

    public override void OnGUI()
    {
        EditorGUILayout.LabelField("My Custom Lighting Tab !!");
    }
}
```

In this example, a new section is added in the Lighting window with the name Custom.

## Properties

| Property                                                                                      | Description                                    |
| --------------------------------------------------------------------------------------------- | ---------------------------------------------- |
| [priority](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/priority.md)         | The priority of the tab in the header toolbar. |
| [titleContent](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/titlecontent.md) | The title of the tab.                          |

## Methods

| Method                                                                                                      | Description                                                                          |
| ----------------------------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------ |
| [FocusTab](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/focustab.md)                       | FocusTab will open the lighting window with this tab selected.                       |
| [HasHelpGUI](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/hashelpgui.md)                   | Returns true if window has a doc button in the header.                               |
| [OnBakeButtonGUI](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/onbakebuttongui.md)         | OnBakeButtonGUI is called to draw a button at the bottom of the tab.                 |
| [OnDisable](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/ondisable.md)                     | OnDisable is called when this Inspector override is not used anymore.                |
| [OnEnable](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/onenable.md)                       | OnEnable is called when this Inspector override is used.                             |
| [OnGUI](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/ongui.md)                             | A callback that is called when drawing the main section of the tab.                  |
| [OnHeaderSettingsGUI](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/onheadersettingsgui.md) | A callback that is called when drawing the header icons in the top right of the tab. |
| [OnSelectionChange](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/onselectionchange.md)     | Called when the selection changes.                                                   |
| [OnSummaryGUI](/engine/6000.5/script-reference/unityeditor/lightingwindowtab/onsummarygui.md)               | A callback that is called when drawing the bottom section of the tab.                |
