Search Unity

How can I collapse/fold in a script in the editor by code?

Discussion in 'Editor & General Support' started by Grivas_Publications, Aug 26, 2020.

  1. Grivas_Publications

    Grivas_Publications

    Joined:
    Aug 26, 2020
    Posts:
    7
    Hello, I am adding 3 scripts to a gameobject in the editor by code.
    I would like the first two to be collapsed/folded in by default.
    Is this possible?

    Thanks.
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,908
    I don't think it's possible. You mean collapsed in the inspector?