Author Topic: Slice and tiled testure in sprite  (Read 3918 times)

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Slice and tiled testure in sprite
« on: December 02, 2013, 09:18:56 AM »
Hello

I want 9 slice sprite and tiled top, bottom, left, right sides and center. How to do it?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #1 on: December 02, 2013, 09:27:48 AM »

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #2 on: December 03, 2013, 12:23:14 AM »
and where is UISlicedSprite in NGUi 3.0.5 ?

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #3 on: December 03, 2013, 01:13:42 AM »
Using UISprite instead UISlicedSprite. But, i have many error. What this displayColor.

Errors:
UISlicedTiledSprite.cs(38,24): error CS1502: The best overloaded method match for `BetterList<UnityEngine.Color>.Add(UnityEngine.Color)' has some invalid arguments
UISlicedTiledSprite.cs(38,28): error CS0103: The name `displayColor' does not exist in the current context
UISlicedTiledSprite.cs(38,24): error CS1503: Argument `#1' cannot convert `object' expression to type `UnityEngine.Color'

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #4 on: December 03, 2013, 01:51:43 AM »
How work with class?

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #5 on: December 03, 2013, 02:03:19 AM »
This script don't work (
i'm create SlicedTiledSpriteEditor, insert component in widget. He don't tiled texture (

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #6 on: December 03, 2013, 09:09:43 AM »
Essentially, you just need to remake it inside the UISprite class the way that the new Sliced,filled etc are made. I think I need to use this for a project too, so I'll have a look at it later tonight.

Romano

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 32
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #7 on: December 04, 2013, 01:14:12 AM »
Nicki: How are you getting along?

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile
Re: Slice and tiled testure in sprite
« Reply #8 on: December 04, 2013, 01:52:07 PM »
Haven't had time, but I'm looking at it right now.

Nicki

  • Global Moderator
  • Hero Member
  • *****
  • Thank You
  • -Given: 33
  • -Receive: 141
  • Posts: 1,768
    • View Profile