Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
3
Question by LumpN · Aug 18, 2015 at 06:22 PM · editorprefabversion-control

How to turn off m_Modification for prefabs?

Starting with Unity 5.1 I'm seeing two modifications to the prefab file whenever changing a single field in a prefab. One is the change itself, the other one is something like an undo history of changes being made, I suppose.

Example. I changed frameTimeMean30 from 0 to 10. This is the field:

 MonoBehaviour:
   m_GameObject: {fileID: 100000}
   frameTimeMean30: 10

And later in the same file this is the list of modifications to the prefab:

 Prefab:
   m_Modification:
     m_TransformParent: {fileID: 0}
     m_Modifications:
     - target: {fileID: 0}
       propertyPath: frameTimeMean30
       value: 10
       objectReference: {fileID: 0}
     m_RemovedComponents: []

As you can see it specifically lists a modification to frameTimeMean30 with a new value of 10.

Needless to say I don't need the list of modifications saved to file. It adds zero value, makes diffs harder to read, and merging virtually impossible. How do I turn it off?

I suppose it's a bug introduced with scene saving in Unity 5. http://blogs.unity3d.com/2015/02/17/production-workflow-improvements/ . My best guess is it supposed to save scene specific modifications of prefab instances. Perhaps even prefab specific changes of child prefabs. But it's doing the same thing for the root prefab too.

Comment
Add comment · Show 1
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users
avatar image tayl0r · Mar 18, 2016 at 06:54 PM 0
Share

Yes, I wish you could turn these off. They also cause Unity to think that a prefab will have dependencies on things you removed/changed, since they still show up in the m_$$anonymous$$odifications section. You have to actually go into the prefab and delete that section manually. It's awful.

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

Can I safely put a prefab asset into version control with Unity Free? 3 Answers

Can I change a prefab without changing the scene? 3 Answers

Why do prefabbed meshes go missing whenever I pull an update from Unity Collab? 0 Answers

Change angle of camera in prefab preview 1 Answer

How Mark Prefab Dirty? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges