In several of my Unity projects, I have editor scripts setup to import & configure external assets into prefabs. Typically I'm taking a model or sprite, some additional data like unit stats, and creating a new prefab with my unit class and configuring its values.
Most of these values should not be modified at runtime -- things like max health, unit stats, or unit type. However, the editor scripts need to be able to access them, but since they're automatically in the editor assembly, the best I can work with is public fields. Is there a better solution to this problem?