Quantcast
Channel: Latest Questions on Unity Answers
Viewing all articles
Browse latest Browse all 171066

slow running script with string.split()

$
0
0
I am trying to speed up a script but it is running extremely slow. I suspect it is from string.split(); Does anyone know if there is a faster way to split a string? public void updateFromDragon(){ dragonArray =strIn.Split(','); jaw = dragonArray[1]; tempreture = dragonArray[2]; humidity = dragonArray[3]; headX = toFloat(dragonArray[4]); headY = toFloat(dragonArray[5]); headZ = toFloat(dragonArray[6]);

Viewing all articles
Browse latest Browse all 171066

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>