I am working on a project involving EditableImages and I encountered a bug related to EditableImages not updating correctly when they have a CanvasGroup
as an ancestor.
When drawing pixels to the EditableImage using any one of the APIs, the image doesn’t update immediately and remains unchanged until something in the GUI changes, this could be anything from resizing the window to a button changing colour.
Demonstration
Expected behaviour: The image updates immediately and does not remain unchanged
When: I first discovered this today, haven’t used EditableImages in this way before so I can’t say if this behaviour is new or not
Where: I have only observed this bug in Studio as this feature is still not available to published experiences. I was also able to reproduce the bug with all user plugins disabled.
Repro:
- Create a CanvasGroup inside a ScreenGui
- Create an ImageLabel inside of the CanvasGroup
- From a script, create an EditableImage and parent it to the ImageLabel
- Draw something to the EditableImage (you might have to add a delay to see the bug, like I did in the video)
- When playtesting, try resizing your screen or updating the GUI in some way and you should see the image finally update
In my experience this happens 100% of the time
editableimage_canvasgroup_bug.rbxl (55.9 KB)
^ The relevant code is inside StarterGui
I understand that this feature is in beta, but I thought I would mention this bug in case nobody was aware of it. Also, I can’t post bug reports so I’m hoping this will reach somebody who’s in charge anyway