Search Unity

Swap 3D models on button click?

Discussion in 'AR/VR (XR) Discussion' started by sampletape8, May 22, 2019.

  1. sampletape8

    sampletape8

    Joined:
    Sep 7, 2018
    Posts:
    6
    Hey guys,

    I'm currently working on a regular AR Furniture app. It's made in Unity and I use ARKit 2.0. My question:

    How to swap 3d models on button click?

    When I'm in my ARCamera scene, I first need to scan the floor (yellow dots appear) and when I touch the floor, my chosen 3d objects gets placed. I've added a ScrollRect to the bottom of the screen with different items (furniture in this case). When I click on one of those items, I want the the app to load the selected item (just like a lot of other furniture apps). I didn't find anything regarding this question. Does someone know how to do this or where I can find tutorials on this topic?

    regards