- Home /
Interactive handles inside Handles.BeginGUI section
I'm trying to create Slider2D on scene in editor mode. The handle is drawn but don't react on clicks. It looks like it's just non-interactive, just another shape on scene.
Code (inside class) is like this:
var Cross : Vector3 = Vector3(150, 150);
function OnSceneGUI () {
Handles.BeginGUI(); Cross = Handles.Slider2D(Cross, Vector3.forward, Vector2.right, Vector2.up, 20, Handles.CircleCap, 5); Handles.EndGUI();
}
Is there any good documentation about using handles in GUI mode? May be I have to realise something about scene GUI's? May be someone could just tell me whats wrong in my code? :)
tnx
Your answer
Follow this Question
Related Questions
Custom Handle. Mutliple Objects 0 Answers
How can i create a pup-up menu like the one for choose the shader on materials in unity 2019? 1 Answer
Editor Script Handles.Label problem. Labels don't move with gameobject 1 Answer
Prevent gameobject from losing focus when clicking on handle in editor 0 Answers
How to read the current PivotRotation or PivotMode ? 1 Answer