Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Dismiss Notice

Apply Prefab in Playmode works now and is killing me!

Discussion in 'Editor & General Support' started by PhilippG, Dec 1, 2016.

  1. PhilippG

    PhilippG

    Joined:
    Jan 7, 2014
    Posts:
    257
    Hello!

    Seems there has been a change in how serialization works and suddenly it is possible to Apply changes to prefabs in playmode. This might sound good but actually it is such a hell. I tend to apply and save changes very often, so its already muscle memory. I have some extremely complex prefabs, whole applications basically, including UI etc. (Because that is how I can be sure everything stays in place when artists revisit and modify scenes)
    Now whenever I accidentally apply in playmode, it potentially destroys hours of work because it applys that very state of the application and I need to revert the whole damn prefab file.

    So please! Add a toggle or something that prevents accidentally clicking apply in playmode at least!
     
  2. SaraCecilia

    SaraCecilia

    Joined:
    Jul 9, 2014
    Posts:
    675
    I've sent this thread over to the UX team, thanks for the feedback and sorry to hear about the frustration this is causing!
     
    PhilippG likes this.
  3. PhilippG

    PhilippG

    Joined:
    Jan 7, 2014
    Posts:
    257
    Great, Thank you! :)
     
  4. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    You could utilise source control more effectively, then you can simply revert your prefab changes on disk back to what they were.
     
  5. zoran404

    zoran404

    Joined:
    Jan 11, 2015
    Posts:
    520
    Usually people commit changes only after they are done working on something, since it's stupid to have nonfunctional files on the repo.

    I'd also like a toggle button for this option.
     
    PhilippG likes this.
  6. PhilippG

    PhilippG

    Joined:
    Jan 7, 2014
    Posts:
    257
    Yep, I do usually only commit when work is done
     
  7. Gizmoi

    Gizmoi

    Joined:
    Jan 9, 2013
    Posts:
    327
    People commit whenever they want. You normally only push or merge to the mainline when work is done.
    Committing locally is an excellent way to 'checkpoint' incremental changes and gives you something to roll back to.
     
  8. PhilippG

    PhilippG

    Joined:
    Jan 7, 2014
    Posts:
    257
    Yes, I'd love to do so, but we're on SVN, theres no local commit option -_-
     
    Gizmoi likes this.