2.1 – Prefab and Instance variables are not in sync

Deadcow

Member
I encountered several issues with 2.1 today.

At first, when I tried to change the reference of the variable in the tree, the changes did not persist. When I changed selection and selected this tree again - the fields were back to null. And only on the one specific prefab - I tried to change it in the scene, tried to change it in prefab mode.. with the same (lack of) result.
Then this issue simply vanished, 🤯 maybe after a Unity restart.

Later, I did something with the prefab and when I selected its tree, BD Window hung up the editor for several minutes; I had to kill the Unity process to proceed. It wiped out the latest scene changes, and the change that led to this issue along with it. But I encountered this issue last Friday several times, pesky one 🥲

And now my current issue is with variables sync. I added the variable on the prefab; it did not appear on the scene instance. The instance has no overrides, and when I duplicate the instance, the new object has its variables like in the prefab 🤔And I never seen such behavior in Unity before, but when I select the prefab in the Project View it shows some older version of the variables, then when I preview the same object in prefab mode. Very peculiar issue. Variables go back in sync after unity restart, yet the issue persists.

I guess the most of the problems are related to prefab/instance editing. Maybe there is a way to prohibit instance editing, like with BD 1? To prevent at least some of the issues. And I probably should go back to the Subtree usage; I did not encounter any issues with those.
 
Can you list the specific steps to reproduce? I will then have a better idea of what is going on. Also make sure you are using the latest version from the Asset Store and not the version that I sent you as there have been some changes.
 
Yes, I updated the package manager this morning.

With subtree, it is not much better. I set variable from prefab. It appears on the scene in the inspector, but at the same time - not in the BD window.

After that I encountered another issue - when I try to add a new variable to the subtree now, the type selection popup is not reacting to the click input. When I reselected the asset, it showed that I accidentally created a bunch of variables with the same name (for every click).

Unfortunately, for some reason, I'm unable to post images on the forum today to show that.
I'll try to reproduce at least some of the issues tomorrow. For now, it seems like my prefab is cursed🥲
 
Last edited:
Back
Top