- Home /
Add Pointer Down event trigger only to parent object.
I added a "Pointer Down" Event Trigger to a game object having a set of child objects. In the usual way, when I click that object, the whole thing gets affected, including the children. How can I add an "Pointer Down" Event Trigger to an object in a way that it only affects to the parent object,but not to the children of that object?
Answer by khiemngs · Jan 09, 2018 at 07:29 AM
How about creating a wrapper wrap both parent and its children (now old parent and children are all children of the wrapper).
Your answer
Follow this Question
Related Questions
"Center On Children" programmatically 1 Answer
Manipulating booleans from parent to child (C#) 2 Answers
C# Children of GameObject has it's script disabled after SetActive(false) and SetActive(true) 1 Answer
C# Child GameObject Disabled Script SetActive(false) 1 Answer
Can one specify the parent of a gameobject in an array? 2 Answers