Texture Block in Verse Not Updating Image When Edited in Editor

Summary

When I try to change an image texture in another class, making it editable in the editor and updating it using <TextureBlock>.SetImage(texture), it appears correctly in the editor. However, upon launching the session, it reverts to the default image texture that I initially selected to prevent the Verse server from crashing.

Please select what you are reporting on:

Verse

What Type of Bug are you experiencing?

Assets

Steps to Reproduce (Pseudocode)

  • Create a Texture Class:
my_texture := class:
    @editable
    Texture: texture = MyTexturesFolder.Temp01 # This is the temporary texture in my content browser
  • Create a Device Class:
MyDevice := class(creative_device):
    @editable
    NewTexture : my_texture = my_texture {}
    
    OnBegin() :
        UpdateSomeUI(NewTexture.Texture)
    
    UpdateSomeUI(Texture : texture) : void =
        {
            # Code to update the UI with the provided texture
            TextureBlock.SetImage(Texture)
        }
  • Modify the Texture in the Editor:

Open the editor and change the texture of NewTexture to a different one.

  • Launch the Session:

After modifying the texture in the editor, launch the session.

Expected Result

The updated texture should be visible in the session as specified by NewTexture.Texture using the TextureBlock.SetImage(Texture) method.

Observed Result

Upon launching the session, the default image texture is displayed instead of the updated one, despite it appearing correctly in the editor.

Platform(s)

UEFN, Verse, Assets