Tasharen Entertainment Forum

Support => NGUI 3 Support => Topic started by: Alan Gray on May 14, 2012, 10:36:51 PM

Title: events in UITexture
Post by: Alan Gray on May 14, 2012, 10:36:51 PM
I'm in the process of converting a bunch of UIImageButtons over to UITextures. The UIImageButtons were basically just thumbnails that, when clicked, would open a panel with the full size image. But these images are large and there a lots of them - so we decided to not put them in multiple atlases and use SimpleTextures instead. The thumbnails are in a draggable panel, so my structure looks like:

Panel
  Grid
    Cell1
      Texture1
    Cell2
      Texture2
    ...
    Cell63
      Texture63

My question is; how can I get the OnClick or OnPress events for the UITextures?
Title: Re: events in UITexture
Post by: Alan Gray on May 14, 2012, 10:43:51 PM
Never mind. The zero size collision box bit me again.  :-[
Getting events now with a valid BoxCollider.
Title: UITexture
Post by: stanish on September 02, 2012, 11:56:24 PM
when i click button how i call my own texture please help me?