How to interact with GameObject (3D model) once being placed in real world?

Hi,
I was wondering if anyone has suggestion how to interact with the 3D gameObject once it’s being placed to the real world? I was able to figure (from previous posts) how to interact with UI within ARCore, but I don’t seem to be able to make interactions with 3D object. When I tab on the object, a new object just generate overlapping the old one, instead of recognizing the collider. Thanks!

Thomas

2 Likes

I would like to know the same

Yes this would be very helpful if anyone has any ideas.

this can be done easily, use lean touch and you can interact with your 3D model.
also to prevent spawn new object on touch you can write a small code in the HelloARController.cs file.

define a bool variable inside class:
bool isSpawned =false;

// now replace this line…
if (Frame.Raycast(touch.position.x, touch.position.y, raycastFilter, out hit) && isSpawned == false))
{
isSpawned = true;


//rest code is same