Custom Editor not accepting typeof

Hey all,
using Unity 2019.3.12f1

When creating an Editor scrip, it’s unable to find the typeof(script) that i’m after. E.g.

using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEditor;

[CustomEditor(typeof(Test))]
public class TestEditor : Editor

the ‘Test’ Script is unable to be found, the only script that can be found is the TestEditor script. I currently have tried Test script in the assets - Scripts folder and the editor script in a separate Assets - Editor Folder.

Any help would be great.

Thanks.

I would like to highlight that you’ve posted this on the 2D forum but the above is an editor script issue.

Maybe try the Editor & General Support forum.

You’re more likely to get a quicker response from devs if you post in the correct forum.

Thanks.