You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Documentation/DocSource/V3Migration.md
+18-7Lines changed: 18 additions & 7 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,7 +1,6 @@
1
1
# Migrating to UXR.QuestCamera V3
2
2
3
-
UXR.QuestCamera v3 introduces a soft rewrite of the package with several breaking changes. It's highly recommended to update to v3, as it includes fixes for many crashes and stutters.
4
-
This page documents all changes to the **public API** in v3.0.0 compared to v2.6.1.
3
+
UXR.QuestCamera v3 introduces a soft rewrite of the package with several breaking changes. It's highly recommended to update to v3, as it includes fixes for many crashes and stutters. This page documents all changes to the **public API** in v3.0.0 and v3.1.0 compared to v2.6.1.
-`CreateSurfaceTextureCaptureSession()` and `CreateOnDemandSurfaceTextureCaptureSession()` now have nullable return types and throw `ObjectDisposedException` if the `CameraDevice` was disposed at the time of calling.
85
84
-`CameraId` is no longer a property and is now a cached value.
86
85
86
+
-**v3.1.0 Specific Changes**
87
+
-`WaitForInitializationAsync()` now returns `Task<bool>` representing the open state of the device.
-`WaitForInitialization()` now returns a `WaitUntil` object and throws `ObjectDisposedException` if the `ContinuousCaptureSession` was disposed at the time of calling.
112
114
-`WaitForInitializationAsync()` now accepts an optional `CancellationToken` and throws `ObjectDisposedException` if the `ContinuousCaptureSession` was disposed at the time of calling.
113
115
116
+
-**v3.1.0 Specific Changes**
117
+
-`WaitForInitializationAsync()` now returns `Task<bool>` representing the open state of the session.
-`WaitForInitialization()` now returns a `WaitUntil` object and throws `ObjectDisposedException` if the `SurfaceTextureCaptureSession` was disposed at the time of calling.
155
160
-`WaitForInitializationAsync()` now accepts an optional `CancellationToken` and throws `ObjectDisposedException` if the `SurfaceTextureCaptureSession` was disposed at the time of calling.
156
161
162
+
-**v3.1.0 Specific Changes**
163
+
-`WaitForInitializationAsync()` now returns `Task<bool>` representing the open state of the session.
-`RequestCapture()` now returns a `WaitUntil?` object (`null` when the capture fails) and throws `ObjectDisposedException` if the `OnDemandSurfaceTextureCaptureSession` was disposed at the time of calling.
166
174
-`RequestCaptureAsync()` is now `Awaitable<(Texture2D?, long)> RequestCaptureAsync()` (`Texture2D` is `null` when the capture fails), accepts an optional `CancellationToken`, and throws `ObjectDisposedException` if the `OnDemandSurfaceTextureCaptureSession` was disposed at the time of calling.
167
175
176
+
-**v3.1.0 Specific Changes**
177
+
-`RequestCaptureAsync()` now returns `Task<(Texture2D?, long)>`.
0 commit comments