Question by
mishelbi · Apr 22, 2019 at 02:31 PM ·
scripting problemscriptingbasics
GameObject.FindGameObjectsWithTag not finding all my objects
I am doing a quest and have 5 objects tagged "QuestItem". In my QuestGiver script I have
items = GameObject.FindGameObjectsWithTag("QuestItem");
items is an array of GameObject type. After that statement I do a debug asking for
Debug.Log(items.Length);
and am only getting a length of 2. Why is it not finding all of my items? They are all active in the scene.
Comment
Your answer
![](https://koobas.hobune.stream/wayback/20220612200005im_/https://answers.unity.com/themes/thub/images/avi.jpg)