Ejemplo n.º 1
0
        void OnDisable()
        {
            window = null;
            if (aData != null && saveChanges)
            {
                Take take          = aData.currentTake;
                bool saveNumFrames = true;

                string label = take.name + ": Modify Settings";
                aData.RegisterTakesUndo(label);
                take = aData.currentTake;

                if (saveNumFrames)
                {
                    // save end frame padding
                    take.endFramePadding = endFramePadding;
                }
                // save frameRate
                take.frameRate = frameRate;

                //save other data
                take.numLoop         = loopCount;
                take.loopMode        = loopMode;
                take.loopBackToFrame = loopBackFrameCheck ? Mathf.Clamp(loopBackFrame, 1, totalFrames) : 0;

                aData.RecordTakesChanged();

                GetWindow(typeof(TimelineWindow)).Repaint();
            }
        }
Ejemplo n.º 2
0
        void OnEnable()
        {
            window = this;

            titleContent = new GUIContent("Settings");

            minSize = new Vector2(280f, 190f);
            //maxSize = this.minSize;

            loadAnimatorData();
        }