Skip to main content
KevinJardine
Honored Contributor
Nov 25, 2025 2:36 PM UTC
Solved

Change image in Noesis?

I've finally been making progress with NoesisGUI - I can load text from the dataContext object in TypeScript and handle button clicks.

But has anyone been able to load an image in response to a button click? The image Source tag does not seem to accept a string value.

gausroth
gausrothAnswer
Start Partner
Nov 25, 2025 3:32 PM UTC

You have to make an Image Source binding in Noesis and set it to an Image Source in typescript. Something like this:

    private dataContext = {
        Image: ImageSource.fromTextureAsset(new TextureAsset(BigInt("AssetID"))),
    };

    start() {
        this.entity.as(NoesisGizmo).dataContext = this.dataContext;
        this.dataContext.Image = ImageSource.fromTextureAsset(new TextureAsset(BigInt("AssetID")));
    }

 

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials

9 replies

gausroth
gausrothAnswer
Start Partner
Nov 25, 2025 3:32 PM UTC

You have to make an Image Source binding in Noesis and set it to an Image Source in typescript. Something like this:

    private dataContext = {
        Image: ImageSource.fromTextureAsset(new TextureAsset(BigInt("AssetID"))),
    };

    start() {
        this.entity.as(NoesisGizmo).dataContext = this.dataContext;
        this.dataContext.Image = ImageSource.fromTextureAsset(new TextureAsset(BigInt("AssetID")));
    }

 

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
KevinJardine
Honored Contributor
Nov 25, 2025 3:46 PM UTC

Fantastic. Yes that works for me. And it is a better solution than I was expecting as I can load any of my existing asset textures without needing to have them in the noesis zip.

 

gausroth
Start Partner
Nov 26, 2025 2:54 PM UTC

During my testing of the feature there seems to be a bug with the image source bindings only appearing for the asset owner. Hopefully this gets fixed. If you encounter this issue please report a bug report.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
KevinJardine
Honored Contributor
Nov 27, 2025 11:15 AM UTC

Unfortunately, I can confirm this bug. I can see the image, but no one else can. I have reported it via the desktop editor issue system. I guess for now I am going to have to work on my world without images, which is a major limitation.😞

KevinJardine
Honored Contributor
Nov 25, 2025 3:50 PM UTC

Thanks for your YouTube videos as well. They made all the difference in connecting the dots to see how to set things up in NoesisGUI Studio, hook it up in Horizon Worlds and then populate the content in TypeScript.

gausroth
Start Partner
Nov 27, 2025 4:50 PM UTC

There are other ways to swap images in Noesis. I have not tried it yet, but you can use data triggers.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials
KevinJardine
Honored Contributor
Nov 27, 2025 4:56 PM UTC

Do you have hints or sample code?

gausroth
Start Partner
Nov 27, 2025 5:00 PM UTC

Unfortunately no.

GitHub: https://github.com/Gausroth/HorizonWorldsTutorials.git Discord: https://discord.gg/hNyDQwdw4N YouTube: https://www.youtube.com/@GausRothTutorials