Timeline for How to clean up list entries when objects are destroyed in Unity?
Current License: CC BY-SA 4.0
6 events
| when toggle format | what | by | license | comment | |
|---|---|---|---|---|---|
| Jan 15, 2024 at 19:03 | comment | added | Kevin |
@Phillip Your edit to this answer was unnecessary. Since the type of the prefab field is Destroyable, calling Instantiate(prefab) returns a reference to the new Destroyable component - calling GetComponent<Destroyable>() is not necessary.
|
|
| Jan 15, 2024 at 19:01 | history | rollback | Kevin |
Rollback to Revision 1
|
|
| Jan 3, 2024 at 13:53 | history | edited | Philipp | CC BY-SA 4.0 |
I believe you forgot this to make this code syntactically correct.
|
| Dec 2, 2023 at 17:49 | vote | accept | stack_ndx | ||
| Dec 2, 2023 at 7:15 | vote | accept | stack_ndx | ||
| Dec 2, 2023 at 17:49 | |||||
| Nov 29, 2023 at 18:25 | history | answered | Kevin | CC BY-SA 4.0 |