Ejemplo n.º 1
0
        void OnEnable()
        {
            if (!texLoaded)
            {
                tex_orb   = EditorResource.LoadEditorTexture("am_orb");
                texLoaded = true;
            }

            window              = this;
            this.maxSize        = new Vector2(715f, 398f);
            this.minSize        = this.maxSize;
            this.wantsMouseMove = true;
            loadAnimatorData();
            setupFilteredCategories();

            selectedIndex = getCategoryIndexForEase(TimelineWindow.GetEaseTypeNameIndex(key.easeType));

            if (getSelectedEaseName(category, selectedIndex) == "Custom")
            {
                isCustomEase = true;
            }
            if (isCustomEase && key.customEase.Count > 0)
            {
                curve = key.getCustomEaseCurve();
            }
            else
            {
                setEasingCurve();
            }
        }
Ejemplo n.º 2
0
 public static void setValues(Key _key, Track _track)
 {
     justSet = true;
     key     = _key;
     track   = _track;
     //aData = _aData;
     selectedIndex = TimelineWindow.GetEaseTypeNameIndex(key.easeType);
 }