- Home /
Can't Build for OSX when using WebCamTexture or WebCamDevice
Hi Everyone,
My code functions as intended in the editor, but when I try to build for OSX, using Unity 4.3.3f1, it gives says the following in each location that I use WebCamTexture or WebCamDevice:
WebcamBuildTest.cs(6,16): error CS0246: The type or namespace name `WebCamDevice' could not be found. Are you missing a using directive or an assembly reference?
This is the minimum code required to reproduce the error for me... could someone else with 4.3.3f1 and OSX try to build a project for x86, x86_64, or Universal OSX with the following script in it?
using UnityEngine;
using System.Collections;
public class WebcamBuildTest : MonoBehaviour {
public WebCamDevice aWebCam;
}
We need it for $$anonymous$$iosks powered by $$anonymous$$acs and PCs.
Answer by Subliminalman · Feb 04, 2014 at 08:26 PM
This is from the Unity release notes of 4.3.2
"Disable WebCam support in MacStandalone as it was using newly-deprecated APIs, which made publishing to the Mac App Store impossible. Web Cam support in mac standalone will come back in a future release."
https://unity3d.com/unity/whats-new/unity-4.3.2
And it doesn't seem like they fixed it yet.
It's odd that it works in the editor but not standalone, thanks for pointing that out. I just got done searching the 4.3.3 notes...
$$anonymous$$aybe the editor still calls the depricated api but in the standalone it doesn't as to prevent issues with publishing to the $$anonymous$$ac store. I hope they update the latest soon though.
We could really use the $$anonymous$$ac webcam support back, our current projects depend on this functionality.
Could we get an update on when we might expect it back?
$$anonymous$$aybe even just in development mode.
Same for us, we are developing projects that require webcam support. I guess we'll get back to our old native $$anonymous$$ACOS webcam plugin ins$$anonymous$$d.
You have to be kidding. Not everyone needs to publish to the $$anonymous$$ac App Store.