Pick a Color from a Texture

A feature I dearly miss from other engines is the ability to make a gradient or import a texture and sample it for a colour at a position.
Is it possible to do this in Unreal Engine?
I haven’t yet found it, and it looks like even writing my own texture sampler would end up being surprisingly complicated.

Thanks!

Edit: For context, I was making an application that needed a heatmap. I ended up using a gradient maker that would interpolate between some number of colours, but it wasn’t very flexible or easy to do.

I ended up solving this with the below material with help from the forums and RyanB.