First off, I appreciate you time,
I'm trying to make an object move on a plane according to the location of the cursor (mouse) by "clicking and dragging"
When I try and code a raycast script onto that object I get a NullRefrenceException error upon clicking on that object.
here is a part of my code:
**** is where the error occurs.
What am i missing? any ideas?
Fantastic! it worked like a charm. I have used raycasting before in java script but now C# I thought I was missing something. Turns out, as you said, since i created a new camera in place of the other main camera it was no longer tagged as the main. Therefor I was receiving null references.
Thanks a million!
answered Aug 02 '11 at 09:58 AM