Skip to content

Commit deb81a9

Browse files
committed
Fix iOS Video Recorder problem
1 parent 101beb3 commit deb81a9

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

Runtime/HoloKitCameraManager.cs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -208,7 +208,9 @@ private void InitializeInEditor()
208208

209209
// Setup the main camera reference
210210
m_MonoCamera = GetComponentInChildren<Camera>();
211+
#if UNITY_IOS
211212
m_MonoCamera.gameObject.AddComponent<iOS.HoloKitVideoRecorder>();
213+
#endif
212214

213215
// Setup the StereoTrackedPose GameObject
214216
GameObject stereoTrackedPoseGo = new();

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "com.holoi.xr.holokit",
33
"displayName": "HoloKit Unity SDK",
4-
"version": "0.4.4",
4+
"version": "0.4.5",
55
"unity": "2022.3",
66
"description": "HoloKit is an Augmented Reality(AR) headset that transforms your iPhone into a powerful stereoscopic AR device. With the HoloKit Unity SDK, developers can create immersive AR experiences in Unity, which can be viewed with HoloKit headset.\n\nThe SDK currently provides three core features:\n\n- Stereoscopic Rendering\n- Hand Tracking\n- Hand Gesture Recognition\n\nStereoscopic rendering is the central feature of the SDK, allowing for the display of stereo images on the iPhone screen. By attaching your iPhone to the HoloKit, you can enjoy a captivating AR experience. Utilizing Apple Vision framework, the SDK detects user hand poses. Together with LiDAR depth sensor, it allows your iPhone to track the 3D positions of the user's hands. Furthermore, the SDK can recognize hand gestures such as pinching, serving as a trigger for specific operations in your project.\n\nHoloKit Unity SDK, built on the foundation of ARFoundation, is compatible with most ARFoundation features such as image tracking and plane detection. Upgrading your ARFoundation project to a stereoscopic AR project is straightforward with the HoloKit Unity SDK.",
77
"keywords": [
@@ -71,4 +71,4 @@
7171
"path": "Samples~/ARBackgroundVideoEnhancement"
7272
}
7373
]
74-
}
74+
}

0 commit comments

Comments
 (0)