static void DrawGizmos(AnimatorData aData, GizmoType gizmoType) { //check if it's the one opened if(AMTimeline.window != null && AMTimeline.window.aData != null && AMTimeline.window.aData.IsDataMatch(aData)) { AnimatorDataEdit eData = AMTimeline.AnimEdit(aData); List<AMTakeData> _t = eData.takes; if(_t == null || _t.Count == 0) return; if(eData.currentTakeInd < 0) { eData.currentTakeInd = 0; } else if(eData.currentTakeInd >= _t.Count) eData.currentTakeInd = _t.Count - 1; _t[eData.currentTakeInd].drawGizmos(eData.target, AnimatorTimeline.e_gizmoSize, Application.isPlaying); } }
public void SetData(AnimatorData aData) { if(mData != aData) { mData = aData; mDataTarget = aData as AMITarget; mMetaHolder = aData as AMIMeta; mCurrentTakeInd = mPrevTakeInd = 0; } }
public bool IsDataMatch(AnimatorData aData) { return aData == mData; }
public AnimatorDataEdit(AnimatorData aData) { SetData(aData); }