Renamed image will not be immediately available to rbxgameasset://Images/

Reproduction Steps

1) Have some ImageLabel referencing the asset by its name (Example: rbxgameasset://Images/myImage)
2) In the Asset Manager, rename the original asset (Example: from myImage to MyImage)
3) Fix the reference in the ImageLabel (Example: rbxgameasset://Images/MyImage)
4) Run

Expected Behavior

The image should be shown normally.

Actual Behavior

The image is not being shown after renaming, even fixing the original name in the ImageLabel.Text

Workaround

I have to

  1. Save the project
  2. Exit Studio
  3. Open Studio again

Issue Area: Studio
Issue Type: Display
Impact: Moderate
Frequency: Constantly

I am unable to reproduce your bug, am I misunderstanding your steps?

2 Likes

I do not think so, it did not change the image i am pretty sure the glitch is it not changing when you change the text.

I’m testing here and I noticed some strange behavior.

  1. I have an image that, as you can see in the video, has an entirely different original name. However, I renamed the image to “a” and put the same reference in the ImageLabel.
    So far, so good. But renaming the image to “b” in the asset manager, this DOES NOT BREAK the link, even closing and reopening the place (which, theoretically, should happen):

  2. But, if I CLOSE AND OPEN STUDIO, now the link is broken:

  3. In the same session, I’ll try to fix the asset’s name, but HERE IT WON’T WORK, even if I CLOSE THE PLACE AND REOPEN IT:

  4. However, again, if I CLOSE AND OPEN STUDIO, it will appear fixed:


The conclusion is: Studio will only EFFECTIVELY recognize the new asset name, after being CLOSED AND REOPENED.

1 Like

Thank you! I will investigate this.

2 Likes

Just remembered we forgot to give an update on this, this is partially fixed.

If you have an image named “a” in Studio and in the asset manager, then you rename it from “b”, it should properly unlink now, for the most part. It might take a bit (specifically, on the next UI refresh, like if you hover over a GUI object, because this ended up being a bit more complicated than expected :stuck_out_tongue: ), but that part should work.

If I remember right, what hasn’t been fixed yet is the other way around. If you have something named “b”, and in the asset manager it is referred to as “a”, and you rename the asset in the asset manager from “a” to “b”, I believe it will not relink until you reopen Studio.

1 Like