Skip to content

saparkhid/Unity-MVP-Example

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 

Repository files navigation

Unity-MVP-Example

The Game projects have their own patterns. as you may know the Entity–component–system (ECS) is an architectural pattern that is mostly used in game development. So the Unity is started to bring the implemention of this architecure in its own engine.

But there are some people that use the Unity for building Android/iOS applicaitons. also implementing the MVC in the Unity3D may be useful. also we can use MVC pattern for the game UI. Since the MVP is used mostly for building user interfaces I have decided to port it into unity with some working examples.

MVP is the user interface architectural pattern engineered to facilitate automated unit testing and improve the separation of concerns in presentation logic:

  • The model is an interface defining the data to be displayed or otherwise acted upon in the user interface.
  • The view is a passive interface that displays data (the model) and routes user commands (events) to the presenter to act upon that data.
  • The presenter acts upon the model and the view. It retrieves data from repositories (the model), and formats it for display in the view.

Lets Get Start

You can clone the repository and then you can read the doucmentation here.

I have used the following sprites for this project:

https://craftpix.net/freebies/blacksmith-herbalist-hunter-jeweler-free-npc-character-pack/

https://craftpix.net/freebies/free-jumping-up-game-objects/

About

implementing the MVP pattern in unity.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages