void OnGUI() { if (IsDebugMode) { GUILayout.Label("IsAnimating " + IsAnimating.ToString() + " - Time: " + AnimationTime.ToString()); GUILayout.Label("DebugRotation: " + DebugRotation.ToString()); GUILayout.Label("Animation Clip: " + MyAnimation.name + " [" + MyAnimation.length + "]"); GUILayout.Label("Bones To animate: " + BoneReferences.Count + " with " + MyBones.Count + " instructions"); GUILayout.Label("Bounds: " + MyAnimation.localBounds.ToString()); for (int i = 0; i < BoneReferences.Count; i++) { if (BoneReferences[i]) { GUILayout.Label(i + ":" + BoneReferences[i].name); } else { GUILayout.Label(i + ": Is Null.."); } } if (Input.GetKey(KeyCode.X)) { for (int i = 0; i < MyBones.Count; i += 4) { if (i + 3 < MyBones.Count) { GUILayout.Label("[" + i + "]:[" + MyBones[i].PropertyName + "]" + "\t[" + (i + 1) + "]:[" + MyBones[i + 1].PropertyName + "]" + "\t[" + (i + 2) + "]:[" + MyBones[i + 2].PropertyName + "]" + "\t[" + (i + 3) + "]:[" + MyBones[i + 3].PropertyName + "]"); } } } else if (Input.GetKey(KeyCode.Z)) { for (int i = 0; i < MyBones.Count; i += 4) { if (i + 3 < MyBones.Count) { GUILayout.Label("[" + i + "]:[" + MyBones[i].MyBindedObject.name + "]" + "\t[" + (i + 1) + "]:[" + MyBones[i + 1].MyBindedObject.name + "]" + "\t[" + (i + 2) + "]:[" + MyBones[i + 2].MyBindedObject.name + "]" + "\t[" + (i + 3) + "]:[" + MyBones[i + 3].MyBindedObject.name + "]"); } } } else { GUILayout.Label("Curves"); for (int i = 0; i < MyBones.Count; i += 4) { if (i + 3 < MyBones.Count) { //GUILayout.Label (MyBones[i].GetLabel()); GUILayout.Label(RoundTo2Dec(MyBones[i].MyCurve.Evaluate(AnimationTime)).ToString() + "\t" + RoundTo2Dec(MyBones[i + 1].MyCurve.Evaluate(AnimationTime)).ToString() + "\t" + RoundTo2Dec(MyBones[i + 2].MyCurve.Evaluate(AnimationTime)).ToString() + "\t" + RoundTo2Dec(MyBones[i + 3].MyCurve.Evaluate(AnimationTime)).ToString() ); } } } /*for (int i = 0; i < MyAnimation.events.Length; i++) * { * GUILayout.Label(MyAnimation.events[i].functionName); * }*/ /*for (int i = 0; i < MyCurveBindings.Length; i++) { * GUILayout.Label("CurveBinding: " + MyCurveBindings[i].propertyName + * ":" + MyCurveBindings[i].path); * // + ":" + MyCurveBindings[i].isPPtrCurve); * }*/ } }