1 pixel high texture imported as 2 pixels high

Hi, I’m trying to import a 24 x 1 pixel high texture (used as a reference to drive other colours, so it’s not actually displayed in game) however, regardless of the importer setting, it’s always being imported as 2 pixels high (the source art is definitely 1 pixel high). Any way around this?

Thanks

For ramp textures and any other texture for which you are computing the colours procedurally you can create one in code with, for example, “Texture2D myRamp = new Texture2D(256, 1);”

But this doesn’t work if you to paint your ramps in a texture package – I haven’t been able to get the importer to preserve a 1-pixel high texture either.

What import settings do you use? Setting it to GUI (which is a non-power-of-two and pixel-perfect preset) should be enough in your case. Otherwise you should pick “advanced” and choose your required settings.