how to show a text on entering an scene and/or touching a character

i mean… like if my character touch a sculpture then it displays a text or like if i walk close ar character he say something

i mean i know how to make colliders etc… but i don’t know how summon text :stuck_out_tongue:

here are what i try to put
(if are all wrong pls gave me the basics of this e,e)

using System.Collections;
using UnityEngine;
using unityEngine.UI;

public class texto : MonoBehaviour {
  
    public string Text

    void OnTriggerEnter (Collider other)
    {
        Text ("what to say?"); //its that easy :u? i think not
    }


}

You will want a variable like.

public Text textObject;

Drag the text component to it in the browser.

Then textObject.Text = “String”;

public Text textElement;
public string message;

void OnTriggerEnter(Collider other) {
   textElement.text = "What to say...";
}

Drag your Text component to the textElement in the inspector

ooooh thanks :U
i feel illuminated :smile: