MCPcopy Create free account
hub / github.com/K0lb3/UnityPy / image_to_texture2d

Function image_to_texture2d

UnityPy/export/Texture2DConverter.py:118–234  ·  view source on GitHub ↗

Converts a PIL Image to Texture2D bytes.

(
    img: Image.Image,
    target_texture_format: Union[TextureFormat, int],
    platform: Union[BuildTarget, int] = 0,
    platform_blob: Optional[List[int]] = None,
    flip: bool = True,
)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers

nothing calls this directly

Calls 3

TextureFormatClass · 0.85
pad_imageFunction · 0.85

Tested by

no test coverage detected