Search Unity

Inspector "Hint" Property

Discussion in 'Editor & General Support' started by BayernMaik, Aug 27, 2020.

  1. BayernMaik

    BayernMaik

    Joined:
    Oct 15, 2019
    Posts:
    20
    Failed googling...
    How can i get this sort of "Hint" property work?
    Hint.PNG
     
  2. Valjuin

    Valjuin

    Joined:
    May 22, 2019
    Posts:
    481
  3. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    Are you asking how to create such a hint in the inspector for a custom script?
     
    BayernMaik likes this.
  4. BayernMaik

    BayernMaik

    Joined:
    Oct 15, 2019
    Posts:
    20
    Jup,
    thought its alike [Header("Blah")] or [TextArea] and hoped that i just cant find the command.
    Guess its not that simple?
     
  5. PraetorBlue

    PraetorBlue

    Joined:
    Dec 13, 2012
    Posts:
    7,909
    BayernMaik likes this.
  6. BayernMaik

    BayernMaik

    Joined:
    Oct 15, 2019
    Posts:
    20
    :( oooook avoided it long enough, time to get into that stuff...
    Thank you for pushing me to the right direction
     
  7. Vryken

    Vryken

    Joined:
    Jan 23, 2018
    Posts:
    2,106
    BayernMaik likes this.
  8. BetaMark

    BetaMark

    Joined:
    Sep 27, 2014
    Posts:
    229
    I have dodged doing hints by using the tooltips on all my public and serialized vars.
    [Tooltip("This is kinda helpful.  But could be better.")]