HideFlags does not work in Prefab Mode ?

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)

Please file a bug report with simple project that reproduces the issue and we will investigate

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.