Hello,
Is it possible to access the rect of a button from a GUILayout?
For example:
GUILayout.BeginVertical();
GUILayout.Button("This is a button.");
GUILayout.EndVertical();
Would it be possible to access that button’s rect? I need the rect because in my game I am using a tooltip that only shows when the mouse is hovering over specific buttons.
I couldn’t find anything on Unity’s documentation regarding this Unity - Scripting API: GUILayout but I’m assuming it’s possible – seems like quite an obvious function to implement.
Thanks in advance!