yasirkula / UnityIngameDebugConsole

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

Cosmetic issues #46

Closed XeonG closed 3 years ago

XeonG commented 3 years ago

So when you click on a log to expand it the LogText moves up slightly in height position by around 1px, just a bit annoying, because you notice the first text line is the same just moving upwards when the lines below are revealed, seems to be bit of a harder issue to fix in code, than the my other minor niggle which I've fixed myself in the DebuglogItem prefab with the LogType anchor position that gets moved to the middle on expansion, instead of just remaining at the top in the same position on log item expansion.

yasirkula commented 3 years ago

You can modify DebugLogItem prefab and set LogText child object's vertical alignment to Top. I'm not planning to implement this myself because when Text is top-aligned, its RectTransform's Top offset value must be adjusted by the user if they decide to change DebugLogItem prefab's height. It isn't needed when Text is middle-aligned.

XeonG commented 3 years ago

I found a better solution without changing any of the pivot stuff was to just change the LogText Text components vertical alignment to Top.... no other changes and it works much better now, no position shifting when expanding logs :)

yasirkula commented 3 years ago

I also said changing vertical alignment to Top. But if you don't change RectTransform's Top offset afterwards, text will be snapped to the top edge of the log entry, it looks very ugly.