Hello,
How can i make 3D slider by using Handles.Slider.
Because in passive stereo GUI not supports.
I have imported UnityEditor.dll in project folder.
By code i try to access Handles class but it cant work.
Please help
Thanx
Hello,
How can i make 3D slider by using Handles.Slider.
Because in passive stereo GUI not supports.
I have imported UnityEditor.dll in project folder.
By code i try to access Handles class but it cant work.
Please help
Thanx
the unity editor stuff only works in the editor, it will not work in the built app.
Thanks for your reply,
Sorry,I can’t understand what are you trying to explain me.
In visual studio 2008 i have open the script.
Add using UnityEditor;
Then put this lines in :
void start ()
{
Handles.Slider((0, 0, 0),(1, 1, 0));
}
It gives me 5 errors.
I tried first time visual studio 2008 so i cant understand syntex.
Please correct my syntex.
Please help
Thanx
is the script in an Editor folder in unity?
otherwise it will not work because using UnityEditor; is invalid outside of Editor folders.
I would recommend that you check out the documentations on editor scripting for more detailed informations
Thank you for your reply,
I have taken empty gameobject and renamed it to slider.
Then i made Editor folder and put slider.cs in it.
When i drag and try to put script on slider error :
can`t add script behaviour slider because it is an editor script. to attach a script it needs to be ouside the ‘Editor’ folder.
when i put script outside the editor folder then error:
can`t add script behaviour slider. The script needs to derive from MonoBehaviour!
As i derive script from Monobehaviour.
What should i do ?
Please help
Thanx