Esempio n. 1
0
        /// <summary>
        /// Get the Knob rect in screen space, ZOOMED
        /// </summary>
        public Rect GetScreenKnob()
        {
            Rect rect = GetGUIKnob();

            rect.position -= NodeEditor.curEditorState.zoomPanAdjust;
            return(NodeEditor.GUIToScreenRect(rect));
        }
Esempio n. 2
0
 /// <summary>
 /// Get the rect of the knob left to the input ZOOMED; Used for input checks; Representative of the actual screen rect
 /// </summary>
 public Rect GetScreenKnob()
 {
     return(NodeEditor.GUIToScreenRect(TransformInputRect(inputRect)));
 }