Topic: A readable texture2D copy of the displayed map texture.

I have a very simple 2D game and would like to save a copy of the map that is displayed after I've changed a number of pixels. I am not capable to create faithfull copy that I can wirtite to. All colors are slightly changed. I think it is a format issue, but cannot find it.

Jaap van Driel

Re: A readable texture2D copy of the displayed map texture.

Hi.

This is most likely due to the lighting in the scene.
This lighting mixes with the colour of the textures and you get slightly changed colours.

If you use the draw to texture mode, you already have the texture and you just need to save it.
https://infinity-code.com/doxygen/onlin … a4905147d2

If you are using the Tileset control, before capturing a screenshot of the map, you need to turn off the lights in the scene, and set Environment Lighting Source - Color, Ambient Color - White.
https://docs.unity3d.com/ScriptReferenc … tings.html

Kind Regards,
Infinity Code Team.

Boost your productivity a lot and immediately using Ultimate Editor Enhancer. Trial and non-commerce versions available.