Generation

generate functionMon, 05 Dec 2022

attach a tooltip with a text "Follow me!" always facing the player

public class Tooltip : MonoBehaviour { public string message; void Update() { transform.rotation = Camera.main.transform.rotation; } }

Want to kickstart your project?Use the new AI Studio to create your code