I have several UI elements that should display the length of some lists that change from time to time. It’s difficult to track all the times when these lists are changed so before I was just using OnGUI and
I know about that, that’s why I said it’s difficult to track each time I’m changing that list. Was hoping that using it in Update() for a few text elements wouldn’t be a hit on performance.
Yep, like I said I do it this way for simple types, however the question was about a List.Count()
It should work. If you’re not sure about the performance, why not cache and compare the generated string? It might do that for you already, but I’m not sure…