-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathTexture2D.pyi
More file actions
44 lines (40 loc) · 1.41 KB
/
Texture2D.pyi
File metadata and controls
44 lines (40 loc) · 1.41 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
from typing import BinaryIO, List, Optional, Union
from PIL.Image import Image
from UnityPy.classes.generated import GLTextureSettings, StreamingInfo, Texture
class Texture2D(Texture):
image_data: bytes
m_CompleteImageSize: int
m_Height: int
m_ImageCount: int
m_IsReadable: bool
m_LightmapFormat: int
m_Name: str
m_TextureDimension: int
m_TextureFormat: int
m_TextureSettings: GLTextureSettings
m_Width: int
m_ColorSpace: Optional[int] = None
m_DownscaleFallback: Optional[bool] = None
m_ForcedFallbackFormat: Optional[int] = None
m_IgnoreMasterTextureLimit: Optional[bool] = None
m_IgnoreMipmapLimit: Optional[bool] = None
m_IsAlphaChannelOptional: Optional[bool] = None
m_IsPreProcessed: Optional[bool] = None
m_MipCount: Optional[int] = None
m_MipMap: Optional[bool] = None
m_MipmapLimitGroupName: Optional[str] = None
m_MipsStripped: Optional[int] = None
m_PlatformBlob: Optional[List[int]] = None
m_ReadAllowed: Optional[bool] = None
m_StreamData: Optional[StreamingInfo] = None
m_StreamingMipmaps: Optional[bool] = None
m_StreamingMipmapsPriority: Optional[int] = None
@property
def image(self) -> Image: ...
def set_image(
self,
img: Union[Image, str, BinaryIO],
target_format: Optional[int] = None,
mipmap_count: int = 1,
) -> None: ...
def get_image_data(self) -> bytes: ...