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);
}
}
Comments (203)
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
- ListView fails to display items when the source list is cleared and a single element is added
- UI Toolkit ':hover' state remains active when another panel is drawn over the hovered element and Touch input is used
- Unsupported Orient modes can be selected and throw errors when using Strip VFX
- "Tab" key exits the name text field in the VFX Graph tab when renaming the Property
- Shader warnings are thrown when deleting blocks in the Ribbon VFX Graph
naveedshaikh358
Jun 08, 2020 13:13
You’ve got some interesting points in this article. I would have never considered any of these if I didn’t come across this. Thanks!.
https://fitnessflow.net/
gym clothes
ahsanalirajput079
Jun 07, 2020 11:36
I have bookmarked your blog, the articles are way better than other similar blogs.. thanks for a great blog!
https://argadetectives.com/honorarios.html
detectives Madrid precios
ahsanalirajput079
Jun 06, 2020 07:50
Your blog provided us with valuable information to work with. Each & every tips of your post are awesome. Thanks a lot for sharing. Keep blogging,
https://packwoods.net/
ahsanalirajput079
Jun 04, 2020 18:24
The post is written in very a good manner and it contains many useful information for me.
https://itsmyurls.com/socialnetwork99
New blog publishing site to share to share your blog for free
ahsanalirajput079
Jun 03, 2020 19:40
I got what you mean , thanks for posting .Woh I am happy to find this website through google.
https://about.me/tomswilliam
naveedshaikh358
Jun 03, 2020 14:07
nice post, keep up with this interesting work. It really is good to know that this topic is being covered also on this web site so cheers for taking time to discuss this!
https://www.quora.com/profile/Toms-William-3
ahsanalirajput079
Jun 03, 2020 11:59
If more people that write articles really concerned themselves with writing great content like you, more readers would be interested in their writings. Thank you for caring about your content.
https://www.imdb.com/user/ur119047584/?ref_=nv_usr_prof_2
naveedshaikh358
Jun 03, 2020 08:41
No doubt this is an excellent post I got a lot of knowledge after reading good luck. Theme of blog is excellent there is almost everything to read, Brilliant post.
https://kinja.com/tomswilliam
ahsanalirajput079
Jun 02, 2020 10:21
I think that thanks for the valuabe information and insights you have so provided here.
https://sites.google.com/view/locksmithscottsdale/
locksmith Scottsdale Arizona
naveedshaikh358
Jun 02, 2020 08:26
This is a brilliant blog! I'm very happy with the comments!..
Farmington garage doors
http://www.humanhariextensions.co.uk/garage-door-repair-copying-keys-and-other-ways-to-prevent-burglary/