UnityEvents not working properly

Hello everyone. When I add a script with a UnityEvent component to a gameobject I can’t seem to link the event to a method of another script. I am able to choose the script, but it doesn’t allow me to access anything except for MonoScript.name. It makes no difference which script I pick in the component, it only shows monoscript.
At first I encountered this issue on version 2021.3.5f1 so I upgraded to 2022.3.13f1 but the issue still persists. Is there something I miss? 9460082--1328864--unity1.PNG


9460082--1328861--unity2.PNG

Don’t mind “Off” in the first pic. It makes no difference if I set Runtime only.

Nevermind. It appears you have to drag not the script but the object it’s attached to. It works.

Yes, scripts are just text files. Quite literally, they just inherit from TextAsset: https://docs.unity3d.com/ScriptReference/MonoScript.html

They don’t represent actual instances of objects of anything in your project.