Skip to content

Forenard/Unity-TalkUI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

6 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Unity-TalkUI

image

image

A Node-Based Conversation Event Creation System Using Unity-GraphView.

Features

  • You can easily create conversation events by connecting nodes.
  • Event information is stored in JSON format and is dynamically loaded by attaching it to a dedicated object.
  • The only code you need to implement is event.RunEvent() and a callback function for the ID of the ending of the conversation event!

Usage

  • Download the .unitypackage file from Release and import it into your Unity project.
  • Open the TalkUIGraphView tab and connect the nodes.

image

  • Create an EventManager object.

image

  • Attach the EventData file (JSON) you just saved to the EventManager component.

image

  • The following code is the minimal code to start a conversation event
using TalkUI;
using UnityEngine;
using UnityEngine.Events;
public class TalkUISampleScript : MonoBehaviour
{
    [SerializeField]
    EventManager eventManager;
    private void Start()
    {
        UnityEvent<int> uEventCallBack = new UnityEvent<int>();
        uEventCallBack.AddListener(TestCallBack);
        eventManager.RunEvent(uEventCallBack);
    }
    public void TestCallBack(int id)
    {
        Debug.Log("Ending id is " + id);
    }
}
  • You can also refer to TalkUI/Scenes/SampleScene

TODO

  • Loading and re-editing saved EventData
  • Adjusting the position of newly created nodes

About

A Node-Based Conversation Event Creation System Using Unity-GraphView.

Resources

License

Stars

Watchers

Forks

Packages

No packages published