The file
"MemoryStream" is corrupted
! Remove it and launch unity again
! [Position
out of bounds
! 20 > 16]
I've been getting the above error when trying to load Unity, and I've tracked down the cause to UIScrollView and UIDragScrollView. When simply put into the UI and reloading the scene, those components work fine. When I apply prefab to that UI and reload, I get the above error. If I remove those two scripts, apply prefab, and reload, I can load the scene successfully.
I've read that this might only happen if version control is set to "Force Text", which I need to have for Git.
After removing both components and getting my scene into working order (and backed up), I've tried right clicking my UIPanel and attaching scroll view. After doing this and applying the prefab, reloading will give this error.
*edit* some additional info:
Here's some of the info from the actual prefab file. Adding the scroll view component changes the gameObject to add the (bolded)component line:
GameObject:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
serializedVersion: 4
m_Component:
- 4: {fileID: 400514}
- 114: {fileID: 11400572}
- 54: {fileID: 5400024}
[b] - 114: {fileID: 11400594}[/b]
m_Layer: 8
m_Name: ScrollPanel
m_TagString: Untagged
m_Icon: {fileID: 0}
m_NavMeshLayer: 0
m_StaticEditorFlags: 0
m_IsActive: 1
and adds the below section describing that component:
--- !u!114 &11400594
MonoBehaviour:
m_ObjectHideFlags: 1
m_PrefabParentObject: {fileID: 0}
m_PrefabInternal: {fileID: 100100000}
m_GameObject: {fileID: 100514}
m_Enabled: 1
m_EditorHideFlags: 0
m_Script: {fileID: 0}
m_Name:
m_EditorClassIdentifier:
movement: 1
dragEffect: 2
restrictWithinPanel: 1
disableDragIfFits: 0
smoothDragStart: 1
iOSDragEmulation: 1
scrollWheelFactor: .25
momentumAmount: 35
horizontalScrollBar: {fileID: 0}
verticalScrollBar: {fileID: 11400584}
showScrollBars: 1
customMovement: {x: 1, y: 0}
contentPivot: 0
scale: {x: 0, y: 0, z: 0}
relativePositionOnReset: {x: 0, y: 0}