Author Topic: How to create content of UITable by coding?  (Read 2701 times)

xiaoniaojjj

  • Full Member
  • ***
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 140
    • View Profile
How to create content of UITable by coding?
« on: September 21, 2012, 04:22:42 AM »
I saw your example "Example 9 - Quest Log" , I want to add a "Quest 1" to UItable by code, how to do ?

ArenMook

  • Administrator
  • Hero Member
  • *****
  • Thank You
  • -Given: 337
  • -Receive: 1171
  • Posts: 22,128
  • Toronto, Canada
    • View Profile
Re: How to create content of UITable by coding?
« Reply #1 on: September 21, 2012, 08:21:36 AM »
There is no quest system to go with that example. It's just a UI layout example. Make a prefab for what a single row should look like, then NGUITools.AddChild that prefab to the UITable.