Author Topic: NGUI ScrollView and NGUI Button Message  (Read 2810 times)

LiLith

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
NGUI ScrollView and NGUI Button Message
« on: January 22, 2014, 09:53:33 PM »
Hello! I'm new in NGUI. I have some question.

my Hierarchy

+panel(Map) (NGUI Panel, NGUI ScrollView)
+-- Map (UISprite, UIDragScrollView )
  +-- FlagButton(Clone) (NGUIButton Message, uiButton(but not use)


I have problem with flag button(UIButtonMessage) if I AddChild in Map by script I Can't use buttonMessage for debug when I click. but if I add child in map, I can use button message for debug.

Could you help me?
I'm sorry about my english. I'm beginner.

LiLith

  • Newbie
  • *
  • Thank You
  • -Given: 0
  • -Receive: 0
  • Posts: 2
    • View Profile
Re: NGUI ScrollView and NGUI Button Message
« Reply #1 on: January 22, 2014, 10:54:08 PM »
ok I can fix it.

because depth in uiSprite in flag button. I don't know why but I use SetActiveRecursively instead depth.

If you guys has any idea please share It. Thanks  ;)