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
- var VisionOSEDRHeadromm has a comma instead of a dot when building with Metal Rendering App Mode and local OS localization is set to German
- IAP Catalog remove product “x” and add product “+” buttons are not consistent with other remove and add buttons in the Editor
- Performance issues in Play Mode when quickly hovering the mouse cursor over Hierarchy GameObjects
- Frame Debugger displays incorrect output when FidelityFX Super Resolution or Spatial-Temporal Upscaler is used with Temporal Anti-aliasing or Subpixel Morphological Anti-aliasing
- Crash with “Fatal Error! The file ‘MemoryStream’ is corrupted!” when adding a large number in Font Character Rects Size field
Add comment