Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 11 Next capture
2021 2022 2023
1 capture
11 Jun 22 - 11 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
0
Question by JonRoss88 · Jul 06, 2015 at 10:40 PM · optimizationprefabssource-control

Why are Prefabs now storing a list of modifications?

Since upgrading to Unity 5.1, I noticed that whenever I make a change to any properties on a prefab, at the end of the prefab file it appears to be keeping a list of all the modifications. I imagine this was added to make resolving source control conflicts easier, but is there a way to disable this to avoid prefabs getting too bloated?

Example (found at end of prefab):

 ...   
 Prefab:    
   m_ObjectHideFlags: 1   
   serializedVersion: 2    
   m_Modification:  
     m_TransformParent: {fileID: 0}  
     m_Modifications:  
     - target: {fileID: 0}  
       propertyPath: weaponName  
       value: Grenade  
       objectReference: {fileID: 0}  
     - target: {fileID: 0}  
       propertyPath: weaponId  
       value: 27  
       objectReference: {fileID: 0}   
 ...
Comment
Add comment · Show 7
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 JonRoss88 · Nov 08, 2015 at 10:26 PM 0
Share

I additionally noticed that after restructuring a prefab and updating object references, this m_$$anonymous$$odification list displays those references as null. Is this something to be concerned about?

avatar image JonRoss88 · Nov 09, 2015 at 06:18 AM 0
Share

I additionally noticed that after restructuring a prefab and updating object references, this m_$$anonymous$$odification list displays those references as null. Is this something to be concerned about?

avatar image tayl0r · Mar 18, 2016 at 06:56 PM 1
Share

There is also a bug with them. If you dupe a prefab, and then change it, the original value is still in this m_$$anonymous$$odification section, so Unity thinks it is a dependancy; a pretty serious bug I$$anonymous$$O. Unity, please let us turn these off or fix this!

avatar image JonRoss88 · Mar 18, 2016 at 07:03 PM 0
Share

@tayl0r We ran into that same problem, as we are parsing prefabs ourselves to search for dependencies on particular effects that are pooled. We now have a tool to clear out this m_$$anonymous$$odification array to avoid this problem, and since I've posted this question in multiple places and never heard anything back.

avatar image jeromelevet · Jun 28, 2016 at 01:10 PM 0
Share

@JonRoss88 hey jon, do you still have your tool clearing m_$$anonymous$$odifications fields? I would be really interested! It create a mess into AssetBundles dependencies.

Show more comments

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

5 People are following this question.

avatar image avatar image avatar image avatar image avatar image

Related Questions

Instantiate many Prefabs / Async Loading 3 Answers

What files are responsible for script components on prefabs? 2 Answers

Unity loading prefabs difficulties. optimization 1 Answer

Do large numbers of stopped particle systems hurt performance? 1 Answer

measuring performance on android 0 Answers


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