google-ar / arcore-unity-sdk

ARCore SDK for Unity
https://developers.google.com/ar
Other
1.4k stars 400 forks source link

Object Manipulation Scene Broken #502

Open maherahmedraza opened 5 years ago

maherahmedraza commented 5 years ago

VERSIONS USED

I have download and built the ARCore 1.7 on Pixel2 with "Object Manipulation" scene. After scanning when I try to spwan object its not working. I have also test it with Instant preview and still get the same results. What can be the problem?

maherahmedraza commented 5 years ago

PLEASE ALSO EXPLAIN WHAT IS THIS ERROR? NullReferenceException: Object reference not set to an instance of an object GoogleARCoreInternal.ARCoreAndroidLifecycleManager.ResetSession () (at Assets/GoogleARCore/SDK/Scripts/Managers/ARCoreAndroidLifecycleManager.cs:143) GoogleARCore.ARCoreSession.OnDestroy () (at Assets/GoogleARCore/SDK/Scripts/ARCoreSession.cs:82)

skunkworksGames commented 5 years ago

There is a fix for the broken manipulation scene.

https://github.com/google-ar/arcore-unity-sdk/blob/0d6bcd3c9f7d8ef85d0505dc7355a08f2717f211/Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/ManipulationSystem.cs

MohammedYaseen97 commented 5 years ago

There is a fix for the broken manipulation scene.

https://github.com/google-ar/arcore-unity-sdk/blob/0d6bcd3c9f7d8ef85d0505dc7355a08f2717f211/Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/ManipulationSystem.cs

worked fine bruh 👯‍♂️

skunkworksGames commented 5 years ago

I know, i also just had downloaded the original package and was going mad cause the scene wsa not working, then i found the fix. ;-)

fredsa commented 5 years ago

See PR #501

knightcube commented 5 years ago
  1. Go to Assets/GoogleARCore/Examples/ObjectManipulation/Scripts/ManipulationSystem.cs.
  2. Open Manipulation.cs script in Visual Studio.
  3. Replace it with the script given here. Then save it.
  4. Build the project again
  5. Voila! Enjoy.