Author Topic: Label in columns  (Read 3062 times)

Galahad_druid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Label in columns
« on: July 29, 2012, 03:01:54 PM »
Good afternoon.

It is possible to make Label's extra lines(those after the specified value of Line Count) be organized into a new column?

What I'm trying to do is an e-book for iPads and Android Tabs. I'm using the Example 7 as a starting point since the dragging control and momentum really fits with I'm trying to achieve.

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Label in columns
« Reply #1 on: July 29, 2012, 07:30:33 PM »
You'll have to code the logic for that.

Galahad_druid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Label in columns
« Reply #2 on: July 29, 2012, 07:38:48 PM »
Surely,

But which logic could work better?

Saving the extra characters in another string and instantiate a new GameObject with UILabel component, applying the saved string into it?

Or the characters could be repositioned in the same Label?

Or this entire idea is less efficient than just making several Labels and placing them myself?

What do you say guys?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: Label in columns
« Reply #3 on: July 29, 2012, 07:44:16 PM »
It will need to be a new label. It will all be in the same draw call regardless. Using multiple labels will just make it easier.

Galahad_druid

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 4
    • View Profile
Re: Label in columns
« Reply #4 on: July 29, 2012, 08:10:49 PM »
Thanks,

I'll be trying tomorrow, if succeeds I'll be posting it.