Search Unity

Show field in inspector only on particular scene

Discussion in 'Editor & General Support' started by EKO_LX, Apr 16, 2021.

  1. EKO_LX

    EKO_LX

    Joined:
    Dec 25, 2020
    Posts:
    45
    Hi,
    Is it possible to show field in inspector only on particular scenes?
    Let say a script MyScript has a field myFiled. MyScript is used in scenes: Scene1 and Scene2.
    I would like to serialize myField only on scene Scene2.
    Is there some preprocessor or something like that?
     
  2. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    No, but I'm interested in what the use-case of this would be.