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:
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.