Search Unity

Cannot set PlaneDetectionMode to vertical only

Discussion in 'AR' started by Saicopate, Apr 28, 2020.

  1. Saicopate

    Saicopate

    Joined:
    Sep 25, 2017
    Posts:
    76
    Hi!
    I am having trouble setting PlaneDetectionMode in ARPlaneManager to vertical planes only.

    I tried setting this through editor and through script but still it fails and shows both vertical and horizontal planes. Suprisingly currentDetectionMode reports "None" all the time.

    This happens on newest AR Foundation Samples using ARF 4.0.0 but also in my project on ARF 3.1.3 (both Android).

    Is this a bug? Or am I doing something wrong?
     
  2. kingbaggot

    kingbaggot

    Joined:
    Jun 6, 2013
    Posts:
    51
    Hi - I've got this problem at the moment also. It's set to Vertical only but it displays all types.

    However what is *does* do is only allow to raycast to vertical planes (i.e it's won't let me place on plane for non-vertical planes)

    I'm not hunting through trying to set the material the AR Plane debug materializer uses to alphed to zero on those non-vertical planes. I'm pretty sure it displays them differently at the mo, but I can't find where..

    I'm on AR foundation 2.1- as I was having lots of build problems with 3.0 and above.
     
    Saicopate likes this.