Ejemplo n.º 1
0
                protected override Node CreateCopyFrom(SerializedObjectEditorGUI <Node> editorGUI)
                {
                    Node newNode = SerializeConverter.CreateCopy(editorGUI.GetEditableObject());

                    newNode._nodeId            = GenerateNewNodeId();
                    newNode._editorDescription = editorGUI.GetEditableObject()._editorDescription + " (Copy)";
                    return(newNode);
                }
                protected override TimelineState CreateCopyFrom(SerializedObjectEditorGUI <TimelineState> editorGUI)
                {
                    TimelineStateEditorGUI timeLineGUI = (TimelineStateEditorGUI)editorGUI;
                    TimelineState          newState    = SerializeConverter.CreateCopy(timeLineGUI.GetEditableObject());

                    if (timeLineGUI.IsNote)
                    {
                        newState._editorDescription = timeLineGUI.GetEditorDescrition();
                    }
                    else
                    {
                        newState._editorDescription = timeLineGUI.GetEditorDescrition() + " (Copy)";
                        newState._stateId           = GenerateNewStateId();
                    }

                    return(newState);
                }
Ejemplo n.º 3
0
 protected override Event CreateCopyFrom(SerializedObjectEditorGUI <Event> editorGUI)
 {
     return(SerializeConverter.CreateCopy(editorGUI.GetEditableObject()));
 }