Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: shokinhan on April 26, 2013, 07:48:38 AM

Title: The probleam about UISlicedSprite
Post by: shokinhan on April 26, 2013, 07:48:38 AM
The UISlicedSprite are not be used in  the version of  NGUI 2.51 ?

I find the UISliceSprite are error ,eg :
   void SlicedFill (BetterList<Vector3> verts, BetterList<Vector2> uvs, BetterList<Color32> cols)
{
      Color colF = color;
      colF.a *= mPanel.alpha;
      Color32 col = atlas.premultipliedAlpha ? NGUITools.ApplyPMA(colF) : colF;
}

The variable "mPanel" is null !!!!!

Title: Re: The probleam about UISlicedSprite
Post by: adam718 on April 26, 2013, 10:26:59 AM
- UISlicedSprite, UIFilledSprite, ... are intergrated to UISprite. see change log in 2.5.1.
- "mPanel null error" can be fixed when you remove UIPanel component and add it again in hierachy.
I think it occurs for order of component (I don't know exactly.)