private void OnPropertyContextMenu(GenericMenu menu, SerializedProperty property) { if (this.m_Responder != null) { PropertyModification[] modifications = AnimationWindowUtility.SerializedPropertyToPropertyModifications(property); bool flag = this.m_Responder.IsAnimatable(modifications); if (flag) { UnityEngine.Object targetObject = property.serializedObject.targetObject; if (this.m_Responder.IsEditable(targetObject)) { this.OnPropertyContextMenu(menu, modifications); } else { this.OnDisabledPropertyContextMenu(menu); } } } }
void OnPropertyContextMenu(GenericMenu menu, SerializedProperty property) { if (m_Responder == null) { return; } PropertyModification[] modifications = AnimationWindowUtility.SerializedPropertyToPropertyModifications(property); bool isPropertyAnimatable = m_Responder.IsAnimatable(modifications); if (isPropertyAnimatable) { var targetObject = property.serializedObject.targetObject; if (m_Responder.IsEditable(targetObject)) { OnPropertyContextMenu(menu, modifications); } else { OnDisabledPropertyContextMenu(menu); } } }
public void RemoveCurve(SerializedProperty property) { this.RemoveCurve(AnimationWindowUtility.SerializedPropertyToPropertyModifications(property)); }
public void AddKey(SerializedProperty property) { this.AddKey(AnimationWindowUtility.SerializedPropertyToPropertyModifications(property)); }
public void RemoveKey(SerializedProperty property) { RemoveKey(AnimationWindowUtility.SerializedPropertyToPropertyModifications(property)); }