- Home /
Question by
Scuba Kay · Jun 08, 2016 at 09:35 AM ·
editorwindowguiskin
Why is my customSkin null?
I have the following code:
public class Toolbox : EditorWindow, ISerializationCallbackReceiver
{
/// <summary>
/// The skin for the Toolbox
/// </summary>
public GUISkin customSkin;
void OnGUI()
{
GUI.skin = customSkin;
}
}
I set the skin in the inspector of my editor script, but it's still null in the OnGUI method. Why is this?
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612082507im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
How to add Background Images for Vertical GUILayouts in Unity3d Custom Editor Window 0 Answers
Can't change button GUIStyle background. 1 Answer
How do I add a drop-down menu to an EditorWindow? 3 Answers
How do I have an EditorWindow save it's data inbetween opening and closing Unity? C# 5 Answers
How can I determine which GUILayout.Window was last clicked? 2 Answers