public void OnCopyActivated() { SkinningCopyData skinningCopyData; var selectedSprite = skinningCache.selectedSprite; if (selectedSprite == null) { skinningCopyData = CopyAll(); } else { skinningCopyData = CopySingle(selectedSprite); } if (skinningCopyData != null) { m_CopyToolStringStore.stringStore = SkinningCopyUtility.SerializeSkinningCopyDataToString(skinningCopyData); } skinningCache.events.copy.Invoke(); }
public void OnCopyActivated() { SkinningCopyData skinningCopyData; var selectedSprite = skinningCache.selectedSprite; if (selectedSprite == null) { skinningCopyData = CopyAll(); } else { skinningCopyData = CopySingle(); } if (skinningCopyData != null) { EditorGUIUtility.systemCopyBuffer = SkinningCopyUtility.SerializeSkinningCopyDataToString(skinningCopyData); } skinningCache.events.copy.Invoke(); }