Author Topic: The probleam about UISlicedSprite  (Read 3285 times)

shokinhan

  • Guest
The probleam about UISlicedSprite
« 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 !!!!!


adam718

  • Jr. Member
  • **
  • Thank You
  • -Given: 2
  • -Receive: 0
  • Posts: 60
    • View Profile
Re: The probleam about UISlicedSprite
« Reply #1 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.)