unity get index of array code example
Example: unity c# find object position in array
//C# Unity finding an object in an array
int positionInArray = System.Array.IndexOf(arrayName, objectToFind);
//C# Unity finding an object in an array
int positionInArray = System.Array.IndexOf(arrayName, objectToFind);