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); } }