|
I'm learning Unity and I got this error... Assets/RaycastHit.js(7,27): BCE0023: No appropriate version of 'UnityEngine.Physics.Raycast' for the argument list '(UnityEngine.Vector3, UnityEngine.Vector3, RaycastHit, int)' was found. What I need to do to use the raycast!? All the best!
(comments are locked)
|
|
looks like you named your class RaycastHit which overrides the RaycastHit class in Unity. Physics.Raycast() doesn't know what to do with your class so it errors out. Rename your class as something else or use UnityEngine.RaycastHit when declaring your variable. It's works! Thanks! :D
Apr 25 '11 at 07:32 PM
Alexandre
just forgot, the problem was the class name...
Apr 25 '11 at 07:39 PM
Alexandre
(comments are locked)
|

Can we see the code you are using?