You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
GameObjectExtensions.BindChildPrefabsTo() should destroy instantiated prefabs during element removal from ReactiveCollection.
But GameObjectExtensions.onElementRemoved() destorys transform of instantiated prefab instead of gameobject.
This is not working if instance has RectTransfom.
There are 2 cases:
RectTransfom destoryed and replaced with Transform.
RectTransform not destroyed because there is another component depending on it.
In both cases actual gameobject not destroyed.
I suggest replcaing impelmentation of GameObjectExtensions.onElementRemoved() to:
Oh right, by all means push a PR through for that then as you say it should be destroying the GO not just the Transform component, I assumed it would delete the whole GO with the existing code.
GameObjectExtensions.BindChildPrefabsTo()
should destroy instantiated prefabs during element removal from ReactiveCollection.But
GameObjectExtensions.onElementRemoved()
destorys transform of instantiated prefab instead of gameobject.This is not working if instance has RectTransfom.
There are 2 cases:
In both cases actual gameobject not destroyed.
I suggest replcaing impelmentation of
GameObjectExtensions.onElementRemoved()
to:The text was updated successfully, but these errors were encountered: