#Destroying prefabs that are loaded with the scene?

1 messages · Page 1 of 1 (latest)

cunning harbor
#

I noticed when I try to ecb.DestroyEntity() an Entity that happens to be a Prefab that was part of the scene on load, nothing happens. The same Prefab that I ecb.Instantiate() has no issue being destroyed.

Is there a rule somewhere that if a prefab is included in the scene on load (ie. not instantiated manually), they can't be destroyed?

Thanks!

coral seal
#

They can be destroyed. It’s likely however that the scene Prefab has a lingering ICleanupComponentData that isn’t being cleaned up