如何在Arkit应用程序中更改thumbImage?

时间:2018-04-12 10:49:51

标签: ios textures arkit

我无法从app更改对象的纹理。当我按下按钮时,我在MainViewController中设置了这样的纹理:currentObject?.thumbImage = UIImage(命名为:“texture”)

class Mirror:VirtualObject {

override init() {
    super.init(modelName: "mirror", fileExtension: "scn", thumbImageFilename: "mirror", title: "Mirror")
}

required init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}   //Here i have the init method.

请告诉我如何在app中实时更新模型的纹理?

0 个答案:

没有答案