UHFPS
  • 👋Welcome
  • 🎲Installation
    • URP - Project Setup
    • HDRP - Project Setup
    • Packages Setup
  • 🎮Getting Started
    • References
  • ⬆️Update Process
  • 📑Changelog
  • 📍Roadmap
  • ❔Support
  • 📚Guides
    • Managing Inputs
      • Adding Inputs to UI
      • Setting up Input System
    • State Machines
      • Adding Player States
      • Adding AI States
    • Save/Load Manager
      • Previous Scene Persistency
      • Encryption
    • Customizing UI
    • Interactions
    • Inventory
    • Player Items
    • Dynamic Objects
    • Motion Controller
      • External Motions
    • Hiding System
    • Narration System
    • Jumpscares
    • Puzzles
    • Objectives
    • Cutscenes
    • Options Manager
    • Game Manager
    • Localization
    • URP Specific
  • ⚙️Integrations
    • Emerald AI 3.0
    • AI Tree
    • Meet and Talk
Powered by GitBook
On this page
  1. Integrations

Meet and Talk

Meet and Talk will help you create dialogues for your games, even very complex ones

PreviousAI Tree

Last updated 7 months ago

  1. Follow the documentation of the plugin to create the first dialogue.

  1. Go to Meet and Talk -> Example folder and drag the Meet And Talk prefab into the scene.

  2. Create a new script called UHFPSDialogueLocker.cs that will handle player locking during dialogue.

using UHFPS.Runtime;
using UnityEngine;

namespace UHFPS.Integrations.MeetAndTalk
{
    public class UHFPSDialogueLocker : MonoBehaviour
    {
        private GameManager gameManager;

        private void Awake()
        {
            gameManager = GameManager.Instance;
        }

        public void LockPlayerForDialogue()
        {
            gameManager.FreezePlayer(true, true);
            gameManager.DisableAllGamePanels();
        }

        public void UnlockPlayerForDialogue()
        {
            gameManager.FreezePlayer(false, false);
            gameManager.ShowPanel(GameManager.PanelType.MainPanel);
        }
    }
}
  1. Add UHFPSDialogueLocker to the Meet and Talk -> Dialogue Manager prefab and set the Dialogue Manager dialogue events to LockPlayerForDialogue() and UnlockPlayerForDialogue().

  1. Create a new script called UHFPSDialogueStarter.cs that will be used to start the dialogue.

using UnityEngine;
using MEET_AND_TALK;
using UHFPS.Runtime;

namespace UHFPS.Integrations.MeetAndTalk
{
    public class UHFPSDialogueStarter : MonoBehaviour, IInteractStart
    {
        public DialogueContainerSO dialogueContainer;

        public void InteractStart()
        {
            DialogueManager.Instance.StartDialogue(dialogueContainer);
        }
    }
}
  1. In your NPC, set the layer to Interact, which will allow you to interact with the NPC. Additionally, add the UHFPSDialogueStarter component to it.

  2. Assign the dialogue asset to the Dialogue Container field.

Unity Asset Store link to the Meet and Talk asset page:

Guide created by: Ravl & TW (Patrick)

⚙️
LogoMeet and Talk | Online Documentation
LogoMeet and Talk - Dialogue System - Free VersionUnityAssetStore
Page cover image