Playmaker Forum

PlayMaker Help & Tips => PlayMaker Help => Topic started by: Ingsoc75 on November 16, 2017, 04:00:54 PM

Title: Using objects as buttons
Post by: Ingsoc75 on November 16, 2017, 04:00:54 PM
I've gone through tutorials where I can use a uGUI button to make other objects do things but I can't seem to figure out this:

How can I have an object (like a mesh) be a button to control another object?
Title: Re: Using objects as buttons
Post by: djaydino on November 16, 2017, 05:23:48 PM
Hi,
Can you give a link to the tutorial?

You can find many tutorials here to get to know playmaker :

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

http://www.hutonggames.com/tutorials_game_design_with_playmaker.php
Title: Re: Using objects as buttons
Post by: Ingsoc75 on November 16, 2017, 05:30:33 PM
This one uses a uGUI button to open a door:

https://www.youtube.com/watch?v=aqI7RxBImZM&t=299s (https://www.youtube.com/watch?v=aqI7RxBImZM&t=299s)
Title: Re: Using objects as buttons
Post by: Ingsoc75 on November 17, 2017, 08:11:40 AM
Anybody have an idea on how to do this?
Title: Re: Using objects as buttons
Post by: djaydino on November 17, 2017, 11:49:34 AM
Hi,
You can get the "ugui proxy full" from the Ecosystem (https://hutonggames.fogbugz.com/default.asp?W1181)

or to send an event you can do this :

on the "button component" @ the 'On Click ()' click on +
Then below "Runtime Only" drop in the game object with the fsm that you want to send an event to.

Then Click on "No Function" and select 'PlayMaker FSM/Send Event.
The Below that, place the event name that you want to send.