I have only been able to drag and drop my scriptable object onto a prefab with public reference (in inspector).
How do I do this at runtime? I tried to follow the docs but having an issue (see below).
As an example:
ScriptableObject archerData = ScriptableObject.CreateInstance(typeof(Archer));
AddToDeck(testDeck, archerData);
Where the testDeck has:
public List<ScriptableObject> scriptableObjs;
Note: Archer exists as a scriptable object, PlaceableData : ScriptableObject (along with Warrior, etc)