Hi everyone! I am making the game where the UFO flying and shooting the rocks. My problem is that I can’t to make the diagonal slider to move right and left the UFO. I find horizontal and vertical sliders, but I really need only diagonal. Please, help my to find it!!! Sorry for my English.
yeah, the diagonal slider is really necessary, i tried to make it myself, but…i have many troubles and then write here, i look at native GUI elements, but there are not such gui
I don’t really know what I was thinking, but you just have to use a rotation matrix of 45° to have a diagonal slider, such as
GUIUtility.RotateAroundPivot(45f, Vector2( Screen.width*0.5, Screen.height*0.5 ) );
myValue = GUI.HorizontalSlider( new Rect( 300, 300, 100, 100 ), myValue, 0, 1 );