Example #1
0
 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());
 }
        private void OnGUI()
        {
            Event e = Event.current;

            GUI.DrawTexture(leftSpace, GUIResources.GetMediumTexture_1());
            GUI.DrawTexture(rightSpace, GUIResources.GetMediumTexture_2());

            FitRects();
            ResizeRects(e);

            resizeFactor = leftSpace.width / this.position.width;

            DoLayoutLeftMenu(e);
            DoLayoutRightMenu(e);

            AnimationPlaying();
            OnCurrentAnimationTimeChange();


            if (editedData != null)
            {
                EditorUtility.SetDirty(editedData);
                Undo.RecordObject(editedData, "MM_Data editor Change");
            }
        }