Compilation errors with Menu Framework
Posted: Sun Sep 12, 2021 7:49 pm
Hi! First of all, thanks for the great product. Everything has been going great so far with the integration.
I'm trying out the Menu Framework from the extras, and am getting some errors with the compilation.
Now, I'm unsure if the errors in the code are from the other scripts not loading properly, or vice versa if the scripts are somehow not compiling properly in Unity because of the error.
I recently had to reinstall Windows due to a drive failure, and while I was able to backup everything beforehand, I wonder if I'm not missing a critical .net component on top of everything?
Regardless, I think the scene.buildIndex should be replaced by scene.GetActiveScene() now yeah?
I'm just not sure then on what to do about the Scenemanager.sceneloaded += OnSceneLoaded
I'm still learning C#, so if I'm overlooking some absolutely obvious mechanic of the language, please excuse me. Nonetheless, thank you for your time in looking over this.
I'm trying out the Menu Framework from the extras, and am getting some errors with the compilation.
Code: Select all
error CS0123: No overload for 'OnSceneLoaded' matches delegate 'UnityAction<Scene, LoadSceneMode>'
Code: Select all
error CS1061: 'Scene' does not contain a definition for 'buildIndex' and no accessible extension method 'buildIndex' accepting a first argument of type 'Scene' could be found (are you missing a using directive or an assembly reference?)
Now, I'm unsure if the errors in the code are from the other scripts not loading properly, or vice versa if the scripts are somehow not compiling properly in Unity because of the error.
I recently had to reinstall Windows due to a drive failure, and while I was able to backup everything beforehand, I wonder if I'm not missing a critical .net component on top of everything?
Regardless, I think the scene.buildIndex should be replaced by scene.GetActiveScene() now yeah?
I'm just not sure then on what to do about the Scenemanager.sceneloaded += OnSceneLoaded
I'm still learning C#, so if I'm overlooking some absolutely obvious mechanic of the language, please excuse me. Nonetheless, thank you for your time in looking over this.