Hello, I've had a problem with ShowObjectPicker(). The goal would be: as the user opens the TriggerChoiceWindow, the ObjectPicker window shows up, and the user can choose the object out of a selection. The chosen object would then be in an ObjectField. The problem is, using the ShowObjectPicker function freezes Unity. Here is the code: Code (CSharp): using System.Collections; using System.Collections.Generic; using UnityEngine; using UnityEditor; public class TriggerChoiceWindow : EditorWindow { [MenuItem("Window/TriggerChoice")] public static void ShowWindow() { EditorWindow.GetWindow(typeof(TriggerChoiceWindow)); } int currentPickerWindow; public Object selectedObject; void ShowPicker() { currentPickerWindow = EditorGUIUtility.GetControlID(FocusType.Passive); EditorGUIUtility.ShowObjectPicker<Object>(null, false, "Cube", currentPickerWindow); } void OnGUI() { ShowPicker(); if (Event.current.commandName == "ObjectSelectorUpdated" && EditorGUIUtility.GetObjectPickerControlID() == currentPickerWindow) { selectedObject = EditorGUIUtility.GetObjectPickerObject(); EditorGUILayout.ObjectField(selectedObject, typeof(Object), true); currentPickerWindow = -1; Debug.Log(selectedObject.name); } } } Unity doesn't freeze instantly; it does try to display the selected object's name, but it throws a NullReferenceException. After several tries, I've found that it's the line with ShowObjectPicker that causes Unity to freeze. Without that line, Unity just works normally. I hope someone can help me. Thank you for your time.