Search found 2 matches
- Wed Aug 28, 2019 3:13 pm
- Forum: Code Examples
- Topic: [Manually] Saving and Loading Prefabs Instantiated at Runtime
- Replies: 9
- Views: 27138
Re: Saving and Loading Prefabs Instantiated at Runtime
hmm that is not working. I think somewhere I have to remove from the list and then save edit: got it. Added this function to a UI button click and it works. After removing the actual object transform from the list, I can then save. public void DeletePrefab(GameObject objToRemove) { prefabInstances.R...
- Wed Aug 28, 2019 3:04 pm
- Forum: Code Examples
- Topic: [Manually] Saving and Loading Prefabs Instantiated at Runtime
- Replies: 9
- Views: 27138
Re: Saving and Loading Prefabs Instantiated at Runtime
Thanks for the example. I have a question. Let's say I have instantiated 10 prefabs and I want to delete just 1? The delete function you posted, deletes I think all prefabs right?