InvalidOperationException: Scene

macguffin 4 years ago updated 4 years ago 1

Hi has anyone seen these before? Can't work out where they are coming from? Probably doing something stupid.

Bolt Version:
Unity Version:
Scripting Backend:
.NET Version (API Compatibility Level):

FYI think I found what was causing the issue but not 100% sure

Had changed some methods to private as I didn't need them exposed anymore

Then ran "Built unit options"
Then ran AOT pre-build
pressed play and then got the errors shown above. 
(If I press play before the AOT pre-build I only get the warnings not the errors)

Put the method back to public and re-built unit options

If I press play now I don't get the warnings about the missing methods but I still get the errors

Run  AOT pre-build and this error shows when the build finishes:

However if I press play the errors seem to have gone.

I put the methods back to private and re-did the steps and the errors returned so it seems to be a result of my refactoring in my C# code.