Saved prefabs having dupe Collider added to them on load

Discussion and help for Easy Save 3
Post Reply
cragggle
Posts: 11
Joined: Mon Jun 10, 2019 4:05 am

Saved prefabs having dupe Collider added to them on load

Post by cragggle »

I have prefabs in my scene with both the Autosave script and es3 prefab, when I stop the game and it saves and then start the game again these prefabs are gaining duplicates of their colliders each time and it's messing with a vital mechanic in which my prefabs need to enter a trigger and ++ a value, however, it's counting each collider and ++ for each one.
Does anyone know how to fix this, or worst case does code exist to check for duplicate components on start and remove the others etc.
cragggle
Posts: 11
Joined: Mon Jun 10, 2019 4:05 am

Re: Saved prefabs having dupe Collider added to them on load

Post by cragggle »

Ok, i may have fixed this by removing and re-adding the ES3 Prefab, and ES3 autosave scripts from the prefabs and refreshing the references.
If anyone has any insight still would be great to understand what caused this.

I do have alot of prefabs that have been a copy of another prefab with same components, just changed name and materials, so i dont know if that is a cause?
User avatar
Joel
Moodkie Staff
Posts: 4846
Joined: Wed Nov 07, 2012 10:32 pm

Re: Saved prefabs having dupe Collider added to them on load

Post by Joel »

Hi there,

This issue was fixed in the latest update to Unity. However, it may be that there was save data left over from when this bug was present.

All the best,
Joel
Joel @ Moodkie Interactive
Purchase Easy Save | Contact | Guides | Docs | Getting started
Post Reply