void OnEnable() { window = this; this.title = "Options"; this.minSize = new Vector2(545f, 365f); this.maxSize = new Vector2(1000f, this.minSize.y); loadAnimatorData(); oData = AMOptionsFile.loadFile(); // setup skin popup skinIndex = 0; for (int i = 1; i < skin_ids.Length; i++) { if (skin_ids[i] == oData.skin) { skinIndex = i; break; } } if (aData) { exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake()); } }
void loadAnimatorData() { GameObject go = GameObject.Find("AnimatorData"); if (go) { aData = (AnimatorData)go.GetComponent("AnimatorData"); if (aData) { if (aData.playOnStart != null) { playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1; } exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake()); } } }
void loadAnimatorData() { aData = AMTimeline.GetAnimatorData(); if (aData) { if (aData.playOnStart != null) { playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1; } exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake()); } //GameObject go = GameObject.Find ("AnimatorData"); //if(go) { // aData = (AnimatorData) go.GetComponent<AnimatorData>(); // if(aData) { // if(aData.playOnStart != null) playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1; // exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake()); // } //} }
void loadAnimatorData() { GameObject go = GameObject.Find ("AnimatorData"); if(go) { aData = (AnimatorData) go.GetComponent ("AnimatorData"); if(aData) { if(aData.playOnStart != null) playOnStartIndex = aData.getTakeIndex(aData.playOnStart) + 1; exportTakeIndex = aData.getTakeIndex(aData.getCurrentTake()); } } }
void loadAnimatorData() { if(AMTimeline.window != null) { __aData = AMTimeline.window.aData; if(__aData) { if(__aData.playOnStart != null) playOnStartIndex = __aData.getTakeIndex(__aData.playOnStart) + 1; exportTakeIndex = __aData.getTakeIndex(__aData.getCurrentTake()); } } }