Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.


Messages - Lagrange

Pages: [1]
1
I'll try that, and submit back here if I get a response

2
  1. 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:
  1. GameObject:
  2.   m_ObjectHideFlags: 1
  3.   m_PrefabParentObject: {fileID: 0}
  4.   m_PrefabInternal: {fileID: 100100000}
  5.   serializedVersion: 4
  6.   m_Component:
  7.   - 4: {fileID: 400514}
  8.   - 114: {fileID: 11400572}
  9.   - 54: {fileID: 5400024}
  10.  [b] - 114: {fileID: 11400594}[/b]
  11.   m_Layer: 8
  12.   m_Name: ScrollPanel
  13.   m_TagString: Untagged
  14.   m_Icon: {fileID: 0}
  15.   m_NavMeshLayer: 0
  16.   m_StaticEditorFlags: 0
  17.   m_IsActive: 1

and adds the below section describing that component:
  1. --- !u!114 &11400594
  2. MonoBehaviour:
  3.   m_ObjectHideFlags: 1
  4.   m_PrefabParentObject: {fileID: 0}
  5.   m_PrefabInternal: {fileID: 100100000}
  6.   m_GameObject: {fileID: 100514}
  7.   m_Enabled: 1
  8.   m_EditorHideFlags: 0
  9.   m_Script: {fileID: 0}
  10.   m_Name:
  11.   m_EditorClassIdentifier:
  12.   movement: 1
  13.   dragEffect: 2
  14.   restrictWithinPanel: 1
  15.   disableDragIfFits: 0
  16.   smoothDragStart: 1
  17.   iOSDragEmulation: 1
  18.   scrollWheelFactor: .25
  19.   momentumAmount: 35
  20.   horizontalScrollBar: {fileID: 0}
  21.   verticalScrollBar: {fileID: 11400584}
  22.   showScrollBars: 1
  23.   customMovement: {x: 1, y: 0}
  24.   contentPivot: 0
  25.   scale: {x: 0, y: 0, z: 0}
  26.   relativePositionOnReset: {x: 0, y: 0}

3
NGUI 3 Support / Re: UILabel text spacing bugged on Android
« on: May 07, 2014, 12:28:52 AM »
Dynamic fonts = Unity. Their dynamic font system is horribly bugged and was, like many other features, left unfinished. Dynamic fonts provide no kerning information at all. I advise avoiding dynamic fonts if possible. Use NGUI bitmap fonts. They look predictably on all platforms. You can create them from the Font Maker.

Also, for an outline effect like that select the bitmap font and add an outline (bake it). Doing it by choosing a label option means the text is drawn 5 times instead of once.

Thanks for the reply and the advice.  I'll try this out and report back if I still have any issues.

4
NGUI 3 Support / UILabel text spacing bugged on Android
« on: May 06, 2014, 08:26:56 PM »
I'm seeing kearning problems when I port my build to android:



I'm using regular Arial font with an outline.  I get the same results whether I use the built in unity font or an NGUI dynamic font.

Any advice? I've tried searching around for this, but I haven't found anything helpful.

Pages: [1]