MVP Pattern help
Hey everyone,
I'm a pretty experienced C# programmer but new to C#. I've implemented MVC, MVP and MVVM patterns in C# with ASP.Net before but never with Unity. I just have some questions about how it is done.
I've found a lot of information on the subject - videos, example projects etc. And they vary in terms of how verbose they are, whether they use interfaces etc. What I'm trying to understand is what do I need to do in the Unity editor side of things?
Like, I can associate a MonoBehaviour noscript with a Unity object. But which object do I associate the View noscript with? With the Canvas object? What about the Presenter - is it associated with a Unity scene graph object or is it just a property of the View?
I think what's confusing me is that, if there are multiple buttons that have event handlers defined in the same presenter, do they all need to be associated with the same presenter noscript? Is that a problem? I guess there can be multiple instances of the View or Presenter because neither is stateless?
Would really appreciate any help.
https://redd.it/1kjjuup
@r_Unity3D
Hey everyone,
I'm a pretty experienced C# programmer but new to C#. I've implemented MVC, MVP and MVVM patterns in C# with ASP.Net before but never with Unity. I just have some questions about how it is done.
I've found a lot of information on the subject - videos, example projects etc. And they vary in terms of how verbose they are, whether they use interfaces etc. What I'm trying to understand is what do I need to do in the Unity editor side of things?
Like, I can associate a MonoBehaviour noscript with a Unity object. But which object do I associate the View noscript with? With the Canvas object? What about the Presenter - is it associated with a Unity scene graph object or is it just a property of the View?
I think what's confusing me is that, if there are multiple buttons that have event handlers defined in the same presenter, do they all need to be associated with the same presenter noscript? Is that a problem? I guess there can be multiple instances of the View or Presenter because neither is stateless?
Would really appreciate any help.
https://redd.it/1kjjuup
@r_Unity3D
Microsoft
ASP.NET Core, an open-source web development framework | .NET
Build web apps and services that run on Windows, Linux, and macOS using C#, HTML, CSS, and JavaScript. Get started for free on Windows, Linux, or macOS.
What do you think of the artstyle for my upcomming game and do you have name suggestions? :)
https://redd.it/1kjknu6
@r_Unity3D
https://redd.it/1kjknu6
@r_Unity3D
Media is too big
VIEW IN TELEGRAM
After many years, the to-do notepad on my desktop has finally been cleared.
https://redd.it/1kjg4ss
@r_Unity3D
https://redd.it/1kjg4ss
@r_Unity3D
My fast paced wave survival arena shooter where you're the mascot of a cereal brand in the making... Does it look like a 2000's cartoon?
https://redd.it/1kjmtmy
@r_Unity3D
https://redd.it/1kjmtmy
@r_Unity3D
Reddit
From the Unity2D community on Reddit: My fast paced wave survival arena shooter where you're the mascot of a cereal brand in the…
Explore this post and more from the Unity2D community
Best way to do ui animations?
I want to affects to my ui like squishing, streching, moving, or shaking when selected. Whats the best way to go about this?
https://redd.it/1kjmc9b
@r_Unity3D
I want to affects to my ui like squishing, streching, moving, or shaking when selected. Whats the best way to go about this?
https://redd.it/1kjmc9b
@r_Unity3D
Reddit
From the Unity2D community on Reddit
Explore this post and more from the Unity2D community
Just launched our student-made mobile merge game “Gemrush” (40s gameplay)
https://www.youtube.com/watch?v=TDMoLBv0i4I
https://redd.it/1kjsdaw
@r_Unity3D
https://www.youtube.com/watch?v=TDMoLBv0i4I
https://redd.it/1kjsdaw
@r_Unity3D
YouTube
New Merge Game! Gemrush | Made by Student Dev in Unity
Gemrush - A Casual Mineral Merge Game!
Developed by a 3rd-year student, Gemrush is a fast-paced mobile game inspired by Suika Game — but with minerals, bombs, and pickaxes!
▶ Merge minerals and trigger explosive combos
▶ Use bombs and pickaxes to boost…
Developed by a 3rd-year student, Gemrush is a fast-paced mobile game inspired by Suika Game — but with minerals, bombs, and pickaxes!
▶ Merge minerals and trigger explosive combos
▶ Use bombs and pickaxes to boost…
My first game, an ARPG-inspired space shooter, is in the late stages of development, any thoughts?
https://www.youtube.com/watch?v=iUwVVZZ0ly0
https://redd.it/1kjosel
@r_Unity3D
https://www.youtube.com/watch?v=iUwVVZZ0ly0
https://redd.it/1kjosel
@r_Unity3D
YouTube
SPACEROCKS: Announce Trailer || Mine, Build, Upgrade & Conquer!
Thank you for checking out SPACEROCKS, an upcoming action/adventure indie game made by a solo developer. Mine asteroids, find rare loot, upgrade & modify your ship, build space factories, and destroy your enemies!
WISHLIST ON STEAM: https://store.steamp…
WISHLIST ON STEAM: https://store.steamp…
This media is not supported in your browser
VIEW IN TELEGRAM
We've been working on a cozy box-packing sim, our free demo is finally out. Would love to hear what you think!
https://redd.it/1kjx5y2
@r_Unity3D
https://redd.it/1kjx5y2
@r_Unity3D