Are there standards for using a single Assembly Definition that includes both Editor and Runtime?

Most of the time I have the one way dependency of the Editor Assembly needing to reference the Runtime Assembly, but I’ve ended up with a case where both need to reference each other. This is because during Play Mode in the editor a method in the Runtime Assembly will use a method from the Editor Assembly.

Are there any standards for this? In the documentation the only standard given is making two separate assemblies, one for the editor and one for runtime.

It looks like it’s possible… you can do it as long as you add both the Editor platform and the target runtime platforms to the asmdef, and surround code that requires Editor APIs with #if UNITY_EDITOR.

Generally though it would be a good idea to keep the clear separation and move the Editor code needed for both assemblies in a third assembly… but at this point it’s up to you how you want to split your code. (Splitting assemblies is a good practice.)