playMaker

Author Topic: MousePick action doesn't work  (Read 2790 times)

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
MousePick action doesn't work
« on: September 08, 2013, 01:55:09 AM »
Hello,

I'm using Unity 4.1.5f1, and I updated PlayMaker version up to 1.7.3f1. (Previously I used 1.5.7f2 for last project.)

When I was trying to use 'Mouse Pick Event' action, it didn't work at all.
Here is the process what I did.

1. Created 'Cube' on the scene. (Box Collider is applied.)
2. Added FSM on 'Cube'
3. Put 'MousePickEvent' action on 'State 1'.
4. Put 'Click' Events in 'Mouse Down' option.

5. Created another State for event node as 'State 2'
6. Linked 'Click' event to 'State 2'
7. Added 'Finished' event on 'State 2' and linked to 'State 1'

This simple Button worked well on previous PlayMaker version, but when I installed latest version, it doesn't work at all.

Perhaps I missed somewhere, but when I looked on my previous project that used old PlayMaker version 1.5.4, states worked at same object. Is this bug? Or Unity Version and PlayMaker Version corrupted each other?


Sang Hee.
 
« Last Edit: September 08, 2013, 01:58:38 AM by neowings »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: MousePick action doesn't work
« Reply #1 on: September 08, 2013, 08:01:26 AM »
So the click event is not sent?
Is the camera within 100 units of the cube? Try increasing the ray distance.
Are there any other colliders between the camera and the cube?

neowings

  • Playmaker Newbie
  • *
  • Posts: 25
Re: MousePick action doesn't work
« Reply #2 on: September 08, 2013, 09:53:34 AM »
Hi Alex,

As you see the screenshot, the button located left side of screen,
it is near the camera that within 100 units, and no collision objects between them.

I solved it with tricky way, but still PlayMaker 1.7.3 looks doesn't work well with Unity 4.1.5.
: first, import PlayMaker 1.5.7 and made 'Cube' Button -> worked well.
Second, Update PlayMaker via Unity Asset Store.
-> Now "MousePickEvent" action works.

Problem, 'Collision Event' is not working now. :(
The object with Trigger collider doesn't catch any objects, and it doesn't send any events.

I think using 1.7.3 later on my Unity version. I posted I'd like to download 1.6.1 version, and test on Unity 4.1.5 to check actions are O.K.

http://hutonggames.com/playmakerforum/index.php?topic=4905.0

Kindly, Alex replied on my post. I will send e-mail with the invoice.
By the way, Where can I find your e-mail address?

Thank you! Alex.
 

« Last Edit: September 08, 2013, 09:57:50 AM by neowings »

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4002
  • Official Playmaker Support
    • LinkedIn
Re: MousePick action doesn't work
« Reply #3 on: September 08, 2013, 12:36:50 PM »
Click on my name next to this post to get my email address.

blackant

  • Hero Member
  • *****
  • Posts: 521
  • http://blackantmaster.com
    • blackantmaster.com
Re: MousePick action doesn't work
« Reply #4 on: December 01, 2013, 06:04:46 AM »
have you solved you problem this way ?

i'm trying to use this event to, but it doesn't respond.

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 15500
  • Official Playmaker Support
Re: MousePick action doesn't work
« Reply #5 on: December 01, 2013, 01:36:44 PM »
Hi,

 You need a collider on the gameobject for this to work. Can you double check?

bye,

 jean