Skip to main content
Tweeted twitter.com/StackGameDev/status/1183895434349236224
added 15 characters in body
Source Link
Jethro
  • 309
  • 5
  • 15

In unity, I often end up with duplicating the tags for code documentation, and the [tooltip] tags for the Unity Inspector.

Is there a way to automatically extract tags into Unity [tooltip]s, or vice versa?

    /// <summary>
    /// This field sets the whirlygigs speed.
    /// </summary>
    [Tooltip("This field sets the whirlygigs speed.")]
    public float value;

In unity, I often end up with duplicating the tags for code documentation, and the [tooltip] tags for the Unity Inspector.

Is there a way to automatically extract tags into Unity [tooltip]s?

    /// <summary>
    /// This field sets the whirlygigs speed.
    /// </summary>
    [Tooltip("This field sets the whirlygigs speed.")]
    public float value;

In unity, I often end up with duplicating the tags for code documentation, and the [tooltip] tags for the Unity Inspector.

Is there a way to automatically extract tags into Unity [tooltip]s, or vice versa?

    /// <summary>
    /// This field sets the whirlygigs speed.
    /// </summary>
    [Tooltip("This field sets the whirlygigs speed.")]
    public float value;
Source Link
Jethro
  • 309
  • 5
  • 15

Using C# summary documentation as tooltip in Unity

In unity, I often end up with duplicating the tags for code documentation, and the [tooltip] tags for the Unity Inspector.

Is there a way to automatically extract tags into Unity [tooltip]s?

    /// <summary>
    /// This field sets the whirlygigs speed.
    /// </summary>
    [Tooltip("This field sets the whirlygigs speed.")]
    public float value;