Assets/Scripts/Dialogue/Editor/GraphSaveUtility.cs
/// <summary>
/// Create All serialized nodes and assign their guid and dialogue text to them
/// </summary>
Create All serialized nodes and assign their guid and dialogue text to them
Create All serialized nodes and assign their guid and dialogue text to them
private void GenerateDialogueNodes()
    {
        foreach (var perNode in _dialogueContainer.DialogueNodeData)
        {
            var tempNode = _graphView.CreateDialogueNode(perNode.DialogueText, Vector2.zero);
            tempNode.GUID = perNode.NodeGUID;
            _graphView.AddElement(tempNode);
            var nodePorts = _dialogueContainer.NodeLinks.Where(x => x.BaseNodeGUID == perNode.NodeGUID).ToList();
            nodePorts.ForEach(x => _graphView.AddChoicePort(tempNode, x.PortName));
        }
    }
private void GenerateDialogueNodes ( ) { foreach ( var perNode in _dialogueContainer . DialogueNodeData ) { var tempNode = _graphView . CreateDialogueNode ( perNode . DialogueText , Vector2 . zero ) ; tempNode . GUID = perNode . NodeGUID ; _graphView . AddElement ( tempNode ) ; var nodePorts = _dialogueContainer . NodeLinks . Where ( x => x . BaseNodeGUID == perNode . NodeGUID ) . ToList ( ) ; nodePorts . ForEach ( x => _graphView . AddChoicePort ( tempNode , x . PortName ) ) ; } }
Create All serialized nodes and assign their guid and dialogue text to them
Create All serialized nodes and assign their guid and dialogue text to them