Hi friends,
void OnGUI ()
{
#if UNITY_EDITOR
if (Input.GetMouseButton (0)) {
smoothRotate ();
}
#endif
}
I use a kind of script like above for rotating 3D object.
It works fine in player mode(Game view) in unity. But not works when i take build for PC.
Other features are working well in the build, other than mouse rotation.
What may be the problem? I even tried reimport and tried. No result.
Please help me
thanks
Thanks a lot Graham Dunnett...!!! It was your one line answer solved the problem... Instead of calling the function inside UNITY_EDITOR, i called in Update(). SOLVED! And Also learnt to use UNITY_EDITOR.. Thanks again
– Jeeva3m