Hello! I’m trying to write some playmode tests, but I’m not sure how to go about simulating a button press when using GUILayout.Button(). Does anyone know how it works?
// Create "Load Project" Button and define onClick action
if (GUILayout.Button("Load Project", GUILayout.Height(40)))
{
// Do something when button is pressed
}