Playmaker Forum

Bug Reporting => PlayMaker Bug Reporting => Topic started by: omgitstri on May 16, 2018, 03:58:37 PM

Title: Problem with Mouse Pick Event on instantiated prefabs
Post by: omgitstri on May 16, 2018, 03:58:37 PM
Hello,

I am currently using unity 2018.1.0f2 and I noticed a problem with Mouse Pick Event. If we prefab that uses the action on the first state, it refuses to send the Mouse Over event when we instantiate the prefab. Somehow I managed to get it to works after I select the Cloned object, removed its collider and add a new collider component on it.

I made a simple FSM where mouse over the object and I click on an object to instantiate an object right next to it. Using the following Actions:

I attached a screenshot of the FSM.

Thanks in advanced!
Tri Nguyen
Title: Re: Problem with Mouse Pick Event on instantiated prefabs
Post by: jeanfabre on May 23, 2018, 01:53:24 AM
Hi,

If I understand well your use case, this is a Unity physics shortcoming. the mouse will not be detected as over if it's created right underneath the mouse position.

else, if you can isolate this into a repro scene, I'll have a look.

 Bye,

 Jean