Search Issue Tracker
By Design
Votes
3
Found in
4.3.0f4
Issue ID
594367
Regression
No
GameObject.FindGameObjectsWithTag() returns selected prefabs
To reproduce:
1. Open attached project
2. Open scene "Example"
3. Enter play mode - a label shows how many gameobjects are there with the tag "Target" - which is one
4. Select the plane prefab in the project view - it suddenly says that there are two object with the tag
Resolved by design - unfortunately, this is expected behavior with how the Unity Editor works right now. We are aware that there are conflicts about how everything in the editor get "instantiated" into the current scene. We're looking into solutions for this problem in general. This will be fixed with that larger fix.
Add comment
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- ArgumentOutOfRangeException when manipulating the Project Settings search bar
- [Linux] Touch freezes in Player when any mouse button is clicked
- UnityEngine.Rendering.Volume.OnEnable() is called twice before OnDisable() creating multiple copies of the same volume when a volume is enabled right after Domain Reload when entering Play Mode
- Hinge Joint transforms are reset when toggling the "useMotor" property
- Motion Vector texture reports incorrect Mesh data when Mesh is coming from off-screen
ZyntaxError
Jul 16, 2015 11:04
Reproduced in Unity 5.1.1f1.
Selecting prefab that has a Renderer component which shows preview window causes GameObject.Find and GameObject.FindGameObjectsWithTag to find that object or any child.
Profiler shows me that gameobjects count in scene increases when the preview window is showing something.
ssheets
Oct 20, 2014 23:33
Still present in 4.6.0b17. Causes "Object reference not set to an instance of an object" when you try to perform operations on an array that should be empty.