Large Program Strutures

Hi
I am an old school programmer and have written a number of successful OO projects over the years. I love Unity though I struggle with it in that the structure of a complex system is unclear.
I also seem to have occasional persistence of data issues even though I am NOT changing scenes.

My project involves displaying Supermarket data, layouts, financials and products in a VR environment.

It has a database class, a voice recognition class, a VR controller class, high level interaction class deals with input from voice recognition and VR controllers and the problematic classes being the draw and populate the shelves class (gondola) and the inventory display class.

The gondola class inherits MonoBehaviour but this does not permit the use of new GameObjects to generate products and shelves through the store. (As the data base changes the gondolas repopulate themselves with product.) ScriptableObjects don’t seem to be designed to do this either.

The issues I face are : It seems that the Start() is not called sometimes in some of classes. Additionally some values set in the Inspector (prefabs) are not retained for the life of the class. The relationship between the classes can be unclear, the use of materials and textures becomes inconsistent when dealing with purely script generated models.

Is there some documentation or an organisation I can go to get help with these issues?

thanks

Not sure about organizations, but I pretty much live here:

I feel your pain though!

My background with game making was always just walls of code in my IDE. I switched from making my games from scratch to Unity in 2015 and I am always learning something different about the odds and ends of Unity. When I first switched to it I hated it lol because I was used to creating everything and having total control over a project. Unity definitely has its quirks but once you learn them it does make life a lot simpler!

I still make my mobile games in engines that I write myself though! I use Unity for PC stuff instead of past projects with pure OpenGL lol