HoloLensCameraStream icon indicating copy to clipboard operation
HoloLensCameraStream copied to clipboard

Cannot build Unity 2019.4

Open efsjouw opened this issue 4 years ago • 7 comments

Hi I cannot seem to build this project in Unity 2019.4.1f1 as I get a whole bunch of errors, I am missing something obvious here?

image

efsjouw avatar Aug 25 '20 11:08 efsjouw

Maybe you are confusing UnityEngine.Windows.WebCam.VideoCapture and HololensCameraStream.VideoCapture? In older Versions of Unity, VideoCapture was in another namespace. Could be that Unity tried to upgrade the scripts and now the wrong namespace (Unity instead of HololensCameraStream) is included

lapislazinus avatar Aug 25 '20 13:08 lapislazinus

Hi @lapislazinus,

I ran into the same issue and you are right. When importing the unitypackage, Unity will mess with the VideoCapture import and add a UnityEngine.Windows.WebCam prefix to everything WebCam-related. Thank you for that hint!

aleneum avatar Sep 22 '20 16:09 aleneum

Actually I need to specifically replace UnityEngine.Windows.WebCam with HololensCameraStream. Otherwise Unity will try to 'fix' VideoCapture during every build.

aleneum avatar Sep 22 '20 17:09 aleneum

Same situation in Unity2019.3.0f

dudu502 avatar Nov 24 '20 05:11 dudu502

Try another branch (upgrade_2018_2) please. There is no compile errors.

dudu502 avatar Nov 24 '20 06:11 dudu502

Actually I need to specifically replace UnityEngine.Windows.WebCam with HololensCameraStream. Otherwise Unity will try to 'fix' VideoCapture during every build.

and how is this done?

Zandt97 avatar May 20 '21 11:05 Zandt97

Actually I need to specifically replace UnityEngine.Windows.WebCam with HololensCameraStream. Otherwise Unity will try to 'fix' VideoCapture during every build.

and how is this done?

When you import the HoloLensCameraStream unitypackage, Unity will replace every occurrence of VideoCapture with UnityEngine.Windows.WebCam.VideoCapture if I remember correctly. You need to find every UnityEngine.Windows.WebCam string/namespace in the imported files after the import and replace them with HololensCameraStream

aleneum avatar May 20 '21 12:05 aleneum

Hello. I have just released a version in my repository that supports the latest Unity and Hololens2. Please try it out. https://github.com/EnoxSoftware/HoloLensCameraStream

EnoxSoftware avatar Nov 17 '22 06:11 EnoxSoftware