playMaker

Author Topic: User Layer don't work with Mouse Pick  (Read 3328 times)

Megisto

  • Playmaker Newbie
  • *
  • Posts: 28
User Layer don't work with Mouse Pick
« on: April 28, 2012, 05:54:35 AM »
Layer mask in "mouse pick" action works with builtin layer, but it don't work with User Layer.

Is it a Know issue or i am missing something?

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: User Layer don't work with Mouse Pick
« Reply #1 on: April 28, 2012, 06:19:10 PM »
I just tried this and it worked fine... Can you post a screenshot?

Megisto

  • Playmaker Newbie
  • *
  • Posts: 28
Re: User Layer don't work with Mouse Pick
« Reply #2 on: April 29, 2012, 03:12:43 AM »
I just changed the logic using "tags" instead of layer", but this is my workflow:

Add "mouse pick" and set layer mask to 1.
In Element 0 i add a layer.
In User Layer 8 i add "MyLayer".
I change th Terrain layer to MyLayer.
Play.
The mouse can't pick, and it return always coords 0,0,0.


Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: User Layer don't work with Mouse Pick
« Reply #3 on: April 29, 2012, 09:05:54 AM »
Element 0 should say MyLayer.

From your steps it sounds like it's blank...?

Megisto

  • Playmaker Newbie
  • *
  • Posts: 28
Re: User Layer don't work with Mouse Pick
« Reply #4 on: April 29, 2012, 11:47:11 AM »
Yes, sorry, Element 0 say MyLayer. Picking this way gives always coords 0,0,0.
Instead if i select one of the bultin layer it can pick the right coordinates.

I found a workaround for this, using tags instead of layer. Just trying to figured out why it won't work.

Alex Chouls

  • Administrator
  • Hero Member
  • *****
  • Posts: 4000
  • Official Playmaker Support
    • LinkedIn
Re: User Layer don't work with Mouse Pick
« Reply #5 on: May 01, 2012, 01:52:08 AM »
Can you send me a small sample scene that doesn't work. I can't repro the problem here.

EDIT: Actually you'll probably need to zip the project to keep the User Layers...

Megisto

  • Playmaker Newbie
  • *
  • Posts: 28
Re: User Layer don't work with Mouse Pick
« Reply #6 on: May 03, 2012, 06:37:36 PM »
Since i changed the logic of my scene using tags instead of layers i don't have a scene ready. But i'll produce one as soon as i can.

Thank you for your help.