Access sprite texture data from atlas

I have a spritesheet that is configured as multiple and this works great for 2D stuff. There is one image that I am using as a sprite but I also want to access that same image data as a texture2D so I can assign it to a quad on a 3D object. If I use sprite.texture I get the entire atlas and I just want to copy the single sprites image data from the atlas.

So how can I programably get just the sprite image data and stuff it into a textre2D?

You can use Sprite.rect to get the pixel coordinates of the texture. You can then either copy those pixels to make a new texture, or ideally just change the UVs of the quad so it only displays the desired part of the texture.