Search Unity

ARCore Object Manipulation Example Scene Multiple/Different Objects

Discussion in 'AR' started by niklas1994, May 22, 2019.

  1. niklas1994

    niklas1994

    Joined:
    Sep 3, 2017
    Posts:
    2
    Hi, I'm pretty new to ARCore and I'm stuck with the Object Manipulation Example Scene.
    I want to extend it to place different Models, it works, but Translations (move/transform on the ground) is not possible anymore and I can only edit the last placed Object after I changed the code (if I tap a previously placed object, it just spawns a new object on the same place instead of manipulating the previous object).
    Basically I changed the AndyPlacementManipulator Script (only changing AndyPrefab and AndyObject to an Array, I guess the problem is bewtween line 102 - 122). I attached the Script to the Thread, would be awesome if someone can help me or has a link to a similar question/tutorial/... I couldn't find anything concerning the Object Manipulation Scene.
     

    Attached Files:

  2. niklas1994

    niklas1994

    Joined:
    Sep 3, 2017
    Posts:
    2
    Problem solved. My Object was missing a collider. Pretty dumb mistake
     
  3. alex04drizzle

    alex04drizzle

    Joined:
    Jul 18, 2019
    Posts:
    1
    Hi Niklas, Could you please help me out? I'm trying to manipulate different gameobjects on a plane (drag, resize). Could you please tell me how to do it.