![]() ![]() You can't use GetPixel with textures that use Crunch texture compression. Use GetPixelData instead for very large textures. GetPixels might fail if the array contains too much data. If GetPixels fails, Unity throws an exception. To get pixel data more quickly, use GetPixelData instead.Ī single call to GetPixels is usually faster than multiple calls to GetPixel, especially for large textures. GetPixels also needs to decompress compressed textures, and use memory to store the decompressed area. GetPixelColor (Portable) v1. 1 License and operating system information is based on latest version of the software. NOTE: For 64-bit Windows, download GetPixelColor (64-bit Portable) instead. GetPixels might be slower than some other texture methods because it converts the format the texture uses into Color. GetPixelColor can determine the color value of a pixel on a Windows. The size of the array is the width × height × depth of the mipmap level.Įach pixel is a Color struct. Each slice contains the pixels row by row, starting at the bottom left of the texture. The array contains the pixels slice by slice starting at the front of the texture. This method gets pixel data from the texture in CPU memory. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |