Ran into something wierd today where Debug.Log() seems to be failing where its not logging anything. As no log added at all. not even a empty one.
It seems Split is giving a error making Debug.Log Fail but yet
I’m able to read the first key in the array just fine.
Getting length on the array doesn’t work as well.
string log = "56/192 bleh bleh bleh bleh bleh";
string logString = log.Split(' ').First().Trim();
Debug.Log(logString); // This 56/192 returns correctly
string[] strArray = logString.Split('/');
Debug.Log(strArray); // does not log
float OverallPercentage = int.Parse(strArray[0].Trim()) / int.Parse(strArray[1].Trim());
Debug.Log(strArray.Length+" is the length"); // does not log
Debug.Log(strArray[0].Trim()); // This 56 returns correctly
Debug.Log(strArray[1].Trim()); // does not log