You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Fix bug when doing a UnityDataTool analysis on Megacity project.
Two sharedAsset files had this error.
"System.Exception: Unsupported ManagedReferenceRegistry version 1001"
This is because of complexities in the TypeTress for ManagedReferenceRegistry,
The registry always exists at the top level. So we have to ignore any that we find when
traversing the contents of the ManagedReferenceRegistry.
The fix matches the binary2text implementation, and i did side by side comparison of the previously problematic object data to confirm.
Binary2Text output:
references (ManagedReferencesRegistry)
version 2 (int)
rid -2 (class: , ns: , asm: )
rid 1000 (class: VisualElement/UxmlSerializedData, ns: UnityEngine.UIElements, asm: UnityEngine.UIElementsModule)
UxmlSerializedData
uxmlAssetId -993838062 (int)
name "main-menu-container" (string)
name_UxmlAttributeFlags 1 (UInt8)
...
dataSourceTypeString_UxmlAttributeFlags 0 (UInt8)
bindings (UxmlSerializedData)
size 0 (int)
bindings_UxmlAttributeFlags 0 (UInt8)
rid 1001 (class: VisualElement/UxmlSerializedData, ns: UnityEngine.UIElements, asm: UnityEngine.UIElementsModule)
UxmlSerializedData
uxmlAssetId 76538276 (int)
name "menu-panel" (string)
name_UxmlAttributeFlags 1 (UInt8)
enabledSelf 0 (UInt8)
UnityDataTool output after fix:
references (ManagedReferencesRegistry)
version (int) 2
rid(-2) ReferencedObject
type (ReferencedManagedType)
class (string)
ns (string)
asm (string)
data ReferencedObjectData
null
rid(1000) ReferencedObject
type (ReferencedManagedType)
class (string) VisualElement/UxmlSerializedData
ns (string) UnityEngine.UIElements
asm (string) UnityEngine.UIElementsModule
data ReferencedObjectData
uxmlAssetId (int) -993838062
name (string) main-menu-container
name_UxmlAttributeFlags (UInt8) 1
...
dataSourceTypeString_UxmlAttributeFlags (UInt8) 0
bindings (UxmlSerializedData)
Array<managedRefArrayItem>[0]
bindings_UxmlAttributeFlags (UInt8) 0
rid(1001) ReferencedObject
type (ReferencedManagedType)
class (string) VisualElement/UxmlSerializedData
ns (string) UnityEngine.UIElements
asm (string) UnityEngine.UIElementsModule
data ReferencedObjectData
uxmlAssetId (int) 76538276
name (string) menu-panel
name_UxmlAttributeFlags (UInt8) 1
enabledSelf (UInt8) 0
0 commit comments