使用 IMGUIContainer
可将 IMGUI 代码放在 VisualElement
中。通常可在 OnGUI()
中执行的所有操作都受支持。
You can arrange multiple IMGUIContainer
and lay them out by mixing GUILayout
and UI Toolkit layouts. Note that it is not possible to add VisualElement
instances inside of an IMGUIContainer
.
IMGUIContainer
示例