Is there some way let assembly-csharp.dll and assembly-csharp-editor.dll reference another script but not copy it to both runtime folder and editor folder.I’ve tried assembly definition but not work.
You should be able to reference regular classes from an editor script in the same way you do it at runtime. It’s only different if you’re trying to display a custom editor for a runtime script, which in that case you have to do [CustomEditor(typeof(YourClassName))]