When using uGUI and UI Toolkit in the same scene, PanelRaycaster
and PanelEventHandler
are added as a child the EventSystem
object for each UI Toolkit panel.
Is there a way to get references to these from the UI Document
(MonoBehaviour)?
When using uGUI and UI Toolkit in the same scene, PanelRaycaster
and PanelEventHandler
are added as a child the EventSystem
object for each UI Toolkit panel.
Is there a way to get references to these from the UI Document
(MonoBehaviour)?
Figured it out, you can get it from the runtimePanel.
Unity - Scripting API: UIElements.IRuntimePanel.selectableGameObject