playMaker

Author Topic: Mouse Pick Event Over not seeing object sometimes  (Read 1660 times)

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 20
Mouse Pick Event Over not seeing object sometimes
« on: March 21, 2019, 06:53:31 PM »
So unless I find the "perfect spot" for a mouse over even it never sees it. The FSM is on my "player" which a "tagged Main Camera" is attached to. The object is in the correct layer as well.

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #1 on: March 21, 2019, 06:58:40 PM »
Hi,
Maybe the ray distance is to short (5)?

Athin

  • Full Member
  • ***
  • Posts: 163
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #2 on: March 21, 2019, 08:32:57 PM »
Hey there,

If I'm looking at it right, you have that inverted mask checked off.  That will make it ignore anything with that layer on it.

 

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #3 on: March 22, 2019, 12:46:37 PM »
I've tried setting the raycast high and low and still nothing. I've also tried the invert mask button

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #4 on: March 22, 2019, 01:56:44 PM »
Hi.
on element 0 i can see the variable "ItemInteraction"

does it has the value "ItemInteraction" inside it?

on the bottom of the state window (inside the playmaker editor window)

there is a checkbox called debug.

Enable this to see directly on the action, whats inside the variables.

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #5 on: March 23, 2019, 11:18:08 AM »
Thank you for the help djaydino.

I decided to redo the FSM and put a new one on my intractable item and it works this way.

I do have another  question, is there a way to make Set Property so I do not have to keep modifying it for each individual item?

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #6 on: March 24, 2019, 12:11:16 AM »
Hi.
I don't think so.

What component are you targeting with the Set Property  action?

is it from an asset?

Maybe i can make an action for it.

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #7 on: March 26, 2019, 09:31:26 AM »
It is a public property(bool) that is a part of a "outline" effect script. Unfortunately I've discovered this technique will not work with objects that have a material... The fsm does what it is supposed to do and the public bool is toggled but the effect remains.

/sigh
« Last Edit: March 26, 2019, 09:33:09 AM by IsolatedPurity »

djaydino

  • Administrator
  • Hero Member
  • *****
  • Posts: 7614
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #8 on: March 26, 2019, 12:33:03 PM »
Hi.
Is the script from an asset on the asset store?

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 20
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #9 on: March 26, 2019, 12:53:14 PM »
It's a free script someone made