Here’s codes in Visual Studio 2008 and Unity3d.
And it’s tested in win 7 64bit/win Xp 32bit , and the unity3d version is 3.2 pro,
The code run in VS perfectly and Nothing wrong ,but in unity3d,
It warned me that “NullReferenceException”,Is it a bug or I did something wrong in the code?
Please give me some help,thx…
here’s the code:
Code in VS:
http://webgarden.vacau.com/u3dtest/vs.html
Code in Unity3d:
http://webgarden.vacau.com/u3dtest/unity3d.html