An Example of Model-View Controller (MVC) in Unity

preview_player
Показать описание


My Favorite Unity Assets 💯⤵️

* Disclosure: These are affiliate links, which means I'll receive a commission if you use them to make a purchase.
Рекомендации по теме
Комментарии
Автор

Yeah I looked at the screen at the start and was also like "Why is there a wrapper class handling all three things."

Honestly the controller is the only thing that should know about the model and view and interact with them. Everything else should go through the controller.

Xershade
Автор

If you're saying: "An Example of Model-View Controller (MVC) in Unity". I didn't see shit actually... Only controllers. If you are too lazy, just say: "Guys, I'm too lazy, I can't show show you shit. I'm sorry, therefore I must manipulate you with my clickbates unfortunately..."

graforce
Автор

GameController is a controller and it contains controllers?? I think that the structure should be flat I mean the controller should connect to another controller but not a parent of the other controller...

pierreabounaoum
Автор

(I'm not a professional programmer)
I like the MVC for the storage side but I can't see the point of it as soon as the code gets more complex with a lot of elements that also require an mvc. Then I must be doing it wrong.

longuemire
Автор

Good video, to me it sounded like this code example wasnt a good way to implement MVC. Can you guys make a video on how MVC should work in unity?

NonaBona
Автор

what is the use of [UsedImplicitly]? thanks!

hansshadow
Автор

The gentleman on the top is very hard to understand... :(

ZoidbergForPresident
Автор

What? So how a controller will update the model and communicate with the view without a reference to them? Nonsense video.

fndTenorio