Log in or register to post comments

Unable to run Unity Hololens Sample

Unity Editor
September 19, 2022 - 2:15am #1

Hello everyone,

 

I'm trying just to test Vuforia Sample on Unity for Hololens 2 but after trying it several times I didn't manage to do it.

I have followings guides from Vuforia as reference (specially the last one), and I followed them STEP BY STEP without success:

- Getting Started with Vuforia Engine in Unity

- Vuforia Play Mode in Unity

- Working with the HoloLens Sample in Unity

 

I use Unity 2021.3.9f1, Vuforia 10.10.2 and Vuforia Hololens 2 Sample (also 10.10.2).

As it's explained on the guides, I carry out following steps:

- New 3D project in Unity.

- Switch platform to Hololens 2 (ARM 64-bit, Min. platform version 10.0.18362.0).

- Add features with Mixed Reality Features (Fundation and XR).

- Set project MRTK and XR options.

- Import Vuforia Hololens 2 Sample assets using Package Manager.

 

After all these steps, I get some errors and the image target on VuforiaContent doesn't find the reference image.

The error I get is: "Found an existing event system in your scene. The Mixed Reality Toolkit requires only one, and must be found on the main camera.

 

If I close the project and open it again, I get following errors (check screenshot attached):

 - Warning: - Found and existing event system in your scene. The Mixed Reality Toolkit requires only one, and must be found on the main camera.

- Error: For mixed Reality Toolkit input work properly, please remove your other input module(s) and add a MixedRealityInputModule to your main camera.

- Warning: Setting the manager scene MixedRealityToolkit instance to the active instance

- Error: ArgumentOutOfRangeException: Index was out of range. Must be non-negative and less than the size of the collection

 

And, what strikes me the most is that Vuforia Assets seems not to be imported (camera doesn't have VuforiaBehaviour component and there is no Vuforia menu on Game Objects), but if I try to import Vuforia Engine by opening Vuforia unitypackage file, I get a popup indicating that it is already imported.

It says: Nothing to import! All assets from this package are already in your project.

Because the same reason, on the scripts of Vuforia Objects, there is a warning that says the script can not be loaded.

 

I've tried all this several times, different order steps, trying different options... without success.

 

After all this, my questions are: what I could be doing wrong? Has anyone been able to run this example with Unity 2021?

 

Thanks in advance! 

 

EDIT FOR ADDITIONAL INFORMATION:

I tried to create a basic project just adding hololens features, vuforia package, and one image target and it worked.

It's just a very simple example using the "Astronaut card" from the default database, and a cube that appears and disappears over it when the image is found and lost.

So it means that Vuforia package can be properly imported and can work without problem with my configuration (unity version, hololens packages...)

 

AttachmentSize
Image icon Errors Vuforia27.15 KB
Platform: 

Unable to run Unity Hololens Sample

November 20, 2022 - 11:23pm #8

We checked the ticket together on Saturday night to find that only Atletico Madrid remained to win. We started celebrating because A. Madrid was hot that season, and in short, A. Madrid scored a goal in the 89th minute. It was Friday afternoon when my friend told me that he had booked the right 20 chances on bet9ja like he used jazz. I took 20,000 and gave him a game and gave me a ticket. Describe your amazement. Gains are not limited to sports betting.

Unable to run Unity Hololens Sample

November 15, 2022 - 6:47am #7

It's very cool.

Thank you very much.

Unable to run Unity Hololens Sample

November 15, 2022 - 1:17am #6

I also try the two ways that the sample indicates to add Vuforia Packages. I mean, only by importing Vuforia Engine, and the other by the Vuforia Sample.

 

Unable to run Unity Hololens Sample

November 13, 2022 - 1:39am #5

Wow

It's very cool.

Unable to run Unity Hololens Sample

October 3, 2022 - 2:45am #4

Hey there,

 

Did the new tests result into the same errors shared previously?

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

Unable to run Unity Hololens Sample

September 20, 2022 - 7:50am #3

Hello pscheper,

 

Yes, I confirm I configure my project for Hololens and, after it, I add Vuforia Sample Package using package manager.

 

In fact I made a lot of test (always with different projects starting from zero), sometimes doing some steps after or later, without success.

I also try the two ways that the sample indicates to add Vuforia Packages. I mean, only by importing Vuforia Engine, and the other by the Vuforia Sample.

Even, although it's supposed that the sample imports all the packages it needs, I tried to import Vuforia Engine before import the sample, but the same result.

 

And, of course, all of it adding the licence key generated on the website. In my case just a basic licence to test this package.

 

If I can give you some other details that can be useful, let me know.

 

Thanks!

Unable to run Unity Hololens Sample

September 19, 2022 - 8:14am #2

Hey there,

 

As far as I understand is that you're trying to setup the Hololens 2 Sample from the Asset Store? Can you confirm (just to be sure) that you went through the following procedure:

Thank you.

 

Kind regards,

Patrick Scheper

Vuforia Engine Product Manager

Log in or register to post comments