Hi.
I’m having a VERY frustrating issue with a main menu I’m creating… below is a link to the problem in the LinusTechTips forum (Which is great BTW). :
Or you can just read it here:
I got a problem.
Im making a menu for a game in unity 5.6. I am using this tutorial:
In this part of the video:
He adds the script, hits a dropdown menu and then goes LoadSceneOnClick > LoadByIndex(int), and then sets “LoadByIndex” to 1. When I hit the dropdown menu, the only option is “MonoScript”, and then “Sting name”:
Even if I input “1” into the box, nothing happens when I play the scene. Here is my script:
using UnityEngine;
using System.Collections;
using UnityEngine.SceneManagement;
public class LoadSceneOnClick : MonoBehaviour {
public void LoadByIndex(int sceneIndex)
{
SceneManager.LoadScene (sceneIndex);
}
}
Using unity 5.6. HOW TO FIX!?!?!? Getting frustrated.
All help appreciated!!!
