unity activate object code example
Example 1: deactivate a gameobject unity
public void SetActive(bool value);
Example 2: how to acivate a game object unity
void Start ()
{
gameObject.SetActive(false); // Disables the game object
}
public void SetActive(bool value);
void Start ()
{
gameObject.SetActive(false); // Disables the game object
}