Search Unity

Suggestion - Method to set-unset all Physics Layers

Discussion in 'General Discussion' started by akaBase, Sep 21, 2019.

?

Is this a feature you would like added, or is it just me?

  1. Yes, I too would like it added

    100.0%
  2. No, I prefer clicking all the checkboxes one by one

    0 vote(s)
    0.0%
  1. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    35
    As the title says this is a suggestion but couldn't find anywhere else to post it.

    In the settings where you set which layers interact with each other it is VERY tedious having to click all the little checkboxes especially with them all checked by default (I understand why but leads to the issue).

    A small button to toggle them all checked or not would be very helpful as I like most devs(?) take the effort to set collision layers and have to go through this a lot when prototyping and as a very small feature it would go a long way!.
     
    Vryken and Socrates like this.
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    Absolutely. Yes please.
     
    akaBase likes this.
  3. akaBase

    akaBase

    Joined:
    Aug 22, 2017
    Posts:
    35
    Added a poll to try and get this feature suggestion some traction so it can be added. (If the poll shows it is wanted)
     
  4. MadeFromPolygons

    MadeFromPolygons

    Joined:
    Oct 5, 2013
    Posts:
    3,983
    Anyone needing this right now, in the meantime you can do this via scripting pretty easily which is what we do.

    Can be done using Physics.IgnoreLayerCollision.

    A bit of a pain, but at least there is a workaround for now. We just wrap that up in a script that allows us extra functionality such as set all for layer X, unset all for layer X etc, reverse matrix, etc.
     
    Last edited: Oct 3, 2019
    akaBase and Antypodish like this.