Search Unity

AR-Foundation Proper way to turn off planes after basic placement

Discussion in 'Handheld AR' started by sirerr, Nov 24, 2018.

  1. sirerr

    sirerr

    Joined:
    Sep 25, 2016
    Posts:
    5
    Hi I have probably a simple question but I wondering what the best way to do it.

    I am currently working on a game where you place a object where you raycast to the plane. After the object is placed, I got a reference to the planes that were created. How should I turn them off so they aren't seen? Also if I do like simple renderer and collider component off, does it affect them meaning, do they stay in that state until the session is complete?

    Here's what I have for now.

    upload_2018-11-23_21-1-11.png

    Thanks and sorry if this is simple lol

    - sirerr
     
  2. GreeneMachine

    GreeneMachine

    Joined:
    Jul 3, 2015
    Posts:
    126
  3. sirerr

    sirerr

    Joined:
    Sep 25, 2016
    Posts:
    5
    Awesome, thanks very much!
     
    GreeneMachine likes this.
  4. hawken

    hawken

    Joined:
    Aug 22, 2013
    Posts:
    475
    Thanks for that link!
     
    GreeneMachine likes this.
  5. noclew

    noclew

    Joined:
    Jun 10, 2016
    Posts:
    4
    Does this disable only the visualizations? Or, does it completely stop plane detection of the session?