Texture2DToByteArray Changes between 4.27 & 5.3. How can I replicate the same behavior?

Hi. I am migrating my project from 4.27 to 5.3 and one problem I’m having is the behavior of the Texture2D To Byte Array node has changed.

Here’s the 4.27 version:
image

and the 5.3 version:
image

The problem I’m having is, what Export Material should I be using? i’ve tried all kinds of materials and nothing works. It exports a black image. Does anyone have a sample of how I can convert a Texture2D to a Byte Array in 5.3?

I tried using Image To Bytes (Texture2d) but it’s giving me a “Set MipGenSettings to NoMipMaps” but the function to change Mip settings are Editor only.

image

Hi, I can’t find the node “Texture2d to Bytes” in my 4.27 project.

Have you a idea why I can’t find this node. I have only the opportunity to save on disk.