is there any assets preview area in UI Builder
I can create it with the code down below but i can’t do it with UI Builder
private void OnGUI()
{
EditorGUILayout.Space(200);
if (_player.value != null)
{
if (_gameObjectEditor == null)
_gameObjectEditor = Editor.CreateEditor(_player.value);
_gameObjectEditor.OnInteractivePreviewGUI(GUILayoutUtility.GetRect(300, 300), EditorStyles.whiteLabel);
}
}
Hi, the UI Builder is a distinct window that is not connected to the inspector window. There is no way at the moment to have custom drawers displayed in the UI Builder and as such, there is no way to display an interactive preview.
Anything on the radar? I’m looking for this as well.
Still? I need this feature.
You can wrap IMGui stuffs with IMGuiContainer in uitoolkit
Thanks, I followed up related thread and this thread fixed the problem for me:
Hello there folks,
I have a IMGUIContainer rendering a UnityEditor.Editor in a EditorWindow instance, all works fine, the gameobject is displayed like it should in the UI, the problem is that my editor window makes changes at the selected gameobject, when the changes are made ReloadPreviewInstances is called at the UnityEditor.Editor instance, but the IMGUIContainer is not repainted, I can only see the changes when I interact with the UnityEditor.Editor, to be especific, the changes made are on…