How can one hide the scripts for an editor extension? I assume there is a way to distribute an editor extension on the asset store without giving out the source code, but how do I make sure the end user can’t see or edit my code?
Is it also possible to put a script on a game object, but make it unreadable as well?
It’s not possible, so don’t waste time worrying about it. Even if you distribute a DLL, it’s fairly trivial to decompile that, and while it’s not as good as the “real” source code, it won’t stop anyone who’s determined to poke around in your code. Also, a lot of people will refuse to buy any utility unless it includes the source code.