Unity-Technologies / arfoundation-samples

Example content for Unity projects based on AR Foundation
Other
2.97k stars 1.11k forks source link

How to obtain the label of the plane classification? #1142

Closed kenhuang1964 closed 6 months ago

kenhuang1964 commented 6 months ago

Hey guys, I hope you are all doing well. Happy holidays 😄 I am currently working on an indoor navigation app and I want to be able to obtain the label of the plane the device is currently oriented towards. So say the device is pointing directly downwards, then the extracted label would be floor. Is there a way I can use raycasting constantly to continuously stream the label of the plane classification based on the orientation of the device's camera? Thanks in advance!

kenhuang1964 commented 6 months ago

Figured it out :)