playMaker

Author Topic: How to get value when button was touched  (Read 2370 times)

rik

  • Full Member
  • ***
  • Posts: 246
How to get value when button was touched
« on: May 04, 2015, 11:28:35 PM »
i need action for unity 4.6 which give some value when button was on pressed state

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to get value when button was touched
« Reply #1 on: May 05, 2015, 04:26:50 AM »
Hi,

 You can use the Pointer Proxy to listen to the raw pointer events.

You can get this proxy as part of the Ugui package:

https://hutonggames.fogbugz.com/default.asp?W1192

You'll find on the Ecosystem some uGUi samples, this will show you how to use the pointer proxy:

 Bye,

 Jean

rik

  • Full Member
  • ***
  • Posts: 246
Re: How to get value when button was touched
« Reply #2 on: May 05, 2015, 01:55:26 PM »
is it recommended for use on mobile too since it was using the pointer i thing it was heavy on mobile

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: How to get value when button was touched
« Reply #3 on: May 06, 2015, 01:32:34 PM »
Hi,

 Where did you read that it was heavy on mobile? the new UI is made from the ground up to work on mobile, so I am quite confident it's totally suitable.

Bye,

 Jean

rik

  • Full Member
  • ***
  • Posts: 246
Re: How to get value when button was touched
« Reply #4 on: May 06, 2015, 01:34:53 PM »
nice to see it work good on mobile too