Author Topic: events in UITexture  (Read 2571 times)

Alan Gray

  • Guest
events in UITexture
« 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?

Alan Gray

  • Guest
Re: events in UITexture
« Reply #1 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.

stanish

  • Guest
UITexture
« Reply #2 on: September 02, 2012, 11:56:24 PM »
when i click button how i call my own texture please help me?