Google Cardboard SDK not working in Unity 5.4.1f (Gvr Controller script not loaded) - unity3d

I'm trying to use Google Cardboard SDK with Unity 5.4.1f (Free). After importing the unitypackage with SDK, I tried to run the demo scene, but I see only freezing camera. I can't look around with mouse, just static picture. And I see the errors in Console and Inspector tab. Here is the screenshot:
I tried to import different versions of Cardboard SDK and also tried Unity 5.3, but got the same errors. Please help me, I don't know what's wrong with it.

The project is likely corrupted. Make sure that the version of Unity you have is > the version used to build the Google Cardboard SDK.
If that's not the problem, close Unity, delete the current Google Cardboard SDK project and plugin. Download fresh version here.
After downloading it, import the GoogleVRForUnity.unitypackage file. This should fix your problem.
EDIT:
Things changed in the latest Google VR SDK update. The VR Demo Scenes now require VR
Technical preview to work. You can get the latest Unity version for VR here. Scroll down to the end of the page.
The latest version 5.4.2f2-GVR10.
Once you download this version of Unity UNITY_HAS_GOOGLEVR will be defined in Unity and you can now run the ControllerDemo demo.
Note:
You can run the DemoScene scene in Assets\GoogleVR\DemoScenes\HeadsetDemo directory without downloading the Unity GVR version. Right click on the Project tab then click Reimport All.
You just cannot run the ControllerDemo scene in Assets\GoogleVR\DemoScenes directory without downloading the Unity GVR version.

Related

Quickstart for Google Cardboard for Unity Plugin for Unity 2019.4.25f & later Doesn't Install The Samples Folder

I need to upgrade the Google Cardboard plugin in my VR apps. The Unity documentation says that we should use the Google Cardboard for Unity plugin because Unity no longer includes Google Cardboard. I'm using Unity 2019.4.37f.
I followed the steps to import the plugin using Git on link Quickstart for Google Cardboard for Unity. I saw the progress indicators while the plugin was installed. I went into XR Plug-in Management in Project Settings and checked Google XR Plugin.
I want to create the sample app so I can see what I need to update in my existing VR apps. The instructions say after the plugin is installed I should go to Assets/Samples/Google Cardboard//Hello Cardboard. When I go into the Package Manager window the plugin is not listed so I can't import the sample app.
Has anyone had this problem?
UPDATE: I submitted my issue to the GitHub GoogleVR/Cardboard repository. This link has more details including a Unity screenshot of what happened.
https://github.com/googlevr/cardboard/issues/360
This is the response I received from GitHub. You can see the details in the GitHub link.
"In the top left corner of the package manager, it says "Unity Registry". Click on that button and change it to "In Project". You should now see something similar to what is in the following image:"
I did this and was able to access the Google Cardboard for Unity plugin in the Package Manager window with a link to download the Hello Cardboard project. I suggested that they update the instructions for new people that have never used the plugin.

What is the best way to update the Admob plugin in Unity?

error code pictureI have an old project on an old version of Unity (2018.4.36f LTS) with an even older Google Admob plugin in it. I would like to update the Google Admob SDK to have all the latest features, like the App Open Ad. But I don't know how to do it (PC running Windows 11) Thank you for your help!
You can download the latest sdk from here
It makes no difference what version of Windows you have. After downloading the sdk, open the Unity editor in the project you want and then drag or double click the downloaded file into Unity.

VUFORIA Build Support for Unity

Cannot import Vuforia SDK for Unity.
Unity Version 2019.2.6f1
Unity Hub Version 2.1.2.0
Vuforia SDK for Android Version 8.3
I'm not able to use Vuforia SDK in Unity.When i did the installation there was no downloadable file for Vuforia Android Build Support.
I went to build settings and added Vuforia Augmented Reality Support for Android, Unity just stops responding. Is there any solution or should i just prefer a older version of Unity
In this Unity Version you don't manually import the Vuforia SDK anymore.
It is now the Vuforia Engine AR Package and was moved to the PackageManager.
All you have to do is
open Window → Package Manager
Switch the filter from InProject to All Pakcages
Scroll down or search for Vuforia Engine AR
Hit Install
Unity now automatically downloads and imports this package which you later can find listed under the Packages section in the ProjectView
Or as you probably ment simply tick the Vuforia Augmented Reality Supported* option in the PlayerSettings (which basically does the same)
This should be working with 2019.2.6f1 since I'm currently using it.

Tango Unity Examples Not Building

I have been trying to build and run the tango unity example on my new tango device and it doesn't seem to be working. As soon as the app launched the app crashes on my device. It just says Unfortunetely, Unity Examples has stopped.
I also tried to run a simple app with Tango AR camera and got the same result.
I am running Unity 5.4.0f3 (64-bit) with Android Studio 2.1.2. I installed all the tools on the Surface Book (Windows 10) on 8/1/2016
As stated on the Tango developers group on G+, Tango SDK does not support Unity 5.4 yet, you need to download 5.3.
Hi Devs,
Unity released version 5.4 last week. As a result, Tango development is broken. The team is aware of the issue is currenlty working to address the issue this month. In the meantime, the only workaround is to stay on Unity 5.3.
Thank you for your patience everyone.
https://plus.google.com/+ProjectTango/posts/N9DEz2RKZSb

Unity3D error Fix [duplicate]

I want to use c++ dll on unity android application. To use native dll on a android device, I learn that I should use Unity 5. I download unity5 from here. My application requires vuforia. So I download vuforia package from here.
Unity 5 is 64 bit.
On unity editor, I delete MainCamera and add ARCamera. There is an error message on unity console. The message is below :
Failed to load 'Assets/Plugins/QCARWrapper.dll', expected 64 bit architecture (IMAGE_FILE_MACHINE_AMD64), but was IMAGE_FILE_MACHINE_I386.
Vuforia.WebCamAbstractBehaviour:CheckNativePluginSupport()
There is a solution for this problem on vuforia forum. But I don't find unity editor(32 bit)
To use Vuforia with Unity 64 bit, just move the QCARWrapper DLLs from /Plugins to /Plugins/x86. These are the DLLs:
QCARWrapper.exp
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
This should solve the problem!
Go to https://unity3d.com/get-unity/update Under there, you will see ADDITIONAL DOWNLOADS Under that you will see FOR WINDOWS. Click it and choose Unity Editor (32-bit).
EDIT:
I see lots of dowvotes. This was the ONLY solution when this question was asked. Unity 5 64bit just got released when this question WAS asked and this was the ONLY solution back then. This answer was changed to the current answer that was provided 5 months later when Vuforia released 64bit version of their plugin.
Vuforia 5.0 supports the 32bit version of the Unity Editor on Windows, and the 64bit version on Mac.
So, There are two possible solutions:
you just need to install and use the Unity 5 32bit Editor, on Windows.
OR
Create a new folder "x86" inside
Assets>>Plugins
inside your unity project structure
Then move the following files from "Plugins" to newely created "x86" folder.
QCARWrapper.lib
QCARWrapper.dll
QCARWrapper.dll.signature
QCARWrapper.exp
After that check log message, If you see the log like:
Setting platform to 'Editor' for plugin: Assets/Plugins/x86/VuforiaWrapper.dll
UnityEngine.Debug:Log(Object)
Vuforia.EditorClasses.ExtensionImport:UpdatePluginSettings() (at Assets/Vuforia/Editor/Scripts/ExtensionImport.cs:43)
UnityEditor.EditorApplication:Internal_CallUpdateFunctions()
Then , Congrats !! You are ready to Go!
I had the same problem /Failed to load 'Assets/Plugins/QCARWrapper.dll'/ with vuforia plugin and latest version of Unity ( currently 5.1.2f 64bits ) and also couldn't get my laptop camera to work.
Everything is fixed with the 32 bit release of Unity, even if my os is 64 bits (Windows 7).
If you are using Unity 5.1, make sure to set the right Graphics API settings in the Player Settings for Android and iOS:
disable the "Automatic Graphics API" checkbox
in the Graphics APIs list, make sure that only OpenGL ES 2.0 is included:
Android: remove OpenGL ES 3.0
iOS: remove OpenGL ES 3.0 and METAL
Important :
1. In your Unity project:
Select the QCARWrapper.bundle in the Unity Project view (located under Assets > Plugins ), so that its settings are shown in the Unity Inspector
Change the settings of QCARWrapper.bundle in the Unity inspector from "Any Platform" to "Standalone + Editor".
Rebuild
​OR:
In the Xcode project generated by Unity:
Go to Build Phases > Copy Bundle Resources
Remove the QCARWrapper.bundle file from the list
Rebuild
My unity3d version is 5 and 64bit
,Os is Windows7 64 bit.
my Problems solved .
Edit :
Unity editor couldn't show laptop camera ,But Rebuild Project , camera work .
for example rebuild Android platform , and install .apk on device => application Ok .
Go to Name_Vuforia_Unity_Project\Assets\Plugins and you will find QCARWrapper.dll.
Delete it and try again (could be necessary to restart unity).
Unity 64 bit