- Home /
Prefab keeps changing when I run the scene
So I'm trying to keep everything as modular as possible to prevent unnecessary conflicts when people are working on different stuff. The problem is that every once in a while when I test a scene in the editor, a couple of the prefabs get changed.
I was curious what was causing this, so I ran the binary2text tool on the prefabs from before and after. The only changes I saw was a reordering of a couple of objects in the DataTemplate section. Upon further investigation it looks like all the moved items seem to refer to pairs of Mesh Filters and Renderers.
Here's a copy of the changed part of the prefab-to-text file.
ID: 100100000 DataTemplate
m_LastMergeIdentifier 7d6a2d7a08462e94c93332af9342c1ba (GUID)
m_Objects (set)
size 22 (SInt32)
data (file 0 path 100000) (PPtr<EditorExtension>)
data (file 0 path 100008) (PPtr<EditorExtension>)
data (file 0 path 100006) (PPtr<EditorExtension>)
data (file 0 path 100004) (PPtr<EditorExtension>)
data (file 0 path 100002) (PPtr<EditorExtension>)
data (file 0 path 11400000) (PPtr<EditorExtension>)
data (file 0 path 400000) (PPtr<EditorExtension>)
data (file 0 path 3300000) (PPtr<EditorExtension>)
data (file 0 path 6500000) (PPtr<EditorExtension>)
data (file 0 path 2300000) (PPtr<EditorExtension>)
data (file 0 path 400008) (PPtr<EditorExtension>)
data (file 0 path 400004) (PPtr<EditorExtension>)
data (file 0 path 400002) (PPtr<EditorExtension>)
data (file 0 path 400006) (PPtr<EditorExtension>)
data (file 0 path 3300008) (PPtr<EditorExtension>)
data (file 0 path 2300008) (PPtr<EditorExtension>)
data (file 0 path 3300004) (PPtr<EditorExtension>)
data (file 0 path 2300004) (PPtr<EditorExtension>)
data (file 0 path 3300002) (PPtr<EditorExtension>)
data (file 0 path 2300002) (PPtr<EditorExtension>)
data (file 0 path 3300006) (PPtr<EditorExtension>)
data (file 0 path 2300006) (PPtr<EditorExtension>)
m_Father (file 0 path 0) (PPtr<DataTemplate>)
m_IsDataTemplate 1 (bool)
m_ObjectHideFlags 1 (UInt32)
m_ExtensionPtr (file 0 path 100100001) (PPtr<EditorExtensionImpl>)
m_Name "New Prefab" (string)
The last 8 values in the m_Objects were reordered as follows
3300008 -> 3300004
2300008 -> 2300004
3300004 -> 3300006
2300004 -> 2300006
3300002 -> 3300002
2300002 -> 3300002
3300006 -> 3300008
2300006 -> 2300008
Your answer
Follow this Question
Related Questions
Display one of prefab child 1 Answer
How to create a deep copy of a Prefab? 1 Answer