Search Unity

Collider in 3D Object to show information panel

Discussion in 'Scripting' started by AlifiaSals17, Jun 8, 2020.

  1. AlifiaSals17

    AlifiaSals17

    Joined:
    May 2, 2020
    Posts:
    2
    Hi everyone,

    I'm just started to learn ar with vuforia in
    unity and i get some trouble when i want to make my 3d object clickable and it will show information panel.
    This is my ar hierarchy. The blue pointer is my information panel about the object. While 3d object in "sistempernapasan". In this case, i want to try click "kepala" object and it will show "PanelHidung" in Canvas.
    upload_2020-6-8_23-16-6.png

    Then, i try to add box collider component to "kepala"
    upload_2020-6-8_23-19-46.png

    And here is my script for Show Panel
    upload_2020-6-8_23-20-33.png
    I didn't get any error message but it can run properly when i tested via webcam. My 3d object cannot be clicked and it don't show the panel. I'm sorry if it poor question.
    I'd really appreciate any help from you guys.
    Thank you :)