Search Unity

  1. Unity support for visionOS is now available. Learn more in our blog post.
    Dismiss Notice

Question Plane Visualizer for a single plane type

Discussion in 'Unity MARS' started by nicolas_unity762, Aug 24, 2020.

  1. nicolas_unity762

    nicolas_unity762

    Joined:
    Aug 24, 2020
    Posts:
    2
    Hi all,

    I am currently in the process of building an app that replaces flooring.

    When using the Plane Visualizer, how can I isolate the visualization to only display on surfaces that match a specific condition, such as in my case (the floor plane)?

    Thank you :)
     
  2. jmunozarUTech

    jmunozarUTech

    Unity Technologies

    Joined:
    Jun 1, 2020
    Posts:
    297
    hey there!,

    You could use a surface action attached to a proxy with your conditions so you can colorize/meshify your proxies.

    To do this:
    1. create a proxy.
    2. Remove the set pose action
    2.a Add a condition; lets say a plane size condition.
    4. Add a build surface action
    3. Add a mesh filter, a mesh renderer and a material to your proxy

    Start your simulation and where that proxy gets matched it will paint the plane with the material assigned as show in the pic.

    hope it helps! :)
     

    Attached Files:

    Jared_playstudios likes this.
  3. nicolas_unity762

    nicolas_unity762

    Joined:
    Aug 24, 2020
    Posts:
    2
    Thanks so much, it worked :)
     
    jmunozarUTech likes this.