public void Draw(Rect window) { EditorGUI.indentLevel++; if (this.m_Event != null) { AnimationWindowEventInspector.OnEditAnimationEvent(this.m_Event); } else { AnimationWindowEventInspector.OnDisabledAnimationEvent(); } EditorGUI.indentLevel--; if (this.m_InstantTooltipText != null && this.m_InstantTooltipText != "") { GUIStyle gUIStyle = "AnimationEventTooltip"; Vector2 vector = gUIStyle.CalcSize(new GUIContent(this.m_InstantTooltipText)); Rect position = new Rect(window.x + this.m_InstantTooltipPoint.x, window.y + this.m_InstantTooltipPoint.y, vector.x, vector.y); if (position.xMax > window.width) { position.x = window.width - position.width; } GUI.Label(position, this.m_InstantTooltipText, gUIStyle); } }
public override void OnInspectorGUI() { AnimationWindowEventInspector.OnEditAnimationEvent(base.target as AnimationWindowEvent); }