unity C# catch index out or range exception code example
Example: unity C# catch index out or range exception
catch (System.IndexOutOfRangeException ex){
//Do this if exception is thrown
}
catch (System.IndexOutOfRangeException ex){
//Do this if exception is thrown
}