[Solved ]EditorGUILayout.ObjectField help

whats the exact code for EditorGUILayout.ObjectField if want it to set a GUISkin to a variable? C# preferd please but I’ll accept java.

Something like that should do:

GUISkin skin = null;
public override void OnInspectorGUI()
    skin = (GUISkin)EditorGUILayout.ObjectField(skin,typeof(GUISkin));

ps. if you use C# i would recommend to use Visual Studio. There’s even a free version called Visual C# Express. IntelliSense will make your life so much easier :wink: