- Home /
allowing only one child object per paremnt object at any given time.
hi I know its been years since this post has been active but I am also stuck on this. I need to only allow one child per parent at any given time, I have tried all of these techniques but none of them seem to work for me. I have already scripted the part that allows me to parent when the button is held and un parent when released however I would like to restrict the amount of children the parent can have. once the box is parented when I walk to the other one that parents as well and results in two boxes rotating inside each other following my player object.
I would also like to add that the parenting script is on the object that is picked up (the child) and not the player object
Your answer
Follow this Question
Related Questions
How to detect which how many of a type a variable a script has 1 Answer
cannot drag script to player.Guitext error,cannot drag player script to the player in hierarchy 2 Answers
Referencing a Cs Script from a JS within the Compile Order 0 Answers
Modal Panel Problem 1 Answer
Error trying to parse multiple IF statements of a KeyInput and Collider 1 Answer