Can anyone Guess how many scripts for 1 canvas display we will end up with?

Here is another example of doing things 1 at a time.

How many scripts do we need to update 1 display?

How many properties do we want to show?

Should we have ONE script per text field or property?


Just seems ODD!! (redundant) to have so many scripts for ONE display…
Why not 1 script with [SerializeField] for each text box?

and BTW I do understand we will have Pop Ups later on!

We’re adhering (or trying to adhere to) the Single Responsibility Principle.

Each script is responsible for displaying it’s own attribute.

You can, if you wish, write a single script to manage all the attributes to display, but in the SOLID architecture, this is the way.

1 Like

This topic was automatically closed 20 days after the last reply. New replies are no longer allowed.

Privacy & Terms