Does scriptable object data persist through List<> or Array changes?
Example : consider a scriptable object that has a value variable in it which is by default = 1.
ScriptableObject scriptabelObject; scriptableObject.value = 5;
List list = new Lis(); list.Add(scriptableObject);
Debug.Log( lis[0].value );
// Is it gonna output 1 or 5? I am asking this cause i believe i tried it once way long ago and it didnt persist through references. i am thinking about implementing an item system with scriptable objects but hesitant on whether i will run into any road blocks with persisting data. For instance if i have different types of tools and items that have a durability after using them i want to save the durability on that specific scriptable object and have it persist through multiple references.
Your answer
Follow this Question
Related Questions
How do I make a item system with ScriptableObjects where different items can have durability? 1 Answer
Word guessing game 1 Answer
How to add alternate idle directions to a top-down game 0 Answers
A more optimized way to adjust duplicate integer values In a list? 0 Answers
Checking equipment type to chop trees 0 Answers