DapperDino / Mirror-Multiplayer-Tutorials

Repo for my Mirror Multiplayer Tutorials
MIT License
132 stars 114 forks source link

Getting Scene Name #4

Closed g5fighter closed 4 years ago

g5fighter commented 4 years ago

For some reason when the lobby script is getting the name of the scene provided by the user in the editor instead of giving the name is giving the path. (Unity 2019.4.11f1)

DapperDino commented 4 years ago

I think must've been changed in a newer version of Mirror but you can still grab the scene name from the path by getting the string after the final slash.

g5fighter commented 4 years ago

Ok, thanks

g5fighter commented 4 years ago

But I think is how Unity gets now the string. Finally I used a string putting the scene directly.