Search Issue Tracker
Not Reproducible
Votes
0
Found in
5.0.0b1
Issue ID
627035
Regression
Yes
When Camera Clear Flags is set to Don't Clear or Depth Only, clicking on empty space triggers script from object last clicked
To reproduce:
1) Create new project
2) Add 2 cubes to scene, make sure you can see them as two separate objects
3) Add a OnMouseDown() debug message to cubes to see when you click them, for example:
using UnityEngine;
using System.Collections;
public class Scrip : MonoBehaviour {
void OnMouseDown() {Debug.Log ("I am " + name);}
}
4) Play the scene, at first objects interact normally and clicking on empty space doesn't create any messages.
5) Change camera's Clear Flags property to "Depth Only" or "Don't Clear" and play the scene again
6) Now when clicking on empty space, the script of last triggered object triggers
Also, if there are two cameras and one of them is set to "Skybox" or "Solid color", the issue doesn't appear
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Tile Palette selected dropdown text does not update when palette is renamed
- ArgumentException thrown and reference to Template gets unset when opening UXML file after editing referenced Template in Play mode
- [iOS][WebGL] Player freezes when multiple properties of a VisualElement are changed at the same time
- Warning 'GetControlID at event ValidateCommand returns a controlID different from the one in the Layout event' is logged when undoing the deletion of an Edited Freeform 2D Light
- ShadowCaster2D breaks on certain Rotation positions when Casting Source is set to PolygonCollider2D
Add comment