void SyncClipEditor(AnimationClipInfoProperties info) { if (m_AnimationClipEditor == null || m_MaskInspector == null) { return; } // It mandatory to set clip info into mask inspector first, this will update m_Mask. m_MaskInspector.clipInfo = info; m_AnimationClipEditor.ShowRange(info); m_AnimationClipEditor.mask = m_Mask; AnimationCurvePreviewCache.ClearCache(); }
void SyncClipEditor() { if (m_AnimationClipEditor == null || m_MaskInspector == null) { return; } AnimationClipInfoProperties info = GetAnimationClipInfoAtIndex(selectedClipIndex); // It mandatory to set clip info into mask inspector first, this will update m_Mask. m_MaskInspector.clipInfo = info; m_AnimationClipEditor.ShowRange(info); m_AnimationClipEditor.mask = m_Mask; }