Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

How do i destroy a prefab without the error?

//You could try making a copy

public GameObject example;


GameObject exampleCopy = example
Instantiate(exampleCopy, //wherever you want)
Destroy(exampleCopy)
 
PREVIOUS NEXT
Tagged: #How #destroy #prefab
ADD COMMENT
Topic
Name
3+7 =