Question by
Framehacker · Jun 22, 2020 at 02:05 PM ·
guistyleguistyles
Where do i find available GuiStyles?
Hello i have following code:
public void OnGUI()
{
var r = new Rect(0,0,390,18);
if (GUI.Button(r, "Step 1", "GUIEditor.BreadcrumbLeft"))
{
}
r.width /= 2;
r.x += r.width;
if (GUI.Button(r, "Step 2", "GUIEditor.BreadcrumbMid"))
{ }
}
The Style of the buttons works fine in older Unity versions like 2018.4 but not with the new 2019.3+ Unity GUI.
So i tried to figure out where the stuff like "GUIEditor.BreadcrumbMid" comes from and how i use that or other styles with the 2019 GUI. But even after searching the internet for hours i couldn't find any information about the different built-in custom styles, neither for older Unity versions nor the current.
So if someone know where i get this information i would highly appreciate it.
Comment