- Home /
Question by
miraang · Feb 23, 2018 at 10:49 AM ·
c#scripting beginneraugmented-realityraycasthitnoob
Placeable Menu (Hololens)
Hi,
I would like to make a placeable menu. So I added the TapToPlace script to the menu and it works fine the only problem is that it is placed directly on the wall. Which means that if the spatial mapping isn't smooth enough, some parts of the menu panel will disappear behind the wall. So the question is: how can i change the script so that the panel is 0.2f infront of the wall (so that there is a small distance between the wall and menu).
Am i able to script it like: placementPosition = hitInfo.point + 0.2f;
best regards, miraang
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612153234im_/https://answers.unity.com/themes/thub/images/avi.jpg)