PTCInc / vuforia-engine

Bug and feedback issue tracker for the Vuforia Engine SDK
https://developer.vuforia.com
20 stars 0 forks source link

Try to get camera image failed with official sample code in Unity #5

Closed CharlieJiang closed 1 year ago

CharlieJiang commented 1 year ago

Share which article or sample this is related to working-camera-unity

Elaborate on your feedback or issue image.CopyToTexture(mTexture, true) keeps get errors when run in Unity, the error message is "Exception in callback: bool UnityEngine.Texture2D.Reinitialize(int,int,UnityEngine.TextureFormat,bool)" . and in Android device, the error message is "Exception in callback: Error: called non-existent method System.Boolean UnityEngine.Texture2D::Reinitialize(System.Int32,System.Int32,UnityEngine.TextureFormat,System.Boolean)"

Affected Vuforia Engine version: Vuforia SDK v10.13.3.

Affected platform:

Workstation OS: Windows 10 Platform: Unity Platform version : 2020.3.44f1c1

Affected device:

Name: HuaWei nova5

Model: SEA-AL00

OS: HarmonyOS 2.0.0

ptc-pscheper commented 1 year ago

Can you share reproducible steps for this issue? I was not able to reproduce your issue. I followed the documentation, added the code sample, created a "RawImage" GameObject and attached it to the "Raw Image" variable of the code sample in the inspector which resulted into the camera feed being shown within the image object.

CharlieJiang commented 1 year ago

I followed this steps : image but still get errors: image

ptc-pscheper commented 1 year ago

Hi there, can you try the same steps with Unity 2021.3.0 or above?

ptc-pscheper commented 1 year ago

This ticket is closed due to inactivity. Feel free to open the ticket if the recommendation to try to upgrade the Unity version does not work. Thank you!