Adding a tooltip on Unity Editor

TOC

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

Let's share this post!
TOC
閉じる