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