c# - RayCastHit could not be found error message *Unity* -
c# - RayCastHit could not be found error message *Unity* -
i next tutorial: https://www.youtube.com/watch?v=9gx2tmhkq2g
and in tutorial, info type raycasthit used, in monodevelop, keyword isn't highlighted me, assumed not found... , got error message 'the type/namespace name raycasthit not found.'
i wondering if need specific resolve problem or if it's 1 of silly unity mistakes :p
the code script far is:
using unityengine; using system.collections; public class raycast : monobehaviour { // utilize initialization void start () { } // update called 1 time per frame void update () { //if left mouse button clicked, // create ray cast mouse clicked pos. ray rayorigin; raycasthit hitinfo; }
}
i may have moved project 1 folder after creation im not sure if that's why it's confused... using dedicated folder set of unity projects in... (documents/unityprojects/raycasttutorial) raycasttutorial name of project.
thanks beingness awesome , helping me :)
the "c" in raycasthit needs lowercase, not uppercase.
so, @ end of update
function, create sure line looks like:
raycasthit hitinfo;
c# scripting unity3d
Comments
Post a Comment