私の iOS アプリでは、新しい Reality Composer を使用して AR の一部を導入したいと考えています。
私のプロジェクトでは、次のコードでシーンをロードします。
let arView = ARView.init(frame: frame)
// Configure the AR session for horizontal plane tracking.
let arConfiguration = ARWorldTrackingConfiguration()
arConfiguration.planeDetection = .horizontal
arView.session.run(arConfiguration)
arView.session.delegate = self
self.view.addSubview(arView)
Experience.loadSceneAsync{ [weak self] scene, error in
print("Error \(String(describing: error))")
guard let scene = scene else { return }
arView.scene.addAnchor(scene)
// THIS IS THE entity that i want to edit programmatically
scene.Label
「scene.label」はシーン内のテキスト オブジェクトであり、プログラムでテキストを設定したいと考えています。
どうやってやるの?それが可能だ?
前もって感謝します