Search Unity

Struggling with ARCore move/rotate/resize (LeanTouch) No coding background, struggling.

Discussion in 'ARCore' started by Mumford-and-Dragons, Mar 12, 2019.

  1. Mumford-and-Dragons


    Jan 5, 2016
    Hi there

    I have spent nearly all day and only a little progress has been made so any here is greatly appreciated! :)

    I have successfully built the HelloAR demo onto my OnePlus 6 Android phone. It displays the planegenerator and I can spawn lots the models.

    I have installed LeanTouch from the Asset Store but I can't understand how I can implement this with the ARCore demo!? Many/all tutorials online show that you have to add your asset/mesh in the Unity Hierarchy, then add the LeanTouch components to the model to get the move, rotate and resize working; and this works! This actually works. Here is the video to show you!: >
    This shows the LeanTouch code that I have applied to the model that I added into the hierarchy:

    But I don't want to automatically have the mesh in the scene when I open the AR app.
    Basically what I want to know/understand/create is;

    -Spawn only one mesh on the Plane Generator
    -Rotate/move/scale the object. Basically what it shows here

    I am no coder by any means. I have heard of functions, variables etc, and have briefly worked with C#. I attempted to look through the code that the HelloAR demo uses, to see how I can 'only spawn 1 object', 'add rotation' etc, but I couldn't understand it.

    Please could I get some help/assistance with this.