Help: Resource script is being automatically embedded into a scene

As a follow-up to my own post, I’ve sorted out what the problem was. I’ll leave some notes here in case anyone else bumps into this:

I had added a few fields to my custom resource that were defined as inner classes (is that the right term?) that also extended Resource. These seem to be what was prompting (possibly requiring) that the script be attached to anywhere that the resource was being used by the inspector.

By moving those inner classes out to their own files, the problem went away. I’ll chalk this up to knowing enough to be dangerous - I jumped right on having some inner classes to keep things organized, but it seems like at least in this case, they should be avoided.

1 Like