I’m using following code to modify some prefabs.
I get changes in m_textInfo.characterCount, m_textInfo.wordCount and few others.
Values are set to zero.
When I open prefab manually and change something, I get back original values.
This is issue, because it causes VCS noise and it’s harder to track actual changes.
Is it necessary to serialize these values? Aren’t they recalculated automatically?
PrefabRoot = PrefabUtility.LoadPrefabContents(assetPath);
// Do some modifications
PrefabUtility.SaveAsPrefabAsset(PrefabRoot, assetPath);
PrefabUtility.UnloadPrefabContents(PrefabRoot);