Machineboy空
RealityKit 입문 - 한국에선 불가한 ARGeoAnchor 본문
ARGeoAnchor
https://developer.apple.com/documentation/arkit/argeotrackingconfiguration
절망스럽게도 supported Area 명단에 Korea는 없다..
나 애플에 일조할 수 있는 건가..?
https://developer.apple.com/documentation/arkit/arsession/recording_and_replaying_ar_session_data
이거 내일 알아보겠다.
struct ContentView: View {
@State private var geoTrackingAvailable: Bool = false
var body: some View {
ZStack {
if geoTrackingAvailable {
ARViewContainer()
.edgesIgnoringSafeArea(.all)
} else {
Text("GeoTracking is not available.")
.font(.title)
.foregroundColor(.red)
}
}
.onAppear {
ARGeoTrackingConfiguration.checkAvailability { available, error in
if let error = error {
print("Error checking GeoTracking availability: \(error.localizedDescription)")
}
geoTrackingAvailable = available
}
}
}
}
'언어 > swift' 카테고리의 다른 글
Realitykit 입문 - Persistence (0) | 2024.10.15 |
---|---|
RealityKit 입문 - 측정앱 만들기 (0) | 2024.10.15 |
RealityKit 입문 - ARCouchingView 더하기 (0) | 2024.10.14 |
RealityKit 입문 - Material 종류들 (Occulusion, Unlit and Video Materials) (4) | 2024.10.13 |
RealityKit 입문 - Reality Composer (0) | 2024.10.13 |