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
- SpeedTree trees remain static with WindZone when Vulkan or OpenGLES3 is used
- ARAnchor.pending never resolves when adding an anchor via TryAddAnchorAsync in Editor Play Mode with XR Simulation
- IAP Project Settings use inconsistent error message
- Warning in the Project Settings "In-App Purchases" is not consistent with the Editor design
- Crash on SoundChannelInstance::setDelay when loading an AssetBundle containing a Timeline with an AudioClip at Scene startup
Add comment