googlearchive / tango-examples-unity

Project Tango [deprecated] UnitySDK Example Projects
https://developers.google.com/ar
Apache License 2.0
470 stars 242 forks source link

VideoOverlayProvider.cs - m_emulationTexIdCaptureTextures does not exist #49

Closed momo-the-monster closed 7 years ago

momo-the-monster commented 8 years ago

I get this error when I open up the UnityProject from the latest SDK .unitypackage download (Okul) or when I open the UnityExamples project from this Github.

Indeed, the property "m_emulationTexIdCaptureTextures" does not exist in VideoOverlayProvider.cs, and that class does not extend another class so it seems like it's missing altogether.

wederw commented 8 years ago

Adding private static YUVTexture m_emulationTexIdCaptureTextures; in public class VideoOverlayProvider seems to help.

momo-the-monster commented 8 years ago

@wederw - thanks, that allows a compile if VideoOverlayProvider never gets called, but it trips an error if it does, since m_emulationTexIdCaptureTextures is never allocated.

I've tried allocating it on line 166 of VideoOverlayProvider.cs, but I only get static in my Unity Editor.

m_emulationTexIdCaptureTextures = new YUVTexture(m_emulatedExpId_Y.width, m_emulatedExpId_Y.height, m_emulatedExpId_Y.width, m_emulatedExpId_Y.height, TextureFormat.RGBA32, false);

chaosemer commented 7 years ago

I believe we fixed this a while back. Please reopen if this is still happening.