Search Unity

  1. Good news ✨ We have more Unite Now videos available for you to watch on-demand! Come check them out and ask our experts any questions!
    Dismiss Notice

Bounded Plane Vertical Alignment using AR Foundation on iOS

Discussion in 'AR' started by whogas, Sep 20, 2018.

  1. whogas


    Oct 18, 2013
    I am in the midst of moving an AR Foundation Android project over to iOS. Most aspects are transferring well from the ARCore underpinnings to ARKit. One issue I was running into had to do with vertical plane detection. It seems like all non-horizontal planes detected in iOS have their bounded plane alignments set to PlaneAlignment.NonAxis and never to PlaneAlignment.Vertical. Additionally, the initial rotation of the plane seems to align with the horizontal and then it is rotated 90° to be aligned with what a vertical plane would be in the first planeUpdated event. The PlaneAlignment property never appears to change from "NonAxis" to "Vertical" when this happens.

    I can work around this problem the way I have interpreted it, but I wanted to know if I'm missing something here in case I get burned down the road or if this is working as intended/expected.