How can I load an asset (model, texture, etc.) from a .zip file in Python's Ursina module without extracting it?
I tested this code:
from ursina import *
app = Ursina()
x = Entity(model="cube", texture="assets.zip/texture.png")
p = EditorCamera()
app.run()
But with no success (warning in the command prompt + entity appears white):
warning: missing texture: 'assets.zip/texture.png'
My file/folder structure is like this:
<root>/
test.py
assets.zip/
texture.png
Entity
, please edit to include that reference. Otherwise, I would try loading the texture into a file-like object via code as shown here. \$\endgroup\$