#Help

1 messages · Page 1 of 1 (latest)

near wasp
#

You need to get the active scene index + 1

toxic palm
#

^ 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

tough seal
tough seal
toxic palm
tough seal
#

you shall learn a bit of generic programming before you enter unity

toxic palm
#

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

tough seal
toxic palm
#

yeah

tough seal
#

I never used unity but ive done other things

tough seal
toxic palm
#

yeah definitely