Unity 3 beta Collider Raycast Errors

Does anyone know why I would be receiving the following errors after opening a Unity iPhone 1.7 project in Unity 3b4? None of my raycast stuff works anymore.

This is the actual code from one of my scripts that seems to be causing issues:

function Update () {
	if (canBeTouched) {
		var ray = Camera.main.ScreenPointToRay (Input.mousePosition);
		var hit : RaycastHit;
		if (collider.Raycast(ray, hit, 5)) {
   			if (Input.GetButtonDown("Fire1")) {
   				if (!isMoving)
					PreviewItem();
					consumable_object_control_gui_ref.enabled = true;
	  		}
		}		
	}
}

Line 55 referred to in the screenshot (at the bottom) is this:

if (collider.Raycast(ray, hit, 5)) {

Has anyone else seen these errors occurring? I still haven’t been able to figure out why this is happening.

Sorry to bump this again but I’m desperate.

Still getting this same problem in beta 6. My best guess is that somehow the entire raycasting thing has changed, but I can’t find any doco to support that, and I would think a lot more people would be noticing it.

I’m now trying to convert a different Unity iPhone 1.7 project to a web player version, and getting these same errors (shown in the screenshot above).

Everything works just fine except the raycast stuff.

I found it - in the manual of all places! Always in the last place you look :wink:

Seriously though - I’d checked the new manual entry, this just completely escaped me until about the tenth look at it.

// pragma below is needed due to a UnityJS issue
#pragma strict

file:///Applications/Unity/Unity.app/Contents/Documentation/Documentation/ScriptReference/Collider.Raycast.html

Thanks. Was bugging me too.