How to reference a script asset

Hello everyone,

I am trying to get a reference to a script in my assetsdirectory from the inspector.

NOT a already instanced script component in the scene!

What I tried was using the Object type as a SerializeField.

[SerializeField]
Object checkable;

This was the result:

However this is too much of a choice for users and I need the selection window to only filter certain scripts that inherit from either a MonoBehaviour script or best would be from an Interface.
It definitley should exclude Folders, Materials, Meshes etc…

In the end it should look like this:

You can make a empty gameObject to hold your script. Then when you need it you can access it through the empty game object.

Use UnityEditor.MonoScript, however, will work in the editor only.

i mean maybe you could get a public array of scripts for the user to chose and then just use an index of the array