Add prefab to list based on object touched?
I want my player to touch an object, add it’s prefab asset to a list and destroy the object. I can then instantiate every prefab on this list later. I’ve tried giving each object it’s own reference to its prefab, but at runtime this reference just becomes its own instance. I think scriptable objects can be used to this, but I’m not sure how. What would the best way of doing this kind of inventory prefab referencing?
Comment