Unity Cookbook
  • 2D
    • New Input System - 2D Move
    • Pixel Sprite Setup
    • Animations
    • Animator in Script
    • Tilemap
    • 2D Camera Follow Player
  • UI OnlyFans
    • 9-Splice Sprite
    • Interactible Game Objects
      • NPCs
      • Items
      • Interactible Marker
    • Dialogue System
      • Conversa Plugin
      • DiaManager.cs
      • DiaTrigger.cs
      • DiaManager.cs Alternate
      • Choices in Dialogue
    • New Input System - Interact
    • Designing the General Menu
    • New Input System - Open Menu
      • UI Buttons
      • GeneralMenu.cs
    • Controls Explanation UI
    • Items Menu
Powered by GitBook
On this page
  1. UI OnlyFans
  2. Interactible Game Objects

NPCs

PreviousInteractible Game ObjectsNextItems

Last updated 1 year ago

In addition to the previous variables, we'll need two more.

private Image Portrait;
private string ActorName;

Remember: Assign the Interactible GameObject to the Interactibles Layer. Optionally, add a Tag for "NPC."