Swap Texture Object in a material at Runtime

I have a texture object attached to a custom node. This custom node does the sampling so I can not use anything else than a texture object. I want to swap the texture being fed to the custom node when the user performs a certain action, but all I can find is how to use flipbook textures, how to change texturesamplers and how to change vector and scalar values using a Material Parameter Collection.

I might be able to make n materials using n textures and then changing each material, but since the only thing that will change between the materials is the texture object I find it to be a sub-optimal solution.

Any thought or ideas are very welcome.

Thank you.

Hmm why don’t you just use TextureObjectParameter?

Now I feel like such an idiot. I was looking for that option, but I was unable to find it. So I thought I had misunderstood or forgotten something. That was indeed what I was looking for. Thanks.