- Home /
Question by
IzzyDev · Jul 11, 2020 at 01:27 PM ·
errorerror messagecustom editorterrain-editorcontext
Getting errors while creating a custom terrain editor
I created two scripts called "CustomTerrain" and "CustomTerrainEditor". Here is the code for the latter:
using UnityEngine;
using UnityEditor;
using EditorGUITable;
[CustomEditor(typeOf(CustomTerrain))] // Links editor code in here with CustomTerrain.cs
[CanEditMultipleObjects]
public class CustomTerrainEditor : Editor
{
void OnEnable() {}
public override void OnInspectorGUI() {} // The GUI we will see in the inspector
}
When I go back to unity, I get the following two errors:
I don't understand what I am doing wrong. Thanks for the help!
errors.png
(23.0 kB)
Comment
Your answer

Follow this Question
Related Questions
Error, I have no idea why :( 2 Answers
Was gameObject.GetChild(childsName); a thing? 2 Answers
Xcode error when Archiving linker command failed with exit code 1 (use -v to see invocation) clang 1 Answer
Build and Run not working Error Message 0 Answers
Timestamps (566) and assets (567) maps out of sync. 8 Answers