Exemplo n.º 1
0
        protected virtual void RepairRoutine()
        {
            SequencePlayer player = target as SequencePlayer;

            if ((player.SafeMode == SequencePlayer.SafeModes.EditorOnly) || (player.SafeMode == SequencePlayer.SafeModes.Full))
            {
                player.AutoRepair();
            }

            serializedObject.ApplyModifiedProperties();
        }
Exemplo n.º 2
0
            static public void PasteAll(SequencePlayerEditor targetEditor)
            {
                var sourceFeedbacks          = new SerializedObject(CopyAllSourceSequencePlayer);
                SerializedProperty feedbacks = sourceFeedbacks.FindProperty("SequencePlayer");

                for (int i = 0; i < feedbacks.arraySize; i++)
                {
                    SequenceBase arrayFeedback = (feedbacks.GetArrayElementAtIndex(i).objectReferenceValue as SequenceBase);

                    SequenceCopy.Copy(new SerializedObject(arrayFeedback));
                    SequenceBase     newFeedback = targetEditor.AddSequence(arrayFeedback.GetType());
                    SerializedObject serialized  = new SerializedObject(newFeedback);
                    serialized.Update();
                    SequenceCopy.Paste(serialized);
                    serialized.ApplyModifiedProperties();
                }

                CopyAllSourceSequencePlayer = null;
            }
Exemplo n.º 3
0
 static public void CopyAll(SequencePlayer sourceSequencePlayer)
 {
     CopyAllSourceSequencePlayer = sourceSequencePlayer;
 }