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.