🤔

Editor Assembly Definitions#

Assembly definitions that are marked as Editor-only will cause the current folder and all sub-folders to become an Editor context.

Editor Assembly Definition

Editor-only Assembly Definition

Having runtime scripts in an editor context is invalid.

Resolution#

Move the script outside of the context created by the editor Assembly Definition.

If you are using a scriptable object or prefab, this should also not be inside an editor context.


My script still cannot be loaded.