GameObject SetActive not working

I don’t know why it didn’t work :confused:

using UnityEngine;
using System.Collections;

public class ExampleCode : MonoBehaviour {

void Start()
{
    gameObject.SetActive(false);
}

// Update is called once per frame
void Update () {

}

}

When I start the game, the gameObject is still visible :confused: Can you help me? :smiley:

What do you actually want to do? Do you want to enable or disable the game object? In case you want to enable it it should be

gameObject.SetActive(true);

instead of

gameObject.SetActive(false);

If it still doesn’t work as intended: Make sure that the script is assigned to the right game object and also make sure that there is no other script which enables or disables the game object.