My custom editor script doesn't recognize my class after importing Ads Mediation

Hi,

I’m using Unity 2020.3.47f1. My project compiles and runs fine. After I open the Package Manager and install the Ads Mediation 1.0.0 package, I get errors within my Editor scripts that they don’t recognize my class objects. I tried creating a namespace and putting those classes in, but it’s like those files are invisible to my editor scripts (but only after mediation for LevelPlay is installed).

Thanks!
-Matt

This is ridiculous…

So if I move all of my editor scripts from Assets/Editor into the Assets/IronSource/Editor folder that was created, then it compiles fine.

Doesn’t Unity recognize multiple Editor folders? My project already has a few scattered around with various plugins, why would the IronSource editor folder be different and cause compilation errors?

If I move all of the contents in the IronSource/Editor folder to my Assets/Editor folder, I get all of the errors of not knowing what my classes are.

What is going on? Any help is appreciated, I obviously don’t want to put custom, game-specific scripts inside a package manager’s folder (in case I update/remove/etc).

Thank you!
-Matt

Perhaps assembly definition files?

It looks like it’s the MobileDependencyResolver files that the Ads Mediation plugin installed. It placed them inside my Editor folder, instead of the IronSource/Editor folder. If I move them into IronSource’s Editor folder, everything compiles fine.

It’s like an order-of-compilation type error, I don’t get it. I have a work around, albeit one I don’t understand nor like.