Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Question would like multiple objects to appear on the same plane

Discussion in 'Unity MARS' started by Blinxel_AR, Jan 3, 2021.

  1. Blinxel_AR

    Blinxel_AR

    Joined:
    Jan 26, 2015
    Posts:
    67
    hi,
    I'm using MARS rules, and I'd like to have more than 1 object appear on the same plane.
    Not overlapping.
    So if I had 4 objects, A, B, C and D, I'd like them all to appear on a sofa IF there's room for them.
    Object A would appear once there was enough room detected on a surface, and then if enough extra room was detected on that surface for B to appear, it would appear in that new space (not overlapping with A's position)

    Is this possible?
     
    Last edited: Jan 3, 2021
  2. amydigiov_Unity

    amydigiov_Unity

    Unity Technologies

    Joined:
    May 24, 2016
    Posts:
    15
    Hi @AnotherBloodyUsername , what you could do is add the component ShowChildrenInBoundsAction to your plane proxy and lay out all of your objects underneath the proxy. The action will hide all objects that fall outside the bounds of the plane. You can use the scene handles for PlaneSizeCondition to compare your layout of objects to different plane sizes.
     
  3. Blinxel_AR

    Blinxel_AR

    Joined:
    Jan 26, 2015
    Posts:
    67
    Thanks @amydigiov for the tips. (we changed our profile name)
    We solved it ourselves, but I'm unable to understand how, let alone explain it. Not a dev.
    I hope others can use your tips to make this work.