user59632
0
Q:

unity for loop array

for(int i = 0; i < Objects.Length; i++)
{
  dot.SetActive(Objects[i] == ItemLookingAt);
}
0
 for (int i = 0; i < Objects.Length; i++)
{
  if (Objects[i] == ItemLookingAt)
  {
    dot.SetActive(true);
  } else
  {
    dot.SetActive(false);
  }
}
0

New to Communities?

Join the community