Search Issue Tracker
Fixed in 2019.1.X
Votes
0
Found in
2018.3.0a1
Issue ID
1096382
Regression
No
All arguments are mandatory for (int)PhysicsScene.SphereCast, even though they shouldn't be
How to reproduce:
1. Open any (new) project
2. Import the attached script
- Observe the compilation error
- The error happens because 3 of the arguments have no default value and are therefore not optional.
- Only happens for SphereCast, other multiscene queries work as intended
- Non-multiscene/default scene queries are not affected
Code in the script:
using UnityEngine;
public class ThisShouldCompile : MonoBehaviour
{
void Start()
{
RaycastHit[] hits = new RaycastHit[1];
int number = new PhysicsScene().SphereCast(Vector3.zero, 1.0f, Vector3.forward, hits);
}
}
All about bugs
View bugs we have successfully reproduced, and vote for the bugs you want to see fixed most urgently.
Latest issues
- Pixelated lens icon in the Search window
- Informational text does not wrap and does not fit when the Viewer Window is opened by default
- GameObject cannot be resized with Scale Tool when axis scale is 0
- Adaptive Probe Volume “No Adaptive Probe Volume in Scene” warning is shown only on the first time and is never shown again when baking the Adaptive Probe Volumes with all the Adaptive Probe Volume components disabled
- “NullReferenceException” thrown in Console when changing Profile field to ‘DefaultLookDevProfile’ in Lighting window after deleting Directional Light
Add comment