Search Unity

HideFlags.DontSave Causes Scene to crash Unity on load

Discussion in 'Editor & General Support' started by KJoanette, Aug 9, 2013.

  1. KJoanette

    KJoanette

    Joined:
    Jun 8, 2013
    Posts:
    59
    I have an object that generates child objects when things are changed in the script. These are strictly generated objects which I do not want saved in the scene. So I added the HideFlags.DontSave flag to them.

    However, the parent is still saving an entry in it's transform children of NULL for them. This crashes Unity the instant I try to load that scene in the editor.

    Is there a workaround?
     
  2. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    Can you raise a bug for this so i can take a look?
     
  3. KJoanette

    KJoanette

    Joined:
    Jun 8, 2013
    Posts:
    59
    Done, although you will probably find it under a different e-mail address (my production one).

    Wow, sorry for the terribly formatted bug. I should read next time.
     
  4. Tim-C

    Tim-C

    Unity Technologies

    Joined:
    Feb 6, 2010
    Posts:
    2,225
    When you get the bug# can you write it here?
     
  5. numberkruncher

    numberkruncher

    Joined:
    Feb 18, 2012
    Posts:
    953
    A wild stab in the dark, but would this occur if you had savable game objects nested within non-savable ones?
     
  6. KJoanette

    KJoanette

    Joined:
    Jun 8, 2013
    Posts:
    59
    I had the same thought. I do in fact have nested objects like that. So when I had that thought I marked those objects non-saveable as well.
     
  7. KJoanette

    KJoanette

    Joined:
    Jun 8, 2013
    Posts:
    59

    556660