Log in or register to post comments

[Noob] How to interact with Unity from iOS?

July 26, 2012 - 12:28am #1

 Hello all.

 I am very new in Vuforia.

I have a QR and I want to show my own 3D model made by Unity.

I want to put 3 buttons, 3 links to webs/url´s 

Need I put the buttons in iOS or in Unity?  How to do it? 

 How to send an event, a touch, from iOS to Unity?

 

Thanks!!

[Noob] How to interact with Unity from iOS?

July 31, 2012 - 8:39pm #7

How can, from iOS, the app inovkes the c#-unity code?

This is not the way that Unity works.  You do control Unity from iOS at all.

Instead you have to develop everything in C# in Unity and then do a build and run, which transforms it into an XCode project that eventually builds and runs on the device

HTH

N

 

[Noob] How to interact with Unity from iOS?

July 30, 2012 - 3:38am #6

Hello NalinS

I have installed Unity and Unity extension from Vuforia.

In Unity, I open "CameraDeviceMenu" and, obviously, I can see the c# code.

I am very noob.

How can, from iOS, the app inovkes the c#-unity code? What are the steps?

 

Thanks!

[Noob] How to interact with Unity from iOS?

July 27, 2012 - 6:44am #5

Load up the Unity Image Targets project

Double click QCAR-ImageTargets Unity scene to make it active

Click ARCamera in the Hierarchy window

Watch the Inspector change, and down the bottom of this is the script

N

[Noob] How to interact with Unity from iOS?

July 27, 2012 - 6:12am #4

Hello NalinS

I can´t fin the "CameraDeviceMenu" script/procedure.

Can you say me the class? (.h?)

Thanks in advance.

[Noob] How to interact with Unity from iOS?

July 27, 2012 - 6:09am #3

Hello NalinS

I can´t fin the "CameraDeviceMenu" script/procedure.

Can you say me the class? (.h?)

Thanks in advance.

[Noob] How to interact with Unity from iOS?

July 26, 2012 - 2:33am #2

Hi CesarRN

You should be able to achieve all this within Unity.

If you look at the ImageTargets sample, and particularly the CameraDeviceMenu script it will show you how to use a GUI to interact with the application.  In this instance it brings up buttoons that let you change the dataset.

HTH

N

Log in or register to post comments