Version: 2023.2

TextureData

struct in UnityEditor.U2D

切换到手册

描述

Texture data of a specific sprite useful to get source pixels in textureData array.

变量

bufferOffsetOffset of the TextureData Array from where the actual data for the current texture starts.
heightHeight of the texture.
widthWidth of the texture.