当我点击在 ARView 中加载模型时,我在运行时收到以下警告:警告(辅助线程):在 sdf/path.cpp 的第 859 行的 AppendProperty -- Can only append a property 'preliminary:anchoring:type' to a主要路径 (/) 警告(辅助线程):在 sdf/path.cpp 的第 859 行的 AppendProperty 中 -- 只能将属性“触发器”附加到主要路径 (/)
任何人都知道为什么我会收到此警告?所有的逻辑都在我的 ViewController 中:
import UIKit
import ARKit
import RealityKit
import SwiftUI
import Combine
class ViewController: UIViewController, UICollectionViewDataSource, UICollectionViewDelegate {
private var modelArray: [String] = []
var selectedModel = ""
@IBOutlet weak var arView: ARView!
@IBOutlet weak var modelCollectionView: UICollectionView!
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
loadModelName()
arView.session.delegate = self
setupARView()
//modelArray …Run Code Online (Sandbox Code Playgroud)