Hey,
I have been following some tutorials for a game and when trying to create a button in the editor, I get the error:
Assets/UI/Editor/AutomaticVerticalSizeEditor.cs(9,30): error CS0115: `AutomaticVerticalSizeEditor.onInspectorGUI()’ is marked as an override but no suitable method found to override
This is the script:
using UnityEngine;
using UnityEditor;
using System.Collections;
[CustomEditor(typeof(AutomaticVerticalSize))]
public class AutomaticVerticalSizeEditor : Editor {
public override void onInspectorGUI() {
DrawDefaultInspector ();
GUILayout.Button ("Test Button");
}
}
This is the first time for me creating editor stuff so I really could use some help.
Thanks.