Search Unity

  1. Welcome to the Unity Forums! Please take the time to read our Code of Conduct to familiarize yourself with the forum rules and how to post constructively.
  2. We’re making changes to the Unity Runtime Fee pricing policy that we announced on September 12th. Access our latest thread for more information!
    Dismiss Notice
  3. Dismiss Notice

Bug (Case 1420597) Tooltip problems

Discussion in '2022.2 Beta' started by Peter77, Apr 16, 2022.

  1. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,391
    Some [Tooltip] are misplaced and some [Tooltip] don't work at all.
    Code (CSharp):
    1. public class NewBehaviourScript : MonoBehaviour
    2. {
    3.     [Tooltip("This is an integer")] // tooltip is misplaced
    4.     [SerializeField] int m_MyInt = 123;
    5.  
    6.     [Space]
    7.     [Tooltip("Hello World")] // tooltip doesn't appear at all
    8.     [SerializeField] VoidEvent m_MyEvent = new VoidEvent();
    9.  
    10.     [System.Serializable]
    11.     class VoidEvent : UnityEngine.Events.UnityEvent { }
    12. }
    Actual
    "My Int" tooltip is misplaced.
    "My Event" doesn't show any tooltip.

    Expected
    "My Int" tooltip is displayed under mouse pointer.
    "My Event" displays a tooltip when I place the mouse pointer on the "My Event" text.
     
    LeonhardP likes this.
  2. Peter77

    Peter77

    QA Jesus

    Joined:
    Jun 12, 2013
    Posts:
    6,391
  3. LeonhardP

    LeonhardP

    Unity Technologies

    Joined:
    Jul 4, 2016
    Posts:
    3,102
    Peter77 likes this.