Author Topic: about UITextrue in NGUI v2.1.4  (Read 4285 times)

playmaker86

  • Guest
about UITextrue in NGUI v2.1.4
« on: August 08, 2012, 04:58:06 AM »
HI, ArenMook

I Used New UITexture for My BackGround Image. Image has Alpha.

Defalut Shader doesn't except Alpha Value. So, I Change the Shader to Unlit - Transparent Colored.

However, I Play My UnityProejct and then I Saw this Error Message.....

ArgumentException: GUILayout: Mismatched LayoutGroup.Repaint
UnityEngine.GUILayoutUtility.BeginLayoutGroup (UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options, System.Type LayoutType)
UnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUIContent content, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options)
UnityEngine.GUILayout.BeginHorizontal (UnityEngine.GUILayoutOption[] options)
UnityEditor.EditorGUILayout.ObjectField (System.String label, UnityEngine.Object obj, System.Type objType, Boolean allowSceneObjects, UnityEngine.GUILayoutOption[] options)
UITextureInspector.OnDrawProperties () (at Assets/NGUI/Scripts/Editor/UITextureInspector.cs:44)
UIWidgetInspector.OnInspectorGUI () (at Assets/NGUI/Scripts/Editor/UIWidgetInspector.cs:49)
UnityEditor.InspectorWindow.DrawEditors (Boolean isRepaintEvent, UnityEditor.Editor[] editors, Boolean eyeDropperDirty)
UnityEditor.InspectorWindow.OnGUI ()
System.Reflection.MonoMethod.Invoke (System.Object obj, BindingFlags invokeAttr, System.Reflection.Binder binder, System.Object[] parameters, System.Globalization.CultureInfo culture)

What's my Problem????

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: about UITextrue in NGUI v2.1.4
« Reply #1 on: August 08, 2012, 01:33:13 PM »
Default shader doesn't accept alpha? Alpha is a part of the widget's color tint. There was no need to change anything.

Edit: oh you mean you switched the shader... I just tried that and it works fine for me.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: about UITextrue in NGUI v2.1.4
« Reply #2 on: August 09, 2012, 12:48:10 AM »
Looks like this bug was introduced in Unity 3.5.5.

Nexic

  • Guest
Re: about UITextrue in NGUI v2.1.4
« Reply #3 on: August 30, 2012, 07:16:50 AM »
Getting the same problem. Any chance of a fix?

PhilipC

  • Guest
Re: about UITextrue in NGUI v2.1.4
« Reply #4 on: August 30, 2012, 11:29:28 AM »
If its a issue with Unity not sure there is anything we can do but can take a look for sure.