Ejemplo n.º 1
0
        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();
        }
Ejemplo n.º 2
0
        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();
        }