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
11
Question by Logopolis · Nov 02, 2016 at 01:22 AM · mergeversion-controlversion controlmerging

Why are m_SizeDelta and m_AnchoredPosition values changing in scene file for no reason, complicating merge?

I'm using UnityYAMLMerge with a version control system, and it works great, but it has exposed the fact that many m_SizeDelta and m_AnchoredPosition values in my scene are changing spontaneously, without my making the changes.

For example, I edit one object's x position and then save the scene. My coworker starts from the same version of the scene file I started with, and also edits one object's position. When we then attempt to merge our changes, UnityYAMLMerge shows us that besides the changes we made, there are many (usually eg. 45-200) objects in the scene file whose m_SizeDelta and/or m_AnchoredPosition values have changed (to different, conflicting values). For the most part the values have changed by a small amount, less than 1.0, but some show larger changes.

These spontaneous changes produce dozens of conflicts that we then need to resolve manually, making the process of merging a simple change in a scene file very time consuming.

Any idea why these m_SizeDelta and m_AnchoredPosition values are changing, and how to prevent it?

Comment
Add comment · Show 5
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 James_FallenTreeGames · Nov 30, 2016 at 07:36 AM 0
Share

I'm having the same issue. One of our $$anonymous$$m saves a scene file, I reload it and instantly it's being marked that's something changed. I save the scene, look at the changes in a diff program (P4$$anonymous$$erge), and a whole host of m_SizeDelta + m_AnchoredPosition have changed.

It's very annoying, as like you say, it makes merging much more difficult (and people are saving + checking in the scene more often than needed)

avatar image jashan James_FallenTreeGames · Jun 04, 2017 at 01:07 PM 0
Share

I've moved your comment from "answer" to the comment section because it actually does not answer the question.

That said: I'm having the same issue and it is very annoying.

avatar image mabakay · Dec 13, 2016 at 09:39 AM 0
Share

I've got same problem here.

avatar image vertexxx · Apr 11, 2017 at 12:48 PM 0
Share

Same problem here. It occurs since I updated from 5.3 to 5.6. Very annoying :(

avatar image jashan · Jun 04, 2017 at 01:12 PM 0
Share

Have you filed this as a bug report with UT? See the answer by Logopolis and my comment to that answer for some more details that may help creating repro-steps for the issue. $$anonymous$$ost likely, it is an issue with Layout Groups, Content Size Fitters and serialization ... but it still is something that I would consider a bug.

2 Replies

· Add your reply
  • Sort: 
avatar image
3

Answer by Logopolis · Dec 01, 2016 at 10:36 PM

What I've gathered from looking through my scene file is that the gameobjects having their m_SizeDelta and m_AnchoredPosition changed automatically are those that are having their position and/or size set automatically due to being children of an object that has a Vertical (or Horizontal) Layout Group component, and a Content Size Fitter component.

Still don't know why it's changing these values between saves of the scene file (when I am not altering those objects at all between saves), or how to prevent it from doing so.

Comment
Add comment · Show 5 · Share
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 jashan · Jun 04, 2017 at 01:10 PM 0
Share

It does seem to be related to an issue I have seen with prefabs that use Layout Groups or Content Size Fitters: Often, those have those values stored as "0" in the prefab, so when you add the prefab to the scene, you may have to first change those values.

What I'm seeing, and what is very annoying, is that in our scenes, those values bounce from "0" to the "correct" value. So, I could save the change and commit while the "correct" values are there - but the next time that I open the scene, it might change them back to "0" and make the scene dirty / marked as changed in VC again. When this happens seems to be fairly random.

avatar image arielsan jashan · Jun 04, 2017 at 11:41 PM 0
Share

It may be a bug, are you working with latest Unity? btw, are you using a CanvasScaler? maybe you are chaning the game view (or have different game views in different machines) and the Canvas is updating itself based on that.

avatar image mabakay arielsan · Jun 05, 2017 at 05:17 AM 0
Share

(or have different game views in different machines)

Of course each one of $$anonymous$$m members has different editor layout. Hello, we are in XXI century.

Show more comments
avatar image
1

Answer by jjoseph_ludia · Jun 09, 2017 at 05:17 PM

The following article describes a possible fix:

https://support.unity3d.com/hc/en-us/articles/215620303?input_string=ui+adjustments+dirtying+the+scene

Comment
Add comment · Share
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

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

64 People are following this question.

avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image avatar image

Related Questions

Git Version Control Merging 1 Answer

How to integrate a new version control plugin into Unity? 0 Answers

Edit->Project Settings->Editor Perforce Greyed Out 1 Answer

Git and Unity not working correctly: missing components, textures, materials, etc. 2 Answers

How to fix /Library/ conflicts in GitHub repo for Unity project? 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