Use SendMessage to get to a script in the editor folder

Scripts in the Editor folder are compiled last, so my usual javascript files that run my game can’t refer to those scripts, but the docs say you can use SendMessage to get to those variables and functions. But the C# script I have in my editor folder isn’t attached to anything, is it? So how do I send it a message? The normal usage is: myGameObject.SendMessage(). Thanks.

You know, that occurred to me after I posted this, so I wasn’t surprised to see your answer. But actually they are running. Make a script that creates a MenuItem that does something and stick it in the Editor folder. With your game running, switch to the scene view and try it. It works. For me, anyway.

But of course, I wasn’t trying to create an editor script that would work while the game was running, I was trying to make one that accesses regular objects and scripts from the game while it’s NOT running. And of course, you can’t do that. I’m new to editor scripting and I hadn’t thought it through. I HAVE thought of a much easier way to do I what I wanted to do, thankfully.

Thanks for your help!

Now that I re-read your answer, I realize you weren’t saying that those scripts weren’t running, just that they weren’t part of the game, which I didn’t realize either since I’m new to this aspect of Unity.