The NavigateFocusRing can be useful for overriding default navigation behaviour, but is is currently internal, why is that?
Hello, would any UI team member like to answer this simple question?
I don’t know the context but this might help accessing internal UIToolkit members/classes without reflection:
Thanks for the suggestion, I had dismissed that idea since UI Toolkit is not itself a package.
But this actually works. Of course it would still be better if Unity would make these types public in the first place, but yeah…
Just to flesh out the exact requirements for this to work:
-
Create an AssemblyDefinitionReference
-
Create whatever files need internal references in the same folder or a subfolder, such that it is compiled as part of the
UnityEngine.UIassembly.
You will of course then have to reference the UnityEngine.UI assembly, in all assemblies where you want access to your newly created type(s).

