Hi, I’m having a bit of difficulty pinpointing the a problem.
- I have an EditorWindow.
- Within that editor window I have GUIWindows.
- Within the GUIWindows I have objectFields.
- In the DoWindow function I have EditorGUIUtility.LookLikeControls(); and that makes the little selection button and object field show up.
The Problem:
When I click to select an object, the selection window opens fine, but when I do select an object, it still shows “None” in the ObjectField. This happens only while inside the GUIWindow().
Snippet below.
var animClip : AnimationClip;
function EntryWindow (windowID : int) {
EditorGUIUtility.LookLikeControls();
animClip = EditorGUILayout.ObjectField("Animation Clip:", animClip, AnimationClip, true);
}
Any ideas what my problem can be?