yasirkula / UnityIngameDebugConsole

A uGUI based console to see debug messages and execute commands during gameplay in Unity
MIT License
2.05k stars 217 forks source link

Can log entries always be expanded? #86

Closed XeonG closed 7 months ago

XeonG commented 1 year ago

would be nicer.. just wondering I'm guess the fixed un expanded size for performance reasons?

yasirkula commented 1 year ago

You're right, a major benefit of the current approach is performance. Since the plugin uses recycled list view, it's much faster to assume a specific height for all log entries while reusing the log entry GameObjects. Otherwise, all log entries' sizes must be calculated separately and all of them must be summed up one by one while scrolling to correctly reuse the log entries.

I'm not planning add this feature myself but if you decide to do so, you'll mostly be modifying DebugLogRecycledListView.