Similar, more comprehensive post here
Hi there, I’ve found an oddity with CanvasGroups that happens when either axis of its size is set to an absolute size of 0. It’ll just completely disappear when the size is brought back up to something normal, and will stay that way until being removed.
Here’s a small demonstration:
This has been happening for a while already, probably a few months if I remember correctly. I was hoping that someone at Roblox already knew about it, but I suppose that it hasn’t come to your attention yet, or just is a low priority. I’ve had to implement workarounds to this programmatically, which is a pretty big inconvenience and limitation to account for when using CanvasGroups, so if you could please look into this, that would be much appreciated.
I’ve also found that it now sends errors in the console, varying from how the bug was produced:
expressionEval:1: attempt to get length of a number value
: Unsure
expressionEval:1: Expected identifier when parsing expression, got <eof>
: Using any “special” character (here #)
expressionEval:1: Expected <eof>, got '0'
: Unsure
Unable to cast null to double
: Using a letter (here d)
All of these happened when put in the X offset.
I’ve settled that this only happens when the absolute position of the canvasgroup is not 0,0. Just having 1,0 offset for example is enough for the bug to occur.
The bug fixes itself when the canvasgroup is deleted and added back, or when Studio is restarted.