![]() get dialogue line and speaker name from triggered objectĭialogue = aOther.GetComponent().dialogueLine Trigger Enter/Exit used to determine if interaction with NPC is possible SceneManager.LoadScene(SceneManager.GetActiveScene().name) Simple scene restart for testing purposes If (dialogueManager.DialogueActive & Input.GetKeyDown(Ke圜ode.Escape)) If (Input.GetKeyDown(Ke圜ode.Space) & isNearNPC)ĭialogueManager.StartDialogue(dialogue, speaker) ![]() Key option to start dialogue when near NPC All interactions and key inputs player can use PlayerRB.velocity = new Vector3(Input.GetAxis("Horizontal") * speed, 0, Input.GetAxis("Vertical") * speed) Remove movement control while in dialogue Public class PlayerController : MonoBehaviour You will find two zipped Unity projects in the download, one is the base version, which can be used to follow the course and the other one is the final version, which is the completely finished project as it will look like at the end of this series. You can download this small demo project plus the articy project if you want to follow along, or play around in it. The player can move around and talk to the NPCs by pressing Space when in their proximity. In a small game area we have a controllable player character and two NPCs. We keep the project as simple as possible to not distract from its main focus – to show how the implementation of the articy Importer works. At the time of the recording I am working with a Unity 2020.3 LTS Version. There is one scene in this Unity project. Back in Unity we will make sure that our data is ready to use by doing a quick check with the included Debug Flow Player. Then we will switch to articy:draft to have a quick look at the project on that end, followed by exporting the articy data to Unity. ![]() In this first lesson we will take a look at our Unity project and get the articy Importer for Unity from the asset store and install it. The articy to Unity workflow we are going to set up will make life easier for writers and designers, as they can work in articy, but within moments can see and test changes in the Unity project. Depending on your personal project you then can go with the same approach or at least use it as a basis you can modify to fit your needs. We will start out with a small Unity project and step by step update it to a point where we can trigger and display the branching dialogue we imported from articy. ![]() This is where this tutorial series comes in. However, which data to access and how to display that data in our project is totally on us, that means that some C# coding will be required! Within Unity the ArticyFlowPlayer component does a lot of heavy lifting in the background and takes care of the flow traversal, among other things. The articy:draft Importer for Unity takes care of getting all the data you want from articy into the game engine. The Goal of this Seriesĭuring this series we will take a look at how to access imported articy data within Unity with the goal of displaying branching dialogue. Please accept marketing cookies to watch this video. ![]()
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |