Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. Join us on Thursday, June 8, for a Q&A with Unity's Content Pipeline group here on the forum, and on the Unity Discord, and discuss topics around Content Build, Import Workflows, Asset Database, and Addressables!
    Dismiss Notice

Assets NPC Chat 2.0 - Supports Timeline and LipSync Pro

Discussion in 'Works In Progress - Archive' started by Stephen_O, Jul 7, 2020.

  1. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Add NPC Chat to objects in your scene, then trigger it to display a UI chat box, play audio, and/or trigger custom events. The Chat Box is a prefab made of built-in Unity UI components that you can customize, add-to, or remove.







    Asset Store
    WebGL Demo

    Integrations:
    LipSync Pro
    Quick Outline
    Timeline

    NPC Chat Features, the NPC Chat script allows you configure a number of settings via the inspector just like other common Unity components:
    • API: StartChat, FinishPage, StopChat
    • Header Text (NPC Name)
    • Body Text (NPC Dialogue)
    • Audio Clip
    • Any Number of Pages
    • Use Unique Chat Boxes on each page
    • Chat Start Event
    • Chat Stop Event
    • Page Start Event
    • Page Stop Event
    • Page Buttons (up to 6)
    • Play On Awake option
    • Scrolling Text option

    Chat Box Features:
    • Made from Default Unity UI Components
    • Header Text (NPC Name)
    • Body Text (NPC Dialogue)
    • Preconfigured Render Texture Camera enabled/disabled with chat box

    Additional Components can be added to the NPC Chat object for added functionality and control:
    • DistanceCheck
    • MouseOverOutline
    • TriggerChatOnCollision
    • TriggerChatOnKeyDown
    • TriggerChatOnKeyUp
    • TriggerChatOnMouseDown
    • TriggerChatOnMouseUp


    Notice: environment/character models and animation assets shown in demo videos are not included with NPC Chat.
     
    Last edited: Nov 21, 2020
  2. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    NPC Chat 2.0 has been submitted to the asset store.
     
  3. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    NPC Chat version 2.0.1 is being prepared for submersion.

    It will have a couple new features, including:

    Timeline Integration
    LipSync Pro Integration

    Demonstration tutorial:

     
    digiross likes this.
  4. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.1 submitted.

    • Added Timeline integration, allows triggering NPC Chat functions (Start, Stop, Next Page) via Timeline.
    • Added Lip Sync Pro integration, provides a LipSync reference to be assigned in the chat pages, and a LipSynData reference for the LipSync to play when the page is active; allowing NPC facial and mouth animation to be created through Lip Sync Pro, and played with the dialogue text.
    • Moved DialogueSettings class from NPCChat script to its on script file.
    • Moved DialogueButtons class from NPCChat script to its on script file.
     
  5. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    NPC Chat version 2.0.1 is now available.
     
  6. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.2 submitted.

    • Improved Layout of NPCChat inspector, added variable tooltip info, support for revert/apply individual prefab variable fields, and tabs to switch between conversation and settings variables.
    • Moved options dropdown inspector variables to settings tab.
    • Moved conversation inspector variables to conversation tab.
    • Added useStartEvent bool to NPCChat.
    • Added useStopEvent bool to NPCChat.
    • Removed unused variable from NPCChat.
     
  7. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.3 submitted.

    • Added LoadScene Utility script with example in demo scene
    • Added support for Quick Outline via a new MouseOverQuickOutline script.

     
  8. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.3 is now available.
     
  9. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.4 submitted.

    • Added 'Timed Page' option to NPCChat settings. Enables an option to set a 'Duration' for each page in the conversation settings, the page will be closed after the duration.
     
  10. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Version 2.0.4 is now available.
     
  11. Rock3

    Rock3

    Joined:
    Dec 20, 2017
    Posts:
    5
    hello:

    when I copy chatbox and use it in NPCChat, the unity is error , the inspector was wrong!
    I am not good at English, I hope I was clear! thanks!
    upload_2021-1-26_16-15-6.png upload_2021-1-26_16-17-34.png upload_2021-1-26_16-16-44.png
     

    Attached Files:

    • GIF.gif
      GIF.gif
      File size:
      124.1 KB
      Views:
      245
    • GIF.gif
      GIF.gif
      File size:
      124.1 KB
      Views:
      241
    Last edited: Jan 26, 2021
  12. Stephen_O

    Stephen_O

    Joined:
    Jun 8, 2013
    Posts:
    1,505
    Hello.

    I can't seem to reproduce this.

    The recommend way would be to use the Add Component button, this will spawn a new NPC Chat component, and work as expected.

    AddComponent.gif
     
  13. Rock3

    Rock3

    Joined:
    Dec 20, 2017
    Posts:
    5
    thanks!I'll have a try。