hi guys, i needs some help with getting children of the parent but excluding the objects with certain tag, here is the code i used so far:
//GET CURRENT CAMERA SELECTION
selection=cam.currentTarget;
//GET THE PARENT OF THAT OBJECT
selectionParent=selection.parent.transform;
//THIS WILL GET ALL THE CHILDREN OF THE PARENT
children=Array(selectionParent.GetComponentsInChildren(Transform));
this code will return all children of the parent no matter the tag, so how to include the checking of the tag into this. for example if the tag is "exclude" how to get the children of the parent but only with other or no tag that is "exclude"
thanks!