Exemple #1
0
        private void DrawElementOptionSection()
        {
            GUILayout.BeginArea(elementOptionsSection);
            scrollView_R = GUILayout.BeginScrollView(scrollView_R);
            switch (selectedCreator)
            {
            case 0:
                CreatorBasicOption.DrawAnimationList(this.creator);

                break;

            case 1:
                BlendTreesOptions.DrawTreesElements(this.creator, this);
                if (creator.selectedBlendTree < creator.blendTrees.Count && creator.selectedBlendTree >= 0)
                {
                    PreviewAnimation();
                }
                break;

            case 2:
                AnimationSequenceOptions.DrawSelectedSequence(this.creator, this, elementOptionsSection.width);
                if (creator.selectedSequence < creator.sequences.Count && creator.selectedSequence >= 0)
                {
                    PreviewAnimation();
                }
                break;
            }

            GUILayout.EndScrollView();
            GUILayout.EndArea();
        }
Exemple #2
0
        private void DrawElementListSection()
        {
            GUILayout.BeginArea(elementsListSection);
            scrollView_L = GUILayout.BeginScrollView(scrollView_L);
            switch (selectedCreator)
            {
            case 0:
                CreatorBasicOption.DrawOptions(this.creator);

                GUILayout.Space(10);

                if (GUILayout.Button("Calculate only clips", GUIResources.Button_MD()) && creator.gameObjectTransform != null)
                {
                    CalculateDataButton(true, false, false);
                }
                break;

            case 1:
                BlendTreesOptions.DrawTreesList(this.creator, this);

                if (GUILayout.Button("Calculate only Blend Trees", GUIResources.Button_MD()) && creator.gameObjectTransform != null)
                {
                    CalculateDataButton(false, true, false);
                }
                break;

            case 2:
                AnimationSequenceOptions.DrawSequencesList(this.creator, this);

                if (GUILayout.Button("Calculate only Sequences", GUIResources.Button_MD()) && creator.gameObjectTransform != null)
                {
                    CalculateDataButton(false, false, true);
                }
                break;
            }
            GUILayout.Space(10);
            GUILayout.EndScrollView();
            GUILayout.EndArea();
        }