I use ReplaceTexture,
But the Texture will flipped and mirrored.
Can Help me the problem? Thanks.
P.S. I remember when i use last version not fix the new version. is correct.
Solved! Go to Solution.
Solved by adam.petrone. Go to Solution.
I posted about this issue yesterday http://forums.autodesk.com/t5/Scaleform-Unity-Development/ReplaceTexture-Mirrored-Issue/td-p/4911144... no responses yet
Hello,
How are you loading Testure01? I assume it's something like this:
Texture texture = Resources.Load("image") as Texture2D;
Are you seeing this problem with Direct3D or OpenGL ? If it's one or the other, the problem is likely due to to an incorrect origin assumption. So the resulting image is flipped vertically on one, but correct on the other.
In the ReplaceTextureDemo, the images are read in and cached. When doing so, however, the image is flipped vertically. This could be a workaround you can implement.
hi adam
i certainty use Texture texture = Resources.Load("image") as Texture2D; to load a texture and use replacetexture
but i not see any error or log.
the result still flipped and mirrored.
ReplaceTextureDemo is same too.
p.s. In flash's png texture size is 512x512
In unity Resources.Load 's Texture is 512x512 png Texture too
Hello wesley,
In the ReplaceTextureDemo, I'm referring to this snippet of code:
OriginalTextures[i] = new Texture2D(width, height); for (int j = 0; j < width; j++) { for (int k = 0; k < height; k++) { OriginalTextures[i].SetPixel(j,k, tmp.GetPixel(j, height - k-1)); } } OriginalTextures[i].Apply();
This should function as a workaround until we can investigate a fix internally.