Search Unity

How can i make text appear when interacting with an object?

Discussion in 'Scripting' started by unity_YdX5X68x4RaQKA, Aug 4, 2020.

  1. unity_YdX5X68x4RaQKA

    unity_YdX5X68x4RaQKA

    Joined:
    May 20, 2018
    Posts:
    3
    I want to make it so i can left click or hit E to display text on the screen. For context I'm making a horror game and want it so when you interact with a light switch, it wont work and instead the player will say "i flipped the light switch but nothing happened." thank you in advanced!
     
  2. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909