MVC is a commonly used software design pattern. Its main goal is to help you split your code into multiple pieces, where each piece has a single responsibility. The 3 main parts of MVC are: 1) model, that holds the data you want to work with 2) view, where you display the data to the user and 3) controller, where you have all the logic. MVC also encourages you to structure your code in a way that the individual parts (scripts) are not tightly coupled together. Using this pattern, your code will be more reusable, expandable and easily understandable by other developers.
👍 Like and 🔔Subscribe for More Unity and C# Tutorials / @freedomcoding
🌟 Support My Work and Unlock Exclusive Content! 🌟
👉 Patreon: / freedomcoding
🎮 Join Our Developer Community!
💬 Discord: / discord
💖 Support Me Financially
☕ PayPal, Revolut: [email protected]
Website - https://www.freedom-coding.com
Timestamps:
00:00 What Is MVC?
00:39 Code Without MVC
01:56 Understanding MVC
03:24 View (UI)
04:54 Model (data)
07:10 Controller (logic)
08:05 Should You Use MVC?