Converting a prefab to a model with textures?

I’ve got these trees that I’ve made a prefab out of, I also have a script I found that converts them into .obj models but the script extracts the textures of the trees, so when I import the obj model it doesn’t come with textures,


Just a white model like this.
But some of the rocks and a few small ferns have textures.

Anyway to fix this?

The obj format doesn’t come with textures, you need to store the textures together with the obj file.