Log in or register to post comments

Lots of problems with new examples

December 17, 2013 - 10:06am #1

I did a fresh install of the new vuforia stuff in a new project using unity 4.1.5f1

 

I imported the imagetarget scene, the userdefined target example, and the multitarget examples.

 

That threw an error with the userdefinedtracking handlder scrip at this line:

return new UIButton(rect, newUDTButtonStyles, imageForButton);

and the error said UIButton doesn't take 3 parameters. Commenting it out gave a few more errors.

 

Then on the imagetarget scene, simply opening it after installing, it throws a nullrefexception on start, in regards to this line in AppManager.cs:

 m_UIEventHandler.UpdateView(false);

 

 

 

 

Lots of problems with new examples

February 11, 2014 - 4:47am #20

Thanks for pointing this out - I have notified the dev team responsible.

 

cheers

N

Lots of problems with new examples

February 11, 2014 - 3:39am #19

The "Video Playback" sample contains a version of UIButton which lacks the constructor that takes the third "pathForImage" argument.

 

In my case, the "User Defined Target" sample has the correct one. Others might as well, I have not tested

 

So to fix this error:

"The type `UIButton' does not contain a constructor that takes `3' arguments"

 

... just (re)import the "User Defined Target" sample, but ONLY select the UIButton script from the Scripts folder.

 

 

 

 

Lots of problems with new examples

January 30, 2014 - 6:06am #18

Using:

Unity 4.3.3f1

NGUI 3.09.f7

Vuforia 2.87 plus videoplayback samples

Vuforia videoplayback samples working good only after importing Ngui I have 3 script errors. (UIButton, UILable, UI Rect)

I managed to change the vuforia scripts by changing the names but when I do a build after pressing on the videoplay button the app crashes.

My guess it has something to do with the scripts that i have changed.

My question is how to solved this issue and still keep the vuforia features like double tap etc..

Best wishes,

Urwin

 

Lots of problems with new examples

December 23, 2013 - 10:31am #17

There is a conflict in the class definitions of two of the new UI classes between the MultiTarget and ImageTarget samples. You can resolve this by renaming the ImageTargetUIEvent handler and ImageTargetUIView to MultiTargetUIEventHandler and MultiTargetIUView, and then re-importing the respective ImageTarget UI classes from the ImageTarget sample. That will enable the references to resolve correctly. Also you'll want to assign the event handler on your App Manager object for whichever version you want to use.

Lots of problems with new examples

December 21, 2013 - 12:47pm #16

Thanks for the detailed reporting. We'll look into this issue. 

Lots of problems with new examples

December 20, 2013 - 7:50pm #15

The error message is linked below, here it is:

Assets/Scripts/UserDefinedTargetEventHandler.cs(181,70): error CS1729: The type `UIButton' does not contain a constructor that takes `3' arguments

I am not upgrading vuforia, let me explain in as simple terms as I can:

-I downloaded Unity 4.3.2 and installed to a brand new folder called unity4-3-2.

-I downloaded the unity plugin from your site for the new version of vuforia.

-I downloaded the sample apps.

-I imported the unity sdk package for the new vuforia version to the new install of unity.

-I imported virtualbuttons example package.

-I imported imagemarker example package.

-I imported multi target example package.

-I saw error quoted above and cannot even play. 

 

I deleted the examples and tried a single example by itself and when I press play in the editor, unity closes. 

 

As for unity closing, will that show in the log you get to on the corner of the console?

 

I then went back to 4.1.5 and everything is fine, I import all the packages into a new project and they work fine. 

 

Lots of problems with new examples

December 20, 2013 - 3:32pm #14

Can you post the errors you're seeing - and do they prevent your from building the project?

* always remove the plugin if you're importing a sample onto a sample because the Play Mode simulation engine will likely be bound to the original version of the plugin dll and Unity will crash when you attempt to overwrite that library. 

Lots of problems with new examples

December 20, 2013 - 1:54pm #13

Not using any framework, I downloaded and installed unity 4.3.2  fresh, then imported the vuforia unity extension, then imported the example scenes and got the error....

Lots of problems with new examples

December 20, 2013 - 12:55pm #12

From the error message that you had posted, it seems there are some conflicts with some UI API (e.g. UIButton); the new samples include sample code that contains a UI framework; are you using some UI framework such as NGUI in your project ? If so, you may want to exclude the UI code of the samples when importing the packages;

alternatively, you can import just the Vuforia extension, and drag the prefabs that you need (e.g. MultiTarget and VirtualButton) from the Prefabs folder under Qualcomm Augmented Reality folder.

 

Lots of problems with new examples

December 20, 2013 - 12:47pm #11

Yes I'm importing them individually from unity's import asset menu, one at a time, and simply from importing them I get errors.

 

On 4.1.5 unity I don't get the errors, importing them the exact same way....so what's wrong with the new version?

I need to have the multi targets and virtual buttons in the same project, and I do in 4.1.5 just fine. The new version gives errors when the two samples are imported to the same project, but unity 4.1.5 and the old vuforia examples doesn't have that problem.....

Lots of problems with new examples

December 19, 2013 - 12:33pm #10

Ok. Then you need to import assets selectively, using the asset import dialog in unity, to avoid possible conflicts (i.e. avoid importing the same assets multiple times); as you may know, in Unity assets are shared across scenes, as they belong to the project, although each scene may use only some of the assets.

Or simply import one sample per project, and it will work.

 

Lots of problems with new examples

December 19, 2013 - 12:23pm #9

Correct, I have them all working fine in the same project with unity 4.1.5 and vuforia 2-6-7..............not the same scene, but same project. 

Lots of problems with new examples

December 19, 2013 - 9:53am #8

Have you tried importing one sample at a time ? (e.g. Image Target) ?

from your description (maybe I misunderstand), you are importing multiple sample packages in the same project.

 

Lots of problems with new examples

December 19, 2013 - 9:13am #7

I'm not using NGUI though, I simply downloaded the newest Unity version, installed it, downloaded vuforia's unity plugin (new version) and the newest version of example apps.

 

When I imported the unity plugin + 3 examples, opening any of the example scenes and hitting play crashes unity.

 

When importing the image targets, multi target, and virtual button scenes I get the error you described as coming from NGUI.

 

So I'm back to using unity 4.1.5 and 2-6-7 version of vuforia. 

Lots of problems with new examples

December 18, 2013 - 4:40pm #6

This happens if you use NGUI, thee are few classes that have the same name as the vuforia UI.

I solved the problem by renaming the vuforia classes from UIBUTTON to UIBUTTONQ and then fix all the UIButton referencies inside the scripts.

Ale.

 

Lots of problems with new examples

December 18, 2013 - 12:31pm #5

EDIT:: ALL target example scenes crash unity when you press play...........................fresh install, fresh project......I imported 4 examples, occlusion, multi target, cylinder target, and virtual button, and all of them close unity.

 

 

Importing imagetarget example and userdefined example into same build still throws errors with unity 4.3.2 and vuforia 2-8-9. 

Assets/Scripts/UserDefinedTargetEventHandler.cs(181,70): error CS1729: The type `UIButton' does not contain a constructor that takes `3' arguments

Any idea what argument/parameter it's missing?

 

 

 

Lots of problems with new examples

December 18, 2013 - 8:52am #4

AFAIK 4.3 is meant to fix those problems, but you had better try it out just to make sure.

N

Lots of problems with new examples

December 18, 2013 - 8:45am #3

Is 4.3 going to give the same black screen problems I had with 4.2, which is why I'm using 4.1.5 with vuforia???

 

 

Lots of problems with new examples

December 18, 2013 - 12:12am #2

Try with an updated (latest) version of Unity which is 4.3.

 

Log in or register to post comments