Here is the last part of the MVC project.
I’ve tried to make a schema to illustrate the workflow of MVC in unity.
In a unity app, MonoBehaviour objects live in a scene, so you could see what objects in the hierarchy. But these objects can’t communicate with each other directly. MVC pattern in unity is a useful solution to that problem.
Let’s try to write it simply:
User input –> Controller —–createView(ModelData)—–> View —–display(ModelData)...
MVC in Unity with Scriptable Objects Part 2
This part we will start to make some view elements to visualize item objects and an info panel to display item stats. A very basic inventory system as you guess. I’ll focus on inventory panel for this part and we will complete this series with finishing info panel in the next part.
But first let’s overview for this part:
Visual components for Item Info and Inventory Item View Prefab in Inventory Populate inventory with Item View Debug....
MVC in Unity with Scriptable Objects Part 1
Welcome to the first part of MVC in Unity with Scriptable Objects. I’ll make this part Scriptable Objects only and it will remain plain and simple.
First, hear from unity:
A class you can derive from if you want to create objects that don’t need to be attached to game objects.
This is most useful for assets which are only meant to store data.
Then we should ask....