Log in or register to post comments

How to change the Anchor Input Listener Behaviour

July 27, 2020 - 11:11pm #1

How to change the Anchor Input Listener Behaviour, the original setting is clicked on the screen, I want to change it to judge the Micro Switch high or low signal

AttachmentSize
Image icon 截圖 2020-07-28 下午2.10.49.png16.59 KB

How to change the Anchor Input Listener Behaviour

September 1, 2020 - 9:40pm #3

You have to make your own script for this its very easy: 

make a scripts with a reference to the PlaneFinderBehaviour then call the PerformHitTest function in your own method with any position, whenever you call your method it will place the object on the ground plane. here's the script:

public class customTrigger : MonoBehaviour

{

public PlaneFinderBehaviour plane;

void onTrigger()

    {

        Vector2 pos = new Vector2(0, 0);

      

        plane.PerformHitTest(pos);

    }

}

Now you only need to make a script that detects if your switch is low or high and then call the onTrigger() function and your object will appear on the ground plane.

How to change the Anchor Input Listener Behaviour

August 5, 2020 - 3:51am #2

Hi,

Unfortunately this is by design from Vuforia.

You will need to create your own script to handle this use-case.

Thank you.

Vuforia Engine Support

Log in or register to post comments