Reputation: 129
I have simple button and on click i run function from my script. It goes well with main scene and mainScript and it directs it to Job scene, but then i created another jobScript that i use for job scene, i use the same function and it is not working.
Here is function:
using UnityEngine.SceneManagement;
public void changeScene(string nextScene)
{
SceneManager.LoadScene(nextScene);
}
I really do not know why it is no working. I checked if i entered scene name correctly, and i did. If need more material, please tell me and i will update post.
Upvotes: 0
Views: 8024
Reputation: 165
Upvotes: 1
Reputation: 129
Solved. I set onClick to off so i changed to RuntimeOnly and it works. Thanks. I was looking for it half a day.
Upvotes: 1