playMaker

Author Topic: Problem with Mouse Pick Event on instantiated prefabs  (Read 183 times)

omgitstri

  • Playmaker Newbie
  • *
  • Posts: 46
    • View Profile
    • My Prototypes
Problem with Mouse Pick Event on instantiated prefabs
« on: May 16, 2018, 12: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:
  • Mouse Pick Event
  • Create Object Advanced

I attached a screenshot of the FSM.

Thanks in advanced!
Tri Nguyen
Tri Nguyen
Game Designer at Nvizzio Creations

jeanfabre

  • Administrator
  • Hero Member
  • *****
  • Posts: 13143
  • Official Playmaker Support
    • View Profile
Re: Problem with Mouse Pick Event on instantiated prefabs
« Reply #1 on: May 22, 2018, 10:53:24 PM »
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