Search Unity

HideFlags does not work in Prefab Mode ?

Discussion in 'Prefabs' started by thibouf, May 3, 2019.

  1. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    105
    Hello,

    I am using the HideFlags.DontSaveInEditor flag on objects to spawn some objects in the editor that I do not want to be saved.
    It seems that with the new prefab mode, even with this flag, objects are still serialized.

    Is is something intented ?
    - If no, should I open a bug ?
    - Is yes , is there another way to do what I need (creating objects visible in the prefab mode scene, but not actually saved in the prefab)
     
  2. SteenLund

    SteenLund

    Unity Technologies

    Joined:
    Jan 20, 2011
    Posts:
    639
    Please file a bug report with simple project that reproduces the issue and we will investigate
     
  3. thibouf

    thibouf

    Joined:
    Mar 17, 2017
    Posts:
    105
    Ok done , case 1151418.

    Trying to reproduce on a new project was a a bit tricky, as the bug actually only happen the first time you open an old prefab (pre 2018.3). It seems that during the migration process the flags are lost.