Hello, i want to know how to erase some text from GUItext,
example
if i have a list in a GUI text like this:
CUBE
CYLENDER
BOX
and when i click in a object BOX, on the list erase “BOX”
Hello, i want to know how to erase some text from GUItext,
example
if i have a list in a GUI text like this:
CUBE
CYLENDER
BOX
and when i click in a object BOX, on the list erase “BOX”
Hi,
Just don’t draw that line anymore.
To detect when user clicks on a label you could for example draw a button with a label style:
bool[] hide = new bool[3];
void OnGUI()
{
for (int i = 0; i < hide.Length; i++)
{
if (!hide[i])
{
if (GUILayout.Button("Button " + i, "Label"))
hide[i] = true;
}
}
}