gao0122/ARKit-Example-by-Apple

I tried to add more objects and made classes as shown in Virtual Objects folder but it is not showing them. See code in comment

Mudasir441 opened this issue · 2 comments

import Foundation

class CupPlane: VirtualObject {

override init() {
    super.init(modelName: "cup1", fileExtension: "scn", thumbImageFilename: "cup", title: "Cup2")
}

required init?(coder aDecoder: NSCoder) {
    fatalError("init(coder:) has not been implemented")
}

}

and in VirtualObject.swift class I added the following:
CupPlane()

When you try to initialize a CupPlane object, is the object set to nil or is it being set to an actual object?

it is set to an actual object.