Hey guys, i dunno if its me or a bug so here to ask for some help.
Basically ive created a GUI packer/unpacker. That extracts the properties of a GUI and creates a JSON file. Then the unpacker parses through the JSON and build the GUI. It seems to work really well except there is one weird problem. Any of the GUI I pack then unpack lose their functionality. They arent clickable. The image buttons don’t swap to the pressed image on click, the mouse doesnt become a pointy hand when moved over them and even events dont seem to fire (button.mouseZlick1 etc…). Is this a bug or… has my packer failed to correctly record/assign a property that might be causing this?
Any ideas would be great!!
Thanks in advance
:Update
After some more testing i think it must be something wrong with he screenGui as if i create a new button instance and parent it to the unpacked screenGui it loses all interactivity. however if this button is then parented to a different not unpacked screenGui it works as normal.
:Update2
Woop can now confirm it was the ScreenGui bugging out. I dont think it has any properties that if set would cause the effects i’ve had… so i dunno what was causing it. but setting its properties after creating its children seems to have fixed whatever it was… Gui objects do need to check other parts of the hierarcy to overwrite padding and chain inputs between then and etc… so i guess this was probably disrupted by the way i initiated the screen gui’s creation… Do things in the right order i guess…