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); }
protected override Event CreateCopyFrom(SerializedObjectEditorGUI <Event> editorGUI) { return(SerializeConverter.CreateCopy(editorGUI.GetEditableObject())); }