playMaker

Author Topic: Mouse Down wont work on child object  (Read 1208 times)

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Mouse Down wont work on child object
« on: June 03, 2022, 04:31:01 PM »
Im trying to follow the tutorial about opening and closing doors on playmaker channel. I have a prefab which has a child object, and in that child object I used the actions that are showed in my atachment, but it just doesnt work, the mouse down event wont trigger. If I use the same object but outside of the prefab, not as a child, it works fine. How to solve this?

thunder

  • Playmaker Newbie
  • *
  • Posts: 22
Re: Mouse Down wont work on child object
« Reply #1 on: June 03, 2022, 05:16:46 PM »
NVM, I found this: "If it's on the object that's a child, you won't get any calls. The parent rigidbody is the only one that gets any calls when a child collider is clicked on. (As far as I know)  If you want the child to register its own calls, remove it from the hierarchy or give it its own rigidbody."