Search Unity

Question Multiple object placement

Discussion in 'AR' started by erikestany, Jun 6, 2022.

  1. erikestany

    erikestany

    Joined:
    May 20, 2022
    Posts:
    2
    Hi,

    I know this topic has been discussed several times, but I've searched everywhere and haven't found the solution. I have two questions:

    Is there a way to place in Unity several different objects on Vuforia's groun plane, not at the same time, and that they all remain visible?

    Can it be done without buttons to select the various objects? That is, each time you tap on the screen, one of the objects in the list is automatically placed (tap1 = object1, tap2 = object2, tap3 = object3, etc.).

    Thank you so much.
     
  2. andyb-unity

    andyb-unity

    Unity Technologies

    Joined:
    Feb 10, 2022
    Posts:
    1,051
  3. erikestany

    erikestany

    Joined:
    May 20, 2022
    Posts:
    2
    Thanks for the reply.

    I already did, but received no response.

    Now I see that can also be done with AR Foundation. Maybe it's a better option?

    Thanks.
     
  4. davidmo_unity

    davidmo_unity

    Unity Technologies

    Joined:
    Jun 18, 2019
    Posts:
    99
    If you do decide to go with AR Foundation you may find the anchor sample in our samples to be a good jumping off point.

    You will need to modify the prefab attached to the AR Anchor Manager so that the prefab that gets instantiated then reads from the set of objects you want to create and creates the next object in the list.

    Edit: Incorrect link for anchor sample.