- Home /
Question by
Tofudude624 · Aug 07, 2011 at 05:41 AM ·
array
Manipulating all elements of an array?
Hello. If I have an array of objects, how can I modify all elements of the array? Like this "if(something==true){Array.active=false;}
Comment
Best Answer
Answer by SisterKy · Aug 07, 2011 at 06:45 AM
If I'm not mistaken:
if (true){
for (item : typeOfItemsInYourArray in yourArray){
item = true;
}
}
Greetz, Ky.
Your answer
Follow this Question
Related Questions
Help with sorting values from a class 2 Answers
Precalculated array/list or Mathf.Sqrt for hypotenuse? 3 Answers
Array of transforms with "labels" 1 Answer
Set rigidbody to false 1 Answer
How to change array length 4 Answers