- Home /
Can't get AR camera to trigger events
Can anyone help me please?
I wish to trigger events when an operator moves their device camera in real world (on unity engine this is the AR Camera Imported Asset from Vuforia) within proximity of a augmented reality object. In other words- I can't get ARcamera import from Vuforia to trigger colliders on Unity. Find project files with precise detail here. I tried all combinations of attaching colliders, rigid bodies, etc to AR Camera and augmented reality object (in this case a simple sphere) with no luck.
Any help greatly appreciated!
Tim.
PS script running fine on Unity just the Debug.Log event not appearing on Console (just a standard trigger script in C#):
using System.Collections; using System.Collections.Generic; using UnityEngine; public class ARCameraProximity : MonoBehaviour { public void OnTriggerEnter(Collider other) { if (other.tag == "Player") { Debug.Log ("Entered"); } } public void OnTriggerExit(Collider other) { if (other.tag == "Player") { Debug.Log ("Exited"); } } }
Your answer
Follow this Question
Related Questions
how to change orbit camera rotation when player runs into trigger box 1 Answer
How you change another script value smoothly on trigger 0 Answers
Keep the mouse move for FPC 2 Answers
How to disable gameObjects when they enter a trigger 2 Answers
Continue playing sound effect on camera after LoadScene 1 Answer