I’m trying to hide the start screen scene. The gameObject won’t go away and won’t be deactivated.
Is there anything I could do?
The start screen I want to hide is the object with the arrow. It has been set as the aimed for gameobject in the game scene
.Best regards
using System.Collections;
using System.Collections.Generic;
using UnityEngine;
using UnityEngine.SceneManagement;
public class startgame : MonoBehaviour
{
public GameObject Starter;
public void LoadMainGame()
{
// SceneManager.LoadScene("Mainscene_01");
Starter.active = false;
GameObject.Find("Starters").SetActive(false);
//GameObject.FindGameObjectsWithTag("Starters").active = false;
}
}