ScriptReference/Networking.DownloadHandlerTexture-texture #346
Replies: 1 comment
-
|
The texture returned will be read-only. If you wish to generate mipmaps at runtime, you must copy it to a new texture with "mipChain" set to true. For example: var newTexture = new Texture2D(texture.width, texture.height, texture.format, true); // enable mipmaps on a new texture.
newTexture.SetPixels32(texture.GetPixels32()); // copy the pixels to the new texture.
newTexture.Apply(); // generate the mipmaps. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
ScriptReference/Networking.DownloadHandlerTexture-texture
https://docs.unity3d.com/ScriptReference/Networking.DownloadHandlerTexture-texture.html
Beta Was this translation helpful? Give feedback.
All reactions