I’m using Unity 6.0 LTS. This is a prefab (Food1) with 3 functions already added to it in On Interact Event (). I’m using the scripts provided by Unity. (PFA image in the end, so these paragraphs will make sense)
I created an instance of the prefab (named Food1Instance), and added another action to the instance (related to gameobject named Objective1.5 Image). (I did not Apply overrides for this instance because objects are only available in main scene and they show missing in the prefab if I apply. Otherwise I would keep all functions inside the prefab only).
Now, you never know if you need to do changes inside prefab. So later I planned I need more gameobjects and functions inside prefab. I did so without any issues:
But the problem is, it does not reflect in the instance:
I don’t know if this is an expected behavior or some glitch/issue.
Note: This problem occurs only when I have added extra functions to the instances, e.g., the Objective1.5 Image related function. Otherwise I can add functions to the prefab and they reflect in the instance.
If I needed just one instance, I could just update my prefab as needed, create a new instance again and add the extra functions needed in the instance later. But I need multiple instances. So it would be tedious to duplicate them again and arrange where I had already placed them in the space.
My goal is, to keep as many functions/actions as possible inside the prefab only, so I don’t need to update things on muliple instances later. But I’m limited by the fact that most of the gameobjects are not part of prefab, so I can’t put all of them in the prefab.
So ultimately, it lead to me this solution only, but it has the problem I described.
Is there any better workflow to this? Or can this problem be solved? (Without using custom scripts or editing/writing any code).
