Unity-Http-Debugger icon indicating copy to clipboard operation
Unity-Http-Debugger copied to clipboard

'Tab' is an ambiguorus reference

Open SafakB opened this issue 10 months ago • 0 comments

About the error

One parameter cannot choose which namespace to use. Because Tab class exists in both namespaces.

Unity Version : 6 File : UiUtils.cs(27,105) Error : error CS0104: ‘Tab’ is an ambiguous reference between ‘UnityEngine.UIElements.Tab’ and ‘QuickEye.UIToolkit.Tab’

https://github.com/ErnSur/Unity-Http-Debugger/blame/449b7656b47812ee58d95051222ec6edcc957420/Editor/UiUtils.cs#L26-L28

I found the solution as follows

Old Version:

public static void InitialiseTabStatePersistence(VisualElement root, string viewDataKey, params Tab[] tabs)

Working Version:

public static void InitialiseTabStatePersistence(VisualElement root, string viewDataKey, params QuickEye.UIToolkit.Tab[] tabs)

SafakB avatar Apr 06 '25 18:04 SafakB