Unity Learn home
View Tutorial Content

Display character dialogue using raycasting

Tutorial
Beginner
+0 XP
30 Mins
(341)
Overview
Summary
In this tutorial, you’ll add a friendly NPC to your game to share a message with the player character.
By the end this this tutorial, you’ll be able to do the following:
  • Create a UI display for NPC dialogue.
  • Raycast to identify a specific GameObject.
  • Display the dialogue UI when the raycast is successful.
Select your Unity version
Last updated: November 17, 2024
2022.3
Language
English
Display character dialogue using raycasting