- Home /
Question by
unity_yBKhJ4i3rci2SQ · May 11 at 09:36 AM ·
arrayarrays
Summing a specific value in an array of objects
I have an array of minumum 0 up to "i" Game Objects.
Each of these Game Object has some characteristics, for example "MoneyValue" and "Weight".
I have created a Script which finds all the GameObjects with a tag, and I need to calculate, for example, the sum of "MoneyValue" of all the Game Objects found and put in the Array.
Comment
Your answer
Follow this Question
Related Questions
Multidimensional array trouble 2 Answers
Prefabs instantiated from an array are keeping their public int value 1 Answer
Problems with Arrays 2 Answers
IndexOutofRangeException 1 Answer
XML File, or Array? 1 Answer