#Help
1 messages · Page 1 of 1 (latest)
^ the code for that would be:
SceneManager.GetActiveScene().buildIndex;
Just so you don't have to go searching for it in order to find the answer, doing +1 isn't adding to anything, it would honestly probably error when the collision is correct in your console, or just try and load scene index of 1, or just do nothing, when adding numbers, it works just as math adding does x+y not just +y
dont really understand
SceneManager.LoadScene(SceneManager.GetActiveScene().buildIndex + 1); If I am not wrong
it works thanks
you are welcome
Yeah is that, I wasn't giving the full code so they learnt
sorry mb
you shall learn a bit of generic programming before you enter unity
All good, just something I don't do is give out full lines of code, it doesn't really help, they just copy and paste, and don't actually understand the concept
that shall help quite a bit
yeah
I never used unity but ive done other things
A generic programming knowledge definitely saves you from problems like these
yeah definitely