how to popup a gameobject when a button is clicked

i need to popup a game object.

the game object consist of an image.

i have added the button and on button click i need to pop up this gameobject.

using UnityEngine;
using System.Collections;
public class MissionButtonWhenClicked : MonoBehaviour {

public void Clicked()
{ 
	//print ("haloo2");
 
}
}

what should i give inside the clicked function to pop up the game object (game object name is mass)

So you want an object called ‘mass’ to become visible when a button is clicked?

using UnityEngine;  
using System.Collections;
    
    
     public class MissionButtonWhenClicked : MonoBehaviour {
    
    public GameObject mass;
    
     public void Clicked()
     { 
         mass.SetActive(True);
      
     }
     }

you will need to set ‘mass’ for the script in the in the inspector.
you will also need to set mass to be disabled by default by unchecking the checkbox in the top left of the inspector when you have ‘mass’ selected.

78666-check-box.jpg