A disabled Tab in a UI Toolkit TabView still responds to clicks and becomes the active tab. In Unity 6.0 you could disable a tab to stop it being selected. That behavior was removed by [Internal link] (landed 13 Aug 2025), which added InvokePolicy.IncludeDisabled to the tab header's PointerDownEvent so read-only tab views keep working. Read-only views are used in the Inspector when you edit an immutable object, where clicking a disabled tab must still switch to it.
Steps to reproduce:
- Create a TabView with two or more Tab elements.
- Disable one tab: myTab.SetEnabled(false).
- At runtime, click the disabled tab's header.
Actual results: the disabled tab is selected and shows its content.
Expected results: the disabled tab cannot be selected; the current tab stays active.
Reproducible with versions: Unity 6.0 works as expected. Broke in a later 6000.x stream
Not reproducible with versions:
Can’t test with versions:
Tested on (OS): Windows
Root cause:
- Modules/UIElements/Core/Controls/Tab.cs:330 registers OnTabClicked with CallbackOptions.IncludeDisabled, so a disabled header still fires selected.
- Modules/UIElements/Core/Controls/TabView.cs sets acceptClicksIfDisabled = true on the next/previous paging buttons.