Adding a tooltip on Unity Editor


Summary

Prerequisites

  • Unity v2020.3.17f1
  • macOS Big Sur v11.6

Steps

Adding TooltipAttribute to you code.
An example is below:

public class DogController : MonoBehaviour
{
    [Tooltip("Set the dog you want to control.")] // Tooltip
    [SerializeField]
    private GameObject Dog;

    ...
}

References