DEV Community

Discussion on: Advanced scenes management in Unity

Collapse
 
albertofdzm profile image
Alberto Fernandez Medina • Edited

Hi! Welcome to dev.to!

Excellent post and well explained. I'm not sure, but I think some things are missing in the code snippets like adding the SceneControllerAttribute to the MainMenuController and maybe the inheritance from MonoBehaviour in the SceneController abstract class.

I am definitely going to try it and tweak it a bit :)

As a side note, IMHO I think this could be problematic if you are working in a team with a game designer that has no development knowledge since these configs will be defined at the code level. He could not create these controllers and scene args by himself to create new scenes.

Thank you for sharing.

Collapse
 
flatmango profile image
Oleh Zahorodnii • Edited

Hi Alberto!
Thanks for your feedback!

Sure, there should be inheritance from MonoBehavour in SceneController class and appliance of SceneControllerAttribute to MainMenuController. I had to rewrite the article few times for some reasons and missed these things. I’ll fix that.

As for your side note. I totally agree, there should be some work around to give game designers ability to configure these scenes loading args. I never thought about it before cause that never was a problem in my projects. :)

P.S. Feel free to contact me for any questions or ideas of how to improve it.