I have this simple ScriptableObject:
[CreateAssetMenu(fileName = "SelectableWidgetData", menuName = "SelectableWidgetData")]
public class SelectableWidgetData : ScriptableObject
{
public string text = "";
public Sprite icon;
}
When I try to select Sprite, inspector shows nothing:
I can still lock the scriptable object, manually go to the folder where I have my sprites and drag and drop the sprite onto the field in scriptable object. Then sprite shows correctly when I play in editor, but when I play build, instead of my sprite, I only see white box. How do I fix this? How can I have sprites in scriptable objects, so that they would show correctly in build?