首页 > 解决方案 > 如何在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()

标签: pythonursina

解决方案


推荐阅读