I have a type that looks something like
[System.Serializable]
public struct PlaceableProp
{
public GameObject obj;
public float otherStuff;
}
And I expose a list of those to the inspector. I would like to be able to drag a sprite asset from my project window into that inspector list and have it automatically convert to a gameobject with a SpriteRenderer component with the correct sprite assigned. Is that possible?