- Home /
Excluding a child object from also being drag-able
Hi,
I have an issue when using Unity's DragRigidbody script to drag the Player around the screen. The problem is that I have a box collider attached to him as a child, which means that the user can also click on this collider to move him.
I was wondering if there is a way to exclude the trigger from being 'drag-able'. Possibly layers?
Thanks
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220613071727im_/https://answers.unity.com/themes/thub/images/avi.jpg)
Follow this Question
Related Questions
Drag Rigidbody 2 Answers
Drag rigid body problem 0 Answers
How to find the layer of child ? 2 Answers
Simulate 'Child' Effect by Script 2 Answers
problem with dragrigidbody 0 Answers