Search code examples
unity-game-enginebuttonaugmented-realityvuforia

Unity AR How can i trigger a button in the scene?


I have this little AR-Unityapp for Android and i try to play a video with a button. But the button should not be on the screen ( canvas ) it should be in the scene ( understandable? ). So i made a 3d plane which simply starts the video with a pointer down event but it won´t work. I know that its possible to make this but i have no idea how some help would be helpful ( xP ).

enter image description here


Solution

  • use a world canvas:

    Create a canvas and set its "render mode" to "world". In that canvas you can put your button, give it a 3D location as you would with your plane, but you can use normal UI functionalities, such as buttons, instead of implementing click detections your self.