playMaker

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

IsolatedPurity

  • Playmaker Newbie
  • *
  • Posts: 15
    • View Profile
Mouse Pick Event Over not seeing object sometimes
« on: March 21, 2019, 03: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: 4541
    • View Profile
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #1 on: March 21, 2019, 03:58:40 PM »
Hi,
Maybe the ray distance is to short (5)?

Athin

  • Full Member
  • ***
  • Posts: 118
    • View Profile
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #2 on: March 21, 2019, 05: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: 15
    • View Profile
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #3 on: March 22, 2019, 09:46:37 AM »
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: 4541
    • View Profile
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #4 on: March 22, 2019, 10:56:44 AM »
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: 15
    • View Profile
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #5 on: March 23, 2019, 08: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: 4541
    • View Profile
    • jinxtergames
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #6 on: March 23, 2019, 09:11:16 PM »
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: 15
    • View Profile
Re: Mouse Pick Event Over not seeing object sometimes
« Reply #7 on: March 26, 2019, 06: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, 06:33:09 AM by IsolatedPurity »

djaydino

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

IsolatedPurity

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