So I just discovered how to display information when the mouse hovers above a GUILayout button in a custom inspector (Oh, big deal, right?). Lets say I have 4 GUILayout buttons in a row, and I would like to display their tolltips in a single GUI layout box, which is positioned below those buttons, when I hover the mouse over them one by one. Anyone have any suggestions on how this could be accomplished?
So far I am displaying the tooltip by using this:
EditorGUILayout.BeginHorizontal();
if (GUILayout.Button(new GUIContent("Place object A", "Place selected object in a scene."), GUILayout.Height(30)))
{
//Place the object A code;
}
if (GUILayout.Button(new GUIContent("Remove object A", "Remove selected object"), GUILayout.Height(30)))
{
//Remove object A code;
}
GUILayout.EndHorizontal();