python - 如何在ursina Python中为一个模型加载多个纹理
问题描述
我需要在ursina
游戏中为房子加载 3 个纹理
我的代码:
textures = ["wall","slap","window"]
class Homes(Button):
def __init__(self,pos = (10,1,0)):
super().__init__(
parent = scene,
model = 'images/house',
texture = textures,
scale = (5,12,5),
position = pos,
color = color.lime,
origin_y = 0.5,
)
home = Homes()
解决方案
推荐阅读
- c++ - AVFormatContext 错误:我无法获取 AVFormatContext
- css - Tailwindcss 排版:在有序列表中自定义 h3::before
- mysql - 在 MySQL 中通过具有多个值的 JSON 数组进行查询
- c - 即使设置了主题,zmq pub sub 也不起作用
- r - 如何在时间序列中定义我的日期以获得每一行的正确值?
- platform - 申请待定/等待Linkedin的申请和审核
- javascript - 我如何等待多个异步调用?
- java - 如何解决android中的“致命信号11(SIGSEGV),代码1,tid 18101中的故障地址0x1d”错误?
- javascript - 使用 ngClass 的条件类值 - Angular
- python - Beautifulsoup 与抓取时选择的元素混淆