sceneManeger dosent work any more (solved)

i cant use sceneManeger any more and visual studio semms like ye idont now whte is tise so plz halp theres my code

using UnityEngine;
using UnityEngine.SceneManagement;

public class Manu : MonoBehaviour
{
public void StartGame() {
ScemeManager.LodeScene(SceneManeger.GetActiveScene().buildIndex + 1);
}
}

Well you have misspelled SceneManager for starters and Load

please use code tags

still not working 6512344--734056--upload_2020-11-11_14-38-9.png

6512344--734053--upload_2020-11-11_14-37-32.png

So do you have errors? “Not working” doesn’t help us help you. Is anything calling your StartGame() function?

Still spelled wrong (the second one), you have SceneManeger.GetActiveScene, should be SceneManager.GetActive Scene.

I didn’t check spelling… assumed he had it right that time lol

when i play the game is have 1 error he dosent no whte it is

Did you correct the spelling?

ich

yes
and i chaked and on onthor scrip is working 6512619--734091--upload_2020-11-11_16-2-8.png

Well if there’s an error the console will display what that error is. You sure nothing is displayed in the console?

6512685--734118--upload_2020-11-11_16-22-38.png

sorry wrong one

6512700--734127--upload_2020-11-11_16-26-54.png

second error is because you still have SceneManager misspelled

no i wirt SeneManeger like it shod i relly dont know whte to do

It’s not Maneger it’s Manager

that’s what the error is displaying…

its not the case i wirte it like it shod

If theCubeGame is the scene you want to load then just do

SceneManager.LoadScene(“theCubeGame”);

א

thx is working now