[Chapter 14] public override void OnInspectorGUI() Issue

Using Unity 5.6.1f1

When learning about the level editor and saving levels we’re prompted to type up the following code:


However, I get an error as you can see in the above image. I copy pasted the code as well and still got the same issue. Is anyone else having this problem? If so how did you overcome it?


On page 374 of the book it mentions to create a folder named “Editor”, followed by a few scripts. I must have overlooked the “create a folder” part, and I created a script called Editor instead. So basically I was trying to override a function that didn’t exist in a script I created. sigh

1 Like

This topic was automatically closed after 166 days. New replies are no longer allowed.