- Home /
Access on child's trigger in parent script
Hello,
I have a empty gameobject (A as example) - there is a script on it. I have a second empty gameobject (B). B is a child of A and has a trigger. I want to have access on this trigger in my script of the parent. The script must not have a script, only a "Box Collider" as trigger.
Is that possible and how?
Answer by V4mpy · Nov 05, 2013 at 08:02 PM
Hm, I put a rigidbody on the parent and turn "Is Kinematic" on. This works. Have anybody else an idea?
Your answer
Follow this Question
Related Questions
how to access scripts in children 2 Answers
Access variable from another script? Health! 3 Answers
Play sound on trigger, sound is coming from the trigger 1 Answer
Triggers not working - What's wrong with this script? 2 Answers
Accessing a variable effected by a GUI slider from another scipt 1 Answer