Log in or register to post comments

objects through touch screen hp

December 20, 2012 - 4:03am #1

how to make objects can be touched through the screen hp


how to make this



Those functions are the

January 17, 2013 - 9:14am #11

Those functions are the functions that you need to implement in your game objects;

if you look at the code in the link posted by DavidBeard, you will see that the SendMessage function is used, for example:

  GameObject to = hit.collider.gameObject;

The SendMessage() is actually just a way of invoking the method called "FingerBegin()" in the "to" game object.

So you need to implement the "FingerBegin" function in your receiving objects; same for "FingerMove", "FingerEnd", "FingerCancel";

note that you don;t need to implement those functions in every game object (i.e. it's not a problem if a game object does not have that method, because you are specifying the DontRequireReceiver option, which is safe).

So, the idea is that in some of your game objects (the one that are interesting for this kind of interaction) you will implement those functions;

the actual code that you put in those functions is up to you, i.e. it's application specific (in practice it's the way you want to handle the behaviour of your game objects in response to those touch events).



  Write message handlers like

January 16, 2013 - 10:02am #10


Write message handlers like this, on each of your interactive objects.

	void FingerBegin (iPhoneTouch evt) {
	void FingerMove (iPhoneTouch evt) {
	void FingerEnd (iPhoneTouch evt) {
	void FingerCancel (iPhoneTouch evt) {


Hi, not sure what you mean by

January 16, 2013 - 9:34am #9

Hi, not sure what you mean by "step 2"; can you be more specific ?


I am now trying the script

January 14, 2013 - 10:06am #8

I am now trying the script that you was posted.

I have revised the script which is now suitable for android. But I don't understand what I have to do in step two.

Could you give me some advices, if possible, could you give me a sample script of step two..


Hi, you might need to replace

January 14, 2013 - 1:01am #7


you might need to replace the "iPhoneTouch" class with functions like Input.GetTouch(), Input.touches and TouchPhase...

But for the rest it should just work in Android too (you may want to check in the Unity website for API reference on Input API).


Work with Android?

January 14, 2013 - 12:11am #6

How is this pogram ?

Is that work with Android.


Thanks a lot !  I'm gonan try

January 10, 2013 - 2:37am #5

Thanks a lot ! 

I'm gonan try this this afternoon . Does it works for android too ? 

Here is a FingerManager class

January 9, 2013 - 9:03am #4

Here is a FingerManager class for handling multiple touches - http://wiki.unity3d.com/index.php?title=FingerManager

You'll need to add an event handler to the object that you want to manipulate to catch touch event properties. See the instructions on that page.

You can also find multitouch plugins in the Unity asset store that simplify the adaptation of multitouch.

Hi corentin, Apologies for

January 9, 2013 - 3:03am #3

Hi corentin,

Apologies for the delay in replying.

This ought to be relatively straightforward to do, and it's more a Unity aspect than a Vuforia one.

Any augmentation is typically a child of the trackable (in the video this is on the floor).  So once it is recognised what you need to do is integrate gesture recognition in Unity (possibly through a plug-in library of some sort) that can manipulate the augmentation / sofa.

It's probably worth checkin the Unity forums for gestures and how to manipulate them.  Also you coudl probably do this aspect in isolation before integrating Vuforia, as this way it isolates the "risky" component and will let you iterate more quickly.  Additionally if you get Unity Remote to work as well it can save you a lot of time.

Hope this helps and makes sense.


Rotation object in AR

January 9, 2013 - 2:37am #2

Hello , i bump this post because i want to do the same thing but i didn't find any tutorial :s Someone can help ? 


Log in or register to post comments