Hello,
Issue
I have a GUI Only scene where some nodes are being cut off during runtime. Visually, only part (or none) of the node is showing, almost like there is something else being drawn over it.
It seems to be location related - if I change the location of the cut off node to another part of the screen (programmatically during the init function), the affected node appears, and if I move other non-affected nodes to the affected area, they also disappear/are cut off, so its not the specific nodes themselves that are problematic, but that affected area has something over it that is being drawn.
–
Investigation
However, there is nothing over that area. clicking on each node in my hierarchy view and checking the positions, nothing is there that should be drawn that could cut the texture off.
I also tested like so - whenever clicking I do pickNode on every single node in the gui and print out the node position and rotation that is selected (so I can see every node over the area that was clicked on). When I click on the affected area (with a sprite cut off), and then another sprite that is showing, and compare the two, no extra nodes are drawn over it - they are exactly the same except for differences in the Z value of the sprite.
Z value shouldn’t affect anything because Z values don’t matter for GUI, and because if the Z value was a problem it wouldn’t show at all, not be partially cut off. Also No rotation was found (all nodes had Quat(0,0,0,1)), and its 2D anyway. Default renderer is in use (I think, I didn’t change it)
–
Solutions
Remaking the entire hierarchy fixed the issue once, then it reappeared a little later. I do use layers, and everything but text is on a general layer.
Thank you for considering