private void OnGUI() { GUI.DrawTexture(leftSpace, GUIResources.GetMediumTexture_1()); GUI.DrawTexture(middleSpace, GUIResources.GetGraphSpaceTexture()); GUI.DrawTexture(rightSpace, GUIResources.GetMediumTexture_1()); FitRects(); Resizing(Event.current); leftWidthFactor = leftSpace.width / this.position.width; rightWidthFactor = rightSpace.width / this.position.width; Event e = Event.current; graphSpace.Draw(middleSpace); DrawLeftSpace(e); DrawRightSpace(e); graphSpace.UserInput(e, middleSpace, this); if (animator != null) { EditorUtility.SetDirty(animator); } }
private void DrawTexturesInRects() { GUI.DrawTexture(creatorPlacing, GUIResources.GetDarkTexture()); GUI.DrawTexture(creatorTypeSelecting, GUIResources.GetGraphSpaceTexture()); GUI.DrawTexture(elementsListSection, GUIResources.GetMediumTexture_2()); GUI.DrawTexture(elementOptionsSection, GUIResources.GetMediumTexture_1()); }