[Unity-Editor] The mouse hovers over the button to display the text

 The second parameter of GUIContent

var info = "提示文本";
GUIContent lable = new GUIContent("?", info);
GUILayout.Button(lable, GUILayout.Width(20));

Guess you like

Origin blog.csdn.net/smile_otl/article/details/132040803