Answers for "unity for loop array"

C#
1

unity for loop array

for(int i = 0; i < Objects.Length; i++)
{
  dot.SetActive(Objects[i] == ItemLookingAt);
}
Posted by: Guest on August-17-2020
0

unity for loop array

for (int i = 0; i < Objects.Length; i++)
{
  if (Objects[i] == ItemLookingAt)
  {
    dot.SetActive(true);
  } else
  {
    dot.SetActive(false);
  }
}
Posted by: Guest on August-17-2020

C# Answers by Framework

Browse Popular Code Answers by Language