Search Unity

  1. Unity Asset Manager is now available in public beta. Try it out now and join the conversation here in the forums.
    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,620
    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,620
  3. LeonhardP

    LeonhardP

    Unity Technologies

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