In my current project, I have multiple variations of a sprite sheet I would like to be able to drag and drop into the objects that use it. I know that sprite sheets are a Sprite, and I have the variable set as a Sprite, but I don’t know how to get the editor to display this as a reference to the Sprite, the same way it references things like ScriptableObjects where you can just drag and drop an instance into the field. Is there an attribute I need to add to the variable to make it behave this way? Is what I’m trying to do even possible without creating a custom editor script?
variables need to be serialized to be viewed in the inspector, you can do this using [SerializeField] or making it public.