how many editor script files are allowed ?

I have 2 script files in my Assets\Editor folder. They are C# script files ( a utility class file and a worker class file ).

When I use the command line -executeMethod switch to invoke method in my worker class, I get an error saying my method cannot be found.
But if I put all my utility methods in my worker class (thus combining them into 1 file) . It will work with no error…

So is there a way to have more than 1 script editor script file and still work in command line mode ?

my command line is similar to this :

unity.exe -projectPath “c:\Project\game1” -batchmode -executeMethod MyWorkerClass.DoWork -quit

The DoWork() method is public static and no argument.
There is no namespace. The worker class as follow:

using UnityEditor;
public class MyWorkerClass {
public static void DoWork() {
// call utilities methods
}
#region util_section
// after seeing 2 files not working… I put util method here
#endregion
}

My utility class file as follow:

using UnityEditor;
public class MyUtil {
// lots of util methods
public static void UtilFunc1(string x) {}
public static void UtilFunc2(int x) {}
}

Has anyone tried using 2 script file inside Assets/Editor folder successfully ?

editor classes are independent.

I’ve normally 10+ editor scripts in there, but they are never interrelated as each script does a very own task.

You might want to put the second class into the same script or even have it as private subclass