Unity3d hace clic en un botón, luego genera 4 botones, luego hace clic en el botón original y estos 4 botones se ocultarán.
Código C#
clase pública ButtonClick: MonoBehivor
{
private bool m_down
internal void OnGUI()
{
if( GUILayout.Button("1"))
{
m_down=! m_down;;
}
if(m_down)
{
if(GUILayout.Button("2-1"))
{
//todo: hacer algo
}
if(GUILayout.Button("2-2"))
{
//todo: hacer algo
}
if(GUILayout.Button("2-3")) p>
{
//todo: hacer algo
}
if(GUILayout.Button("2-3"))
{