Search found 2 matches

by Jorge
Wed Aug 28, 2019 3:13 pm
Forum: Code Examples
Topic: [Manually] Saving and Loading Prefabs Instantiated at Runtime
Replies: 9
Views: 24714

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...
by Jorge
Wed Aug 28, 2019 3:04 pm
Forum: Code Examples
Topic: [Manually] Saving and Loading Prefabs Instantiated at Runtime
Replies: 9
Views: 24714

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?