Search ExpertsHow it works
Notifications
How do I store and access references to a list?
Date: July 2, 2019Session Time: 12 mins
Answered by Craig Graff
Programmer, Designer, Generalist
5
8 Sessions
USD $1 /min
Return to Top Questions
Question Detail
I've declared my List public List<Resource> Resources = new List<Resource>(); in the script Manager.cs and edited the List via Inspector. How do I store references to single Elements via List.Find() in another script so I can access and modify them? Or is there a better way to do it?
C#
Unity Version: 2019.1