Path2d is Invisible for no reason

Hello, There is a rather strange and annoying bug with Path2d. The bug will be generated but not solved (the bug is not from my code, it is from the instance).

It is generated as follows:

Create or clone a path2d, if you toggle the visible property or it already starts to false, the bug will be generated. The bug causes the path2d to be invisible, so if I manually set Visible to true and change the ZIndex it will now appear (if you do it with code it doesn’t work).

As a note, if the bug is already fixed by toggling the ZIndex while it is visible, if I add a child the bug is generated again

2 Likes

Thanks for the report! I filed a ticket in our internal database and we’ll follow up when we have an update for you.

1 Like

Hi @sheyler1j , just to clarify - does the issue happen only in Studio, or also in the Roblox Player? If in the Player, is it across all OSs? And when did the issue first start happening? Thanks a lot!

1 Like

Okay, the problem occurs on both. My operating system is Windows 11; I don’t have any other operating systems to try, but there are more reports of people having similar problems:

Your case mentions exclusively the ScrollingFrame but it fails me in every instance.
I have no idea when this started happening, as the same day I posted the error was my first time using this Instance.

Any news? I had to abandon my project after this problem.

Hi!

We’re working on a fix, will update when it goes live! Give it a ~few weeks or so.

Thanks!

3 Likes

Hi, sorry to be a bother, do you think a fix will be included in the next studio update?

I’m using Path2Ds for a game’s HUD and I’m getting really buggy behaviour when it comes to toggling .Visible on the Path2Ds themselves as well as parent UI objects.

Certainly looking forward to the fix.

Thanks.

1 Like

Hi! A fix for this was rolled out. Could you check if the bug still occurs? Thanks!

1 Like

Mmm… Okay, I have the latest version of Studio and the problem persists.

I now understand how to generate the bug. You just need to start the game with the “Visible” property set to false. Then, when you try to change the value of that property, it won’t work. Also… I just found out that if you toggle the Zindex value, the instance will still become invisible even if you change the “Visible” property to true.

To be clear, the problem is between Zindex and Visible. Toggling Zindex at runtime or in the Editor causes the bug. It’s annoying, because I don’t even understand why it happens. You must change Zindex while Visible is false to generate the error, but also to fix it.

Could you share a repro. Might be a different issue. Thanks

In Studio:


In Ejetution:

The problem is when you change the ZIndex property while it is invisible.

Okay turns out this is a different issue. I have a fix but it’ll take a few weeks to roll out. I’ll update once it’s fixed! Thanks

3 Likes

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.