get object index in array unity 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);