Skip to content

Commit d12d265

Browse files
committed
v2.2.1
Updated NatCam version to 2.2.1.
1 parent 235a8b9 commit d12d265

File tree

2 files changed

+2
-14
lines changed

2 files changed

+2
-14
lines changed

Assets/NatCamWithOpenCVForUnityExample/Scripts/Utils/NatCamPreviewToMatHelper.cs

+1-13
Original file line numberDiff line numberDiff line change
@@ -126,23 +126,11 @@ protected override void Update ()
126126
rotatedFrameMat = new Mat (height, width, CvType.CV_8UC4, new Scalar (0, 0, 0, 255));
127127
}
128128
}
129-
130-
#if UNITY_IOS && !UNITY_EDITOR
129+
131130
if (onDisposed != null)
132131
onDisposed.Invoke ();
133132
if (onInitialized != null)
134133
onInitialized.Invoke ();
135-
#elif UNITY_ANDROID && !UNITY_EDITOR
136-
if (natCamDeviceCamera.IsRunning) {
137-
natCamDeviceCamera.StopPreview ();
138-
natCamDeviceCamera.StartPreview (OnStart, OnFrame);
139-
} else {
140-
if (onDisposed != null)
141-
onDisposed.Invoke ();
142-
if (onInitialized != null)
143-
onInitialized.Invoke ();
144-
}
145-
#endif
146134

147135
screenOrientation = Screen.orientation;
148136
screenWidth = Screen.width;

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
- Anddroid (Pixel, Nexus 7, Zenfone, SC-04E) / iOS (iPhone8, iPhone6)
1515
- Unity >= 2017.1+
1616
- Scripting backend MONO / IL2CPP
17-
- [NatCam - WebCam API](https://assetstore.unity.com/packages/tools/integration/natcam-pro-webcam-api-52154?aid=1011l4ehR) 2.2+
17+
- [NatCam - WebCam API](https://assetstore.unity.com/packages/tools/integration/natcam-pro-webcam-api-52154?aid=1011l4ehR) 2.2.1+
1818
- [NatShare - Mobile Sharing API](https://assetstore.unity.com/packages/tools/integration/natshare-mobile-sharing-api-117705?aid=1011l4ehR) 1.1f3+
1919
- [OpenCV for Unity](https://assetstore.unity.com/packages/tools/integration/opencv-for-unity-21088?aid=1011l4ehR) 2.3.4+
2020

0 commit comments

Comments
 (0)